Dec 2, 2005 #1 rds747 Technical User Joined Mar 8, 2005 Messages 180 Location US If I created a button with a center registration point, would it be possible to retrieve through actionscript code its x and y coordinates?
If I created a button with a center registration point, would it be possible to retrieve through actionscript code its x and y coordinates?
Dec 5, 2005 1 #2 pixl8r Programmer Joined Aug 9, 2001 Messages 1,487 Location US If on the button: Code: on(release){ trace(this._x); } If on the timeline: Code: buttonName.onRelease = function(){ trace(buttonName._y); } The value returned is the location of the registration point. Hope it helps. Wow JT that almost looked like you knew what you were doing! Upvote 0 Downvote
If on the button: Code: on(release){ trace(this._x); } If on the timeline: Code: buttonName.onRelease = function(){ trace(buttonName._y); } The value returned is the location of the registration point. Hope it helps. Wow JT that almost looked like you knew what you were doing!