Double click on button in action panel and add actions;
On (Press) Begin Tell Target ("../") Set Variable: "click" = GetProperty ("mc",_x) End Tell Target End OnVariable click will bring us any value of the _x position of the center of the mc what is the position of the mouse, too, as we set it by setting drag movie clip (to simplify tutorial, we will call just position of the mouse in the future). Variable will be located in the main timeline, even though we made it in the movie clip mc. We did that by using Tell target action. Lets get out for a moment from mc to a main timeline by clicking edit>edit movie.
|» Level Intermediate|
Rating: 5.93 Votes: 82
|No details available.|
|Download the files used in this tutorial.|
|Download (461 kb)|
|More help? Search our boards for quick answers!|