This content has been marked as final. Show 5 replies
make sure all your variables are declared and initialized and use paranthesis after function M1:
I found the solution as my previous idea was obviously stupid.
I needed to createEmptyMovieClip and then create a TextField for that MovieClip. In order to make use of the class I needed to create references to the textfield and the new movieclip:
container_mc = _root.createEmptyMovieClip("M1_container_mc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
txt = container_mc.createTextField("txt", 1, 4, 4, 10, 10);
Thanks anyway :-)
if your function is the constructor for the M1 class, you create a member of it in flash.
I was thinking of doing everything with actionscript only...
(For the educational value of doing it mostly)