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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -