Skip navigation
Currently Being Moderated

Simple question about preloaders

Jan 12, 2010 3:06 PM

I'm new to Flash and I'm sure this has been answered before, but when I try to search the forums or google I can't seem to locate a simple answer and I just seem to be spinning my wheels here and wasting time.  I have a simple preloader movie clip I downloaded which is basically dots that animate white left to right.  I put it on the first frame of my flash file and I have my animation set up on frame 2.  What actionscript (2.0) do I have to add to the preloader movie clip to get it to function? 

 

Thanks for your help!!

 
Replies
  • kglad
    62,058 posts
    Jul 21, 2002
    Currently Being Moderated
    Jan 12, 2010 3:40 PM   in reply to xslamx

    stop();

    this.onEnterFrame=function(){

    if(this.getBytesLoaded()>=this.getBytesTotal()){

    delete this.onEnterFrame;

    play();

    }

     
    |
    Mark as:
  • kglad
    62,058 posts
    Jul 21, 2002
    Currently Being Moderated
    Jan 12, 2010 5:27 PM   in reply to kglad

    use:

     

     

     

    stop();

    this.onEnterFrame=function(){

    if(this.getBytesLoaded()>=this.getBytesTotal()){

    delete this.onEnterFrame;

    play();

    }

    }

     
    |
    Mark as:
  • kglad
    62,058 posts
    Jul 21, 2002
    Currently Being Moderated
    Jan 12, 2010 10:33 PM   in reply to xslamx

    you're welcome.

     

    p.s.  if you can, mark this thread as answered.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points