ixlepixle
07-06-2004, 03:22 PM
Gaaa! Maybe I am retarded but I just can't make the components in MX2004 work...
The problem is this:
I have subclassed MovieClip, and made a onPress() method. When the mouse is pressed, I want to dynamically add a TextArea to the stage. First of all, yes I have added a TextArea component to the library, so that is not a problem :)
I've tried using this
createClassObject(TextArea, "test", 300);
How on earth do you create components and then add them to a movieclip?? (Inside a class, dynamically) I know how to do it by adding a component to the stage and giving it an instance name, but that isn't interesting.
The problem is this:
I have subclassed MovieClip, and made a onPress() method. When the mouse is pressed, I want to dynamically add a TextArea to the stage. First of all, yes I have added a TextArea component to the library, so that is not a problem :)
I've tried using this
createClassObject(TextArea, "test", 300);
How on earth do you create components and then add them to a movieclip?? (Inside a class, dynamically) I know how to do it by adding a component to the stage and giving it an instance name, but that isn't interesting.