A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: deprecatedAS :'( stuck with preloader script :'( please help...

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Location
    London - UK
    Posts
    191
    Hi everybody,
    recently started getting used to MX.... and I am currently working on a site for a friend of mine, still in the early stages but now I got so STUCK :'(

    The script I'm used to is:
    ifFrameLoaded ("intro", 125) {
    gotoAndPlay("intro", 1);
    }

    And as I am not exactly an AS genius ... -I wish - I couldn't figure out how the script should be written now
    I obviously tried to use the old/deprecated one anyway - caused major misfunctions and the preloader didn't show at all

    ANY help would be great!!!!!!!

    Thanks and happy flashin'
    Prisca

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    put this script into the frame before your movie starts.
    I am not 100% sure it is correct since I do not have the script by hand right now but it is something like this

    Code:
    loadedBytes = this.getBytesLoaded();
    totalBytes = this.getBytestotal();
    percentOut = ((loadedBytes/totalBytes)*100);
    
    if (loadedBytes < totalBytes){
       _root.gotoAndPlay("preloader");
    }else if (loadedBytes==totalBytes) {
       _root.gotoAndPlay("beginmovie");
    
    mymovieClip._xscale = percentOut;
    _xscale is only one example. You can do other things.

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    London - UK
    Posts
    191

    thank you SOOOOOOOO much :)

    cancerinform, THANKS SO MUCH

    Solved my problem straight away!!!! The script was fine, a bracket missing, nothing else... YOU MADE MY DAY!!!!

    THANKS AGAIN
    Prisca

    PS: in case you're curious>> this is what it's for, still work in progress...>>> http://myweb.tiscali.co.uk/tiscali_folder/eurogigs/

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    London - UK
    Posts
    191

    thank you SOOOOOOOO much :)

    cancerinform, THANKS SO MUCH

    Solved my problem straight away!!!! The script was fine, a bracket missing, nothing else... YOU MADE MY DAY!!!!

    THANKS AGAIN
    Prisca

    PS: in case you're curious>> this is what it's for - I had the main preloader in place but wnated to add "mini preloaders" for the menus (only the 'musicians' button active), still work in progress...>>> http://myweb.tiscali.co.uk/tiscali_folder/eurogigs/

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    It's a great site. The preloader is not at all dull.

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