Hi
I met situation with AS3 that I can not explain or even understand
where I should look answer.
Simple example.
In library I have simple movie clip with linkage class name nav. This
mc has mc2 with two frames. In frame 1- stop().
On the stage I add this nav
function init():void{
        var nav:Nav=new Nav();
        nav.x=200;
        nav.y=200;
        addChild(nav);
}
init();

nav is on the stage correctly. Mc2 in frame 1.
 But if I use another way
function init(e:Event):void{
        var nav:Nav=new Nav();
        nav.x=200;
        nav.y=200;
        addChild(nav);
}

btn.addEventListener(MouseEvent.CLICK,init);
nav is on the stage but mc2 somehow stops in frame2.
Please can anybody explain this situation?
Thanks in advance.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to