PDA

View Full Version : random keyframe


samanthayy
08-28-2002, 05:36 PM
the gotoandplay (random(x)) don't seem to work? the movie just keeps on playing in order.

also, is there a way to pause a movie for a given time?

tg
08-28-2002, 10:31 PM
check the tutorials for pausing, or do a search here, should be lots of threads on that.

your gotoAndPlay() code should work. paste your exact as.

samanthayy
08-28-2002, 11:10 PM
so what does the value x in the random function stand for?

red penguin
08-29-2002, 09:11 AM
if you say x=25, then it'll be that. You need an integer in there for that to work...

tg
08-29-2002, 03:04 PM
like the penguin says set x to a number - if you want it to select on of your possible frames, then put in the value of your last frame (if you have 10 frames make x=10).