PDA

View Full Version : component initialization


kouri
12-19-2002, 03:43 AM
On first frame of my stage,I instanciate a component by code ( through attachmovie() command )

I set some of its properties and run my movie to test it ;everything's OK, I can see my instance working properly. :)

I then, add a textfield on the same frame through
_root.createTextField("myTextField",1,0,0,200,100);

Finally I assign to my textfield a value to be delivered by a property of my component :
myTextField.text=[myInstance].[property_value];


I place one copy of this assignation straight on my frame without condition, I place another (exactly the same than the first) on a click event attached to the component

When I run all that, only the second assignation works as soon as I click. Not the first one.?:confused:

It seems like component instance is not initialized from the start ?!?!
What's the matter ?
Thx for your help