Any thoughts on a good way to accomplish something along the lines of
var request:URLRequest = new URLRequest("http://myurl.com");
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, function(event:Event):void {
System.setClipboard(loader.data);
});
in actionscript 3?
It seems as if System.setClipboard() isn't available inside an event handler (which makes at least some sense given what I know about Flash security).
Is there any way to:
- get it to work?
- or block on the URL load so that I can then call setClipboard() in the main event flow?