A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS3 preloader...

  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    6

    AS3 preloader...

    is it possible to somehow use an AS3 preloader with an AS2 site?

    i have this from a tutorial but don't know how to do it in AS2

    stop();
    mask_mc._height = 1;
    this.onEnterFrame = function():Void {
    var loadedData:Number = this.getBytesLoaded();
    var allData:Number = this.getBytesTotal();
    var percent:Number = Math.round(loadedData/allData*100);
    mask_mc._yscale = percent;
    if (loadedData>=allData) {
    gotoAndStop(10);
    delete this.onEnterFrame;
    }
    };



    Many thanks!

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    760
    [SIGPIC][/SIGPIC]

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    6
    thanks rynoe, but i already have the preloader sorted. just struggling to use it with my already completed AS2 site.

    any ideas?

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