|
|
Search Tutorials
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 On
Variable “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. Let’s get out for a moment from “mc” to a main timeline by clicking edit>edit movie.
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|