View Full Version : Display a movie clip's position
Kiithae
05-06-2005, 05:23 AM
I'm pretty new to actionscript and was trying to display a movie clip's x and y positions in dynamic textboxes. I can make them display the mouse's x and y positions but need to get it to say the movie clip's. Any help would be very much sppreciated. Thanks.
oldnewbie
05-06-2005, 05:35 AM
Assuming the instance name of the movie clip was my_clip, that it was on the main timeline, something like...
this.onEnterFrame = function(){
myClipX.text = _level0.my_clip._x;
};
stec74
01-07-2009, 03:30 PM
Hi, i also need to record a movie clips x y properties but i need to put this into a function rather than display in a text field. It is for a snakes and ladders type game where the counter's current position needs to be recorded before the player rolls the dice for the next move. Any advice please? Thanks.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.