It makes the mc move to the position where the mouse is clicked ( just to clerify that).
Now I´m trying to learn AS but need help on this to get started.
I want a MC to move to a preset position when a button is clicked.
So for instance when I click a “news” button the mc slides horisontally to the news button and stops underneath it.
But won´t that just move the mc to the same spot every time the mouse is down. I´d like to have it moving around to different positions when different buttons are clicked.
So this is what I´m thinking (emberassed)…
Do I put the x and y position for the mc in the button action ( and how do I manage that). Or do I use some kind of listner from the main timeline to check when a button is clicked and then tell to mc to move to a preset position based on wich button was clicked?
Ok, buttons can have code in them too… this way each button can have it’s own behavior
if you want to make a button to change the position of the movie clip, this is the code you should put in your button. lets say your movie is called monkey, and you want the move clip to go to (30,30)
on(release){
_root.monkey.endX = 30
_root.monkey.endY = 30
}
[/AS]
the onClip(enterFrame) on the movie you want to make should take care of the animation. That's always on.
hey guys as you all are saying… Does the MC moves from point A to point B or it juz disappears from point A then appear in point B again like teleporting???