SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation preloader for an external swf in AS3.0 .

    i`m loading an external swf file as shown below.
    Code:
    var mySWF:MovieClip;
    var url = new URLRequest("external.swf");
    var loader:Loader = new Loader();
    
    loader.load(url);
    loader.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    
    
    function loaded(e):void{
         mySWF = e.target.content;
    	  addChild(mySWF);
     }
    now, how can I add preloader for this?
    help me please.

  2. #2
    SitePoint Guru [Paul Ferrie]'s Avatar
    Join Date
    Oct 2007
    Location
    Glasgow, Scotland, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .:To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Glasgow Flasher
    bringmadeleinehome.com


Tags for this Thread

Bookmarks

Posting Permissions

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