PDA

View Full Version : Constantly track "x-position"


mitch_flash
11-15-2001, 03:57 PM
Using this code in FLASH 4:

Set Variable: "m1x" = GetProperty ( "/m1", _x )

I can get the x-position of a movie clip with an instance name of M1 to come up in a text box, but ONLY the starting point.

How can I constantly monitor the x-postion of the DRAGGABLE movie clip and have it constantly update the text field? All of this is happening in 1 frame.

What I am trying to do is have users drag the draggable movie clip (it's an arrow) along a timeline, as the x-position equals certain values, it will control a movie clip (tell target) which will pop-up text.


Thanks!

Mitch

mpol777
11-15-2001, 05:38 PM
put the code that you have inside of a 2 frame MC on frame one. this way while the MC loops it will check each time it hits that first frame. you will have to change your path to reflect the change.

mitch_flash
11-15-2001, 06:16 PM
Thanks!

What does:

"you will have to change your path to reflect the change"

mean?

Do you mean the path of the target because it is on differtent levels or something?

Mitch