Rules around a DisplayObjectContainer's addChild:
I have a DisplayObjectContainer that has a property of a datatype that has a
property named prettyThing which is an Image
myDisplayObjectContainer{
private var class:Class;
private var url:String = "someImage.jpg";
public function createClass():void
{
class = new Class();
class.prettyThing = new Image();
class.prettyThing.load(); //load a url and such
}
public function addPrettyThing():void
{
addChild( class.prettyThing );
}
}
addPrettyThing will not take the Image that is a property of class and
display it. What is the rule here? If prettyThing were a property of
myDisplayObjectContainer then it coud be added to the dispplaylist and
displayed?
Does anyone know what the rule is?
--
Johnny Waggener
Software Developer
Multicast Media
678-592-2650