At 4/21/08 03:10 PM, Skeik-Sprite wrote:
At 4/21/08 02:21 PM, Pixelwelder wrote:
At 4/21/08 11:47 AM, iyeru42 wrote:
Using _root/root in the first place is a bad idea.
How so?
_root/root and parent/_parent, although useful in the animation point of view, is a very bad design idea in Object Orientation. A child instance from another instance should not be able to control it's parent. The parent is the one who should control his children.
To OO point of view, If you, for any reason, need to use "root" or "parent" then there is something very wrong: the Movie/property you are trying to access should be inside where you are using it, not outside.
Nonetheless, AS3 DO allow you to access parent and root, and all their properties. You just have to use type cast for it (explicitly stating the type of parent and root, like I've showed in my previous post)