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

_y within movie clip craziness.

Status
Not open for further replies.

HotMadras

Programmer
Apr 20, 2001
74
GB
This is just a general question really. Why is it that, within a movie, the stated co-ordinates of an object (_x and _y) seem to become completely arbitrary? I've got a scrolling area of text which uses several movie clips, some of which are nested. I could do with being able to say whether one of the objects inside a nested movie, is above or below an object that isn't inside that movie, unfortunately the _y co-ordinate of one is about 120, while the _y co-ordinate of the other is something like -350. These objects are on the exact same point (visually) on the canvas! What the heck is going on? I can work around it if I have to so it's not desperately urgent, but I would like to know what is happening and what I can do about it.
 
This is because _x and _y coordinates are defined by where the point is inside its parent clip. So a point on the main stage will always be consistent but a point in a clip droppd on the stage will be defined relative to the registration point of the clip not the main stage. If you have nested clips the problem is compounded... Slainte

 
Hmm... I guess I'd better continue to use my workarounds then. Thanks for the info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top