ActionScript 2 MovieClip Class or Interface Not Found -
i'm converting actionscript 3 project as2 because as3 not yet scaleform compatible in cryengine 3.
i have movieclip in library. under actionscript linkage have "export actionscript" , "export in frame 1" set, identifier "notification" , nothing in "class".
this code results in error the class or interface 'notification' not loaded.
var newmovieclip:movieclip = new notification(); stage.addchild(newmovieclip); what wrong code? seems simple operation create movieclip , add stage, doesn't seem working properly.
in actionscript 2 need use attachmovie method (see docs). code this:
var newmovieclip:movieclip = this.attachmovie("notification", "newmovieclip", this.getnexthighestdepth()); note there's no addchild method in actionscript 2; displaylist added in actionscript 3.
Comments
Post a Comment