Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving registration point coordinates 1

Status
Not open for further replies.

rds747

Technical User
Mar 8, 2005
180
0
0
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 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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top