A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Remotely detecting swf version

Threaded View

  1. #10
    Member
    Join Date
    Jan 2008
    Posts
    35
    In

    loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler);

    CO MPLETE is actually COMPLETE right? Yeah I think it is.

    Just tested it, works perfectly for AS1 and AS2, but for AS3, it just loads the movie and nothing outputs to the text. ASMV1 or whatever comes for AS2 and 1, but for AS3, nothing. But the movie loads though. Any problems here? This is the code I'm using:

    Code:
    stop();
    
    loadbtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
        
    	var request:URLRequest = new URLRequest(movietoload.text);
    	var loader:Loader = new Loader();
    	loader.load(request);
    	addChild(loader);
    	loadermc.addChild(loader);
    
    	loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    	function completeHandler(event:Event):void {
    		outputtext.text=event.currentTarget.content;
    	}
    };
    Last edited by Obidos; 11-26-2008 at 02:05 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center