Hello Actionscripters,
I am able to dynamically create an object on the stage with a
function, but I am at a loss for how to access and manipulate the
properties of that object from my Main Class.
in my Main Class I have:
------------------------------------------------
NLP_addChild.addObject(stage)
// NLP_addChild is the other class addObject() is the function
--------------------------------------------------
in NLP_addChild Class appears the following:
--------------------------------------------------------
public static function addObject(stage:Stage)
{
var myCircle:MovieClip = new circle() stage.addChild
(myCircle)
myCircle.x = 300
}
------------------------------------------------------
myCircle displays correctly on the stage, myCircle is correctly
assigned an x of 300.
But myCircle x property cannot be assigned from my main class.
My questions are :
Where is it?
Is this a scope problem?
Is this a naming problem?
Thanks for your help