Hi,
I have this problem:
First I load this movie in the main movie on level5:
loadMovie('submenu.swf',5);
on a button in the main movie I put:
tellTarget(_level5){
gotoAndPlay(2);
subMenu(91,97,134,'0x333333',cursusbuttonsMC);
}
}
on the second frame of the movie 'submenu.swf ’ that is being loaded in level5 I put:
stop();
subMenu=function(a,b,c,d,e){
cursusMC.tween("_width",a,0.3,"easeInCubic");
cursusMC.tween("_height",b,0.5,"easeOutBack",0.6);
cursusMC.tween("_y",c,0.3,"easeInCubic");
cursusMC.colorTo(d,1,"easeOutCubic");
e.alphaTo(100,0.3,"easeInCubic",1.2);
}
Now, when I click the button it goes to the second frame of the movie in level5, but it doesn’t call the function right away. It calls it when I click the button a second time. How can I make the function work right away?
I hope my question is clear.
Thank you very much,
Jerry.