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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_y?

Status
Not open for further replies.

ueberbill

Programmer
Aug 22, 2000
21
US
The _y property of a movie is the y coordinate of that little crosshatch in the movie, right? How do I get the y coordinate of a corner of the movie? That crosshatch isn't necessarily the center of the movie and I need to have a way for determining the dead center of the movie (without centering the movie any time I edit it).
Thanks,
Bill
 
Create 2 variables in your first frame or when you create the movie clip.

Set Variable("newx",GetProperty("mc",_x)-GetProperty ("mc",_width))

Set Variable("newy",GetProperty("mc",_y)-GetProperty("mc",_height))

Now you can use newy and newx. "mc" is your movie clip.

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top