;

PDA

Click to See Complete Forum and Search --> : Two quick question


bereft_m
01-08-2002, 04:11 PM
1) Preloader question: I have a movie and there is a preloader attached to it. How does a preloader work? Does it wait for all the frames of the movie to be downloaded and all the embedded movie clips and the movie clips embedded within movie clips? It seems that when I play my movie it starts playing and then it stops to download the movie clips and thus the motion is jerky. If you want to, you can see an example on an incomplete movie at http://www.merajsami.com -- click on the About Me link. What else can I do to resove the problem?

2) Sound Question: a)I have a movie clip that has two frames. The first frame has the Stop action. The second frame, named, soundframe, has a sound file attached to it and then the Stop action. When I import this movie clip into another movie and call the soundframe on a button press, it seems that it works only on the alternate click. If I take out the Stop action from the second frame , then it works fine. What is the sequence of action that is taking place here? You can see the example at http://www.merajsami.com/soundmaintest.html and can download the movie at http://www.merajsami.com/soundtest.zip
If you take out the stop action in the second frame of the mcsound, it will work fine. Does anyone know?

b)Since we do not have attachmovie method of the Sound object yet, the only way to attach the sound files are through frame actions -- Does it mean we cannot control the volume of the sound through action script or is there another way to do it if anyone knows?

Thanks.

fwhilton
01-08-2002, 06:45 PM
befeft...

I fixed it...

1) in the main fun file, set the tween on the only frame to "0" (not required, but just to be sure.

2) in the mssound, add another frame. On the 2 frame set the tween to 20.

3) In the sound -actions setting, remove the stop movie from the 2nd frame.

What was happening was, that the movie would stop on frame 2. Adding the 3rd frame allows the movie to play back to frame one. The 20 tweens allows you time for the sound to play.

Hope that helps. Any problems email me and I will send your files back fixed!!

Bob Hartzell
01-08-2002, 07:03 PM
The preloader has no knowledge of loaded movies. Putting a stop action on a first frame is asking for trouble.

fwhilton
01-08-2002, 07:16 PM
Bob,

Why is "stop movie" trouble on a first frame? I have never had problems with it that I know of.

just wondering

bereft_m
01-08-2002, 07:39 PM
Frank,

Yes, please send me your files so I can take a look at it. I solved it in another way, but I'd like to take a look at it too.

johnie
01-08-2002, 08:11 PM
Originally posted by fwhilton
Bob,

Why is "stop movie" trouble on a first frame? I have never had problems with it that I know of.

just wondering

It is a problem becuse the First frame in KM without a preloader is really SWF Frame 0. The Flash Player often skips SWF Frame 0 as it loads from the web but not from a projector...

If you don't belive me- Make a Simple Animation with a stop frame on Frame 0 without a preloader- Then play it in a Web Browser- The first time through it skips the stop frame.