Flash Component - Definition of Movie Clip + Import Directory


two problens in one:

 

first: create component uses 2 movieclips inserted in frame 2 - assets.

to create in configui use:

try {







var dragdef = this.loaderinfo.applicationdomain.getdefinition("dragbtn");




_dragbtn = new dragdef();




var resizedef = this.loaderinfo.applicationdomain.getdefinition("resizebtn");




_resizebtn = new resizedef();



} catch (e:error) {




trace("error in getdefinition: "+e.message);



}

latter call addchild() _dragbtn, _resizebtn.

the problem movies dont appear when component dragged stage (in fact, withou try block, generate error). movies appear normaly when running (swf).

what need show predefined movieclips in stage? (they have no drawnow methods).

 

second: if flash doc has direct acess class files of component (or cause in same directory of classes or including path in source path), component shows normaly on stage disappears when run (swf). problem?



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support