A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] External SWF Preloading little prob...

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Posts
    14

    [F8] External SWF Preloading little prob...

    Hello folks,
    i got a little prob... i can't find the other post that i manage to
    use as a tutorial i got a link there that sent me to this great site
    http://gotoandlearn.com/, i used the tutorial about
    "External SWF Preloading" and did everything, but one thing did go right:

    the ' % ' symbol is the only thing that appears, but not counting then after a few seconds (the load ends)
    the swf shows, here is the final code:

    PHP Code:
    var mcl:MovieClipLoader = new MovieClipLoader();

    var 
    mclL:Object = new Object();

    mclL.onLoadProgress = function(target,getBytesLoaded,getBytesTotal) {
        
    loader.percent.text Math.round((getBytesLoaded/getBytesTotal)* 100) + "%";
        
    loadpercent "0%";        
    };

    mclL.onLoadInit = function() {
        
    loader._visible false;
        
    loader.percent.text "";
    };

    mcl.addListener(mclL);

    mcl.loadClip("gsb_test.swf",holder); 

  2. #2
    Junior Member
    Join Date
    Sep 2007
    Posts
    23
    I think loader._visible = false; is actually suppose to be loader._visible = true; else you cannot see the loader.. although I wouldn't be too sure, I didn't do my preloader like that, just try it

  3. #3
    Junior Member
    Join Date
    Nov 2003
    Posts
    14
    Yes, i did try that and nothing.

    also i tried this one http://www.webwasp.co.uk/tutorials/b...SWFs/index.php
    and got it right the problem now is... i need a button to do that.

    any help on that would be much appreciated.

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