** actionscript HELP **
- Started
- Last post
- 10 Responses
- Dcsign
This would be an easy one for you actionscripters.
I need to set a randomiser at the begining of the flash movie so it will jump to any frame label along the flash movie randomly. (ie: so that each time the movie is viewed it begins at different points in the movie)
thanks v.much, help much aprreciated :) Dan
- Derek20
its a bird its a plane its UNFIT!
- Dcsign0
huh?
- stuff0
Hes talking about UnfitToPrint, the resident Flash Meister who answers these sort of things like a , well like some sort of actionscripting superhero.
- goygoygoy0
rndm = Math.ceil(Math.random()*5);
//rndm gives you a number between 1 and 5
gotoAndPlay(rndm);
- JamesEngage0
You'll want to preload everythnig in first otherwise it won't work.
- Dcsign0
cheers for the help :)
but kinda need to jump to a frame label rather then a frame number (as want it 2 play chunks of the film rather then start at random frame number)
- ********0
if you have frame labels such as
intro, intro2, intro3 etc
make and array
frameLabels = ["intro","intro2","intro3"];
frNum = Math.round(Math.random()*(frameL...
gotoAndPlay(frameLabels[frNum];
- goygoygoy0
myFrame=new array ("bla1","bla2","bla3")
rndm = Math.ceil(Math.random()*3);
dest=myFrame[rndm]
gotoAndPlay(dest);
- Dcsign0
cheers guys.. that worked a treat... :) much appreciated
- rson0
Would it be easier to load random external swfs. dunno just a thought.