Very new to AS3 and wondering if someone can help me with a small amount of code.
I currently have a movie clip that I wish to move ONLY vertically to 4 different positions depending on the button clicked.
I’ve got some code that works -
the name of the button in question as ‘Button4’ and the movie symbol called ‘Gasoline’, however, I was hoping to animate it to move at a visible rate to the desired location at the click of a mouse.
I can only seem to find tutorials where you ‘drag it’ or the button moves it until it goes off screen - not automatically to a desired point - and using the code snippets for animation only gives you a certain amount of area - I want this movie to move interchangeably between four points depending upon which button is clicked. Below is the code for the movie symbol to move from its initial position to button 4’s position - how can I code it to move at a certain speed rather than just ‘instantaneously appear’ -
Any help would be greatly appreciated.
Gasoline.y = 310;