PDA

View Full Version : movie clips


Robin_Hood
12-18-2001, 07:50 PM
Hi Guys,

I think you would have come across this situation quite often.

Situation: I have the main movie going on say for 500 frames. I have a another movie for around 100 frames and play it in the main time line at 150th frame.

Present: at present I provide 100 frames in the main time line for the second movie to play and then continue with the main time line.

Result: so my movie becomes pretty large with time frames for each movie I insert.

Question: Is there a possiblity of mentioning, where it comes to the 150th frame (in the main time line) sees that it has a movie which has another 100 frames, plays the second movie and then goes on further with the main time line.

Thanks guys,

Robin

SYCHOTIC
12-18-2001, 10:10 PM
kewl I had this problem...

the answer your looking for is in action scripting... its a pretty simple script... but basically what your gonna do is stop the frame and at the end of the clip tell the move to goto an play the rest of the movie...

in the frame that the movie starts in place a stop command...
now it will play the movie for ever unless you place the following script on the last frame of the movie clip...

_root.gotoAndPlay(x);

where x is the frame number in the main movie (_root) that is right after the one you placed the movie in...

logic:
basically it stops the main timeline... plays the clip at the end of the clip it sees the command and goes back to the main movie to the next frame and starts playing...

Sy

Robin_Hood
12-18-2001, 10:12 PM
thanks SYCHOTIC,

you made my day.....

Robin