Flash 5: Run tweened animation in preloader, please help

Hi,

I've asked this before, but received fairly unclear, non-functioning answers.  Here's what I'm trying to do:

In Flash 5, rather than running a progress bar for a preloader (which I do understand and know how to do), I would like the preloader to play an MC -- of a tweened animation -- in proportion to the loading process.  Imagine a watering can tipping over and, when it's fully tipped, that's when the preloader is done and the movie begins.

So, I create an MC, create the tween effect in the MC, drag it onto the stage at Frame 1, and then what?

Again, kindly remember that this is for Flash 5.

Thanks!
geod100Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZefferCommented:
you could do it like this..
say the movie you are loading has 10 frames
and the watering can clip has 5 frames and has the instance name of canClip

put a stop on each frame of canClip

on frame 1 of the main timeline put the code..

onClipEvent(enterFrame){
if(_framesloaded==2){
      _root.canClip.nextFrame();
     }
if(_framesloaded==4){
      _root.canClip.nextFrame();
     }
if(_framesloaded==6){
      _root.canClip.nextFrame();
      }
if(_framesloaded==8){
      _root.canClip.nextFrame();
      }
if(_framesloaded==9){
      _root.canClip.nextFrame();
      }
if(_framesloaded==10){
      _root.gotoAndPlay(2);
      }
}

Z
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
geod100Author Commented:
I thought of something like that...the but movie actually has quite a few frames.  I'll try it, though.
0
ZefferCommented:
the number of frames doesn't matter as long as you do the calculation to break the loading into segments..
if you have 100 frames with a 5 frame watercan movie ..then it would be 10,20,40 etc ..
also it ocurred to me that if you attach the code to the watercan movie..you don't need the instance name and the code is a little more elegant ..

if(_framesloaded==10){
      this.nextFrame();
}
etc

Z
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.