Lets say I have a graphic that I want to animate using buttons. So the graphic can move forward, backward, stop, and possibly a reset that would bring it to its initial position.
Is there something that would allow me to access the graphic's center coordinates? so essentially, by changing the center's coordinates, I am in fact moving the graphic?
Right now I can make a forward button, and a stop button using the gotoAndPlay() method, but I don't know how to program reverse. I thought about it, and didn't like the answer if I were to rely on the timeline. Using the Center coordinates, I would not need to depend on the timeline.(I think).
Any hints would be great.
Is there something that would allow me to access the graphic's center coordinates? so essentially, by changing the center's coordinates, I am in fact moving the graphic?
Right now I can make a forward button, and a stop button using the gotoAndPlay() method, but I don't know how to program reverse. I thought about it, and didn't like the answer if I were to rely on the timeline. Using the Center coordinates, I would not need to depend on the timeline.(I think).
Any hints would be great.