Skip to main content
Participant
July 12, 2008
Answered

how to display xy coordintes of drag and drop movie

  • July 12, 2008
  • 2 replies
  • 439 views
can someone tell me how to display the coordinates of the red cirle shown in the drag and drop tutorial found here:
http://www.flashvalley.com/fv_tutorials/advanced_drag_and_drop_in_Flash/
I have done this tutorial just fine but dont know how to display its x and y coordinatetes in a dynamic text box as i move the red circle around the screen.
thank you for any assistance you may give.
steve
This topic has been closed for replies.
Correct answer Dr_Vangeldor
:


Thank you for your help. Your solution is exactly what I needed.
:)

2 replies

kglad
Community Expert
Community Expert
July 13, 2008
you're welcome.
kglad
Community Expert
Community Expert
July 12, 2008
in your on(press) handler start a loop (onEnterFrame or setInterval) and repeatedly assign your textfield's text property to be the red circles _x and _y properties. in your on(release) handler terminate that loop.
Participant
July 12, 2008
Hi kglad,
I dont suppose you could show me how to create the loop? My own research seems to indicate the onEnterFrame method would be easiest.
I am just a beginner and even this is still beyond me.
thanks
kglad
Community Expert
Community Expert
July 12, 2008
: