swrzzzz
12-11-2006, 06:59 PM
Hi
I am trying to create a new object which extends the MovieClip.
I have modelled this code on some MM examples but I don't see the hello world
Can anyone tell me what I have done wrong? (probably loads :-( )
Ta
Steve
My fun file has only this actionscript.....
#initclip
function SWR_Tree()
{
this.createTextField("tf",100,20,20,200,200);
tf.text="hello world";
}
SWR_Tree.prototype = new MovieClip();
Object.registerClass("SWR_Tree",SWR_Tree);
#endinitclip
attachMovie("SWR_Tree","tree", 101);
I am trying to create a new object which extends the MovieClip.
I have modelled this code on some MM examples but I don't see the hello world
Can anyone tell me what I have done wrong? (probably loads :-( )
Ta
Steve
My fun file has only this actionscript.....
#initclip
function SWR_Tree()
{
this.createTextField("tf",100,20,20,200,200);
tf.text="hello world";
}
SWR_Tree.prototype = new MovieClip();
Object.registerClass("SWR_Tree",SWR_Tree);
#endinitclip
attachMovie("SWR_Tree","tree", 101);