A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: External SWF Loads before the Preloader - HELP!

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    1

    External SWF Loads before the Preloader - HELP!

    Can somebody help with out with this, the external swf loads before the preloader finishes completely. i've attached the code below.


    Movie clip loader

    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var myListener:Object = new Object();
    mcLoader.addListener(myListener);

    myListener.onLoadProgress = function(target_mc, bytesLoaded, bytesTotal) {
    extLoader_mc._visible = true;
    var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
    extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
    if (bytesLoaded >= bytesTotal) {
    extLoader_mc._visible = false;
    }
    }

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    when/where are you making your call to load the .swf?

    are you testing locally?

    have you tried making the container clip you are loading the .swf into _visible = false..then on loadInit() or when the onLoadProgress() is done.. triggers it to be _visible = true;?

Tags for this Thread

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