multiple runtime armature scenes


i having multiple armatures allow user interact it. when test scene (2) armature works fine when in scene (1) , go scene 2 not move? here following code scene 1 -

 

stop();

 

 

scene2_btn.addeventlistener (mouseevent.click, onscene2_btnclick);

function onscene2_btnclick (evtobject:mouseevent) :void {

gotoandstop(1, "scene 2");

}

 

 

and here code scene 2 -

 

import fl.ik.*;

 

 

var elephant:ikarmature=ikmanager.getarmaturebyname("elephant");

var foot:ikbone=elephant.getbonebyname("foot");

var footeffector:ikjoint=foot.tailjoint;

var elephantpos:point=footeffector.position;

var elephantmover:ikmover=new ikmover(footeffector,elephantpos);

 

home_btn.addeventlistener (mouseevent.click, onhome_btnclick);

function onhome_btnclick (evtobject:mouseevent) :void {

gotoandstop(1, "scene 1");

}

 

stop() ;

 

any suggestions?



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO