0 Replies Latest reply on Oct 6, 2008 9:24 AM by BudHud

    Why Can't I Paste From The Clipboard?

    BudHud
      Why won’t this work? I keep getting the errors: Access of undefined property for both Clipboard and Clipboard Formats. The imports are there! See anything wrong?

      <mx:Script>
      <![CDATA[

      import flash.desktop.Clipboard;
      import flash.desktop.ClipboardFormats;

      private var clp:String;

      private function clipit():void
      {
      var clp:String = Clipboard.generalClipboard.getData(ClipboardFormats.TEXT_FORMAT);

      label1.text = clp;
      }

      ]]>
      </mx:Script>

      <mx:Button y=”231” x=”439” label=”Button3” click=”clipit()”/>
      <mx:Label y="272" y="333" id="label1"/>
      Thanks,

      BudHud