mike85
07-06-2009, 07:52 PM
Hi,
I am very new to flash and and as3....
I am making a game using AS3 OOP, thus far i have a static layout created using classes. I have a dice on stage in the form of 6 dice images (showing 1-6...) i have an arrow above dice 1, and i also have a start and stop button
My aim is for when the user clicks start, the arrow randomly moves above each of the 6 dice images until they click stop, thus selecting a number.
I have looked at some tutorials and they mostly seem to create an 'actions' layer on the timeline and use 'enterframe'. I have added an event listener to my start and stop buttons....i was wondering is it possible to have a function in my dice class (Called by the event listener on my start button) that animates/moves the arrow in 6 different locations and stopping when the stop button is clicked - instead of creating a layer on the timeline. Im not sure if this sounds like a stupid question or not tbh....hope it doesnt!
Hope the above is clear, many thanks
I am very new to flash and and as3....
I am making a game using AS3 OOP, thus far i have a static layout created using classes. I have a dice on stage in the form of 6 dice images (showing 1-6...) i have an arrow above dice 1, and i also have a start and stop button
My aim is for when the user clicks start, the arrow randomly moves above each of the 6 dice images until they click stop, thus selecting a number.
I have looked at some tutorials and they mostly seem to create an 'actions' layer on the timeline and use 'enterframe'. I have added an event listener to my start and stop buttons....i was wondering is it possible to have a function in my dice class (Called by the event listener on my start button) that animates/moves the arrow in 6 different locations and stopping when the stop button is clicked - instead of creating a layer on the timeline. Im not sure if this sounds like a stupid question or not tbh....hope it doesnt!
Hope the above is clear, many thanks