Hello
Could anyone help with this problem?
I want the playhead to run into a frame and randomly jump to a labelled frame further on in the timeline. There are 5 labelled frames to choose from(labels are travel, portrait, still life, food, lifestyle.)
I have tried using this on the timeline jump frame:
myArray = new Array("travel" , "portrait", "still life", "food", "lifestyle"
;
randomNumber = Math.ceil(Math.random()*myArray.length);
gotoAndStop (myArray[randomNumber]);
its kind of working but not too well - makes me think I'm doing somthing wrong.
Any help would be greatly appreciated.
Thanks.
LEVEL of FLASH: beginner/intermediateish
Could anyone help with this problem?
I want the playhead to run into a frame and randomly jump to a labelled frame further on in the timeline. There are 5 labelled frames to choose from(labels are travel, portrait, still life, food, lifestyle.)
I have tried using this on the timeline jump frame:
myArray = new Array("travel" , "portrait", "still life", "food", "lifestyle"
randomNumber = Math.ceil(Math.random()*myArray.length);
gotoAndStop (myArray[randomNumber]);
its kind of working but not too well - makes me think I'm doing somthing wrong.
Any help would be greatly appreciated.
Thanks.
LEVEL of FLASH: beginner/intermediateish