thephantombudgie
12-13-2006, 02:35 PM
Hi-
im using the rpesentatin feature in flash 8 to make visuals to be shown on a laptop. it should be quite easy, ive numbered each slide 1-10 and want it to jump to a random one when the mouse is clicked. it seemed simple but just won't work.
o
onClipEvent (mouseDown){
i=Math.ceil(Math.random()*10);
_parent.currentSlide.gotoSlide(i);
trace(i);
}
the trace comes up fine with the random numbers between 1 and 10 but the slide won't change.
can anyone see where im going wrong or suggest a better way to do this?
cheers
im using the rpesentatin feature in flash 8 to make visuals to be shown on a laptop. it should be quite easy, ive numbered each slide 1-10 and want it to jump to a random one when the mouse is clicked. it seemed simple but just won't work.
o
onClipEvent (mouseDown){
i=Math.ceil(Math.random()*10);
_parent.currentSlide.gotoSlide(i);
trace(i);
}
the trace comes up fine with the random numbers between 1 and 10 but the slide won't change.
can anyone see where im going wrong or suggest a better way to do this?
cheers