Re: [Flashcoders] AS3 Accessing objects properties on the stage from other objects

2008-02-19 Thread Cory Petosky
You have to cast the root property because it's statically typed as a DisplayObject. Because the player/API doesn't know what document class you might use for your root object, it types root as the base class your document class must inherit from. Looking at your code, it seems that you're trying

[Flashcoders] AS3 Accessing objects properties on the stage from other objects

2008-02-19 Thread Johan Nyberg
Hi, I have a question regarding referencing objects on the stage from other objects. You should be able to use the root from any object that has been added to the display list using addChild. But when I do so I get this error message: 1119: Access of possibly undefined property loader throu