PDA

View Full Version : funnie loops and scripts to help randomize



cnick84
12-15-2004, 08:29 AM
I have some problems with my poject

>i have looping for my whole movie. how do i stop a certain movie clip at a selected frame and stop the whole movie with a replay button to replay it?

>is there any examples of scripts(action script) that i can use to make a simple white dot into various sizes,travelling at different paths with different speeds.

pls advice.
thanks a million. :D

NTD
12-15-2004, 06:40 PM
Hi,
Frame labels make navigation much friendlier. You can also use a frame number.
stop a movieclip at a certain frame...

_root.mcName.gotoAndStop('frameLabel');

stop main movie
_root.stop();

replay main movie.....

_root.gotoAndPlay('frameLabel');

You can control any movieclip property with actionscript in an onEnterFrame event....


_root.onEnterFrame=function() {
_root.mcName._x+=5;
//_root.mcName._width+=5;
//_root.mcName._rotation+=5;
//_root.mcName._alpha-=5;
//etc...
}