PDA

View Full Version : Target is correct, but button no works



jankratochvil
April 13th, 2005, 05:49 AM
I used as usual:

this.menu_buttons_mc.menu_01_mc.menu_01_btn.onRele ase = function ()
{
trace ("this.menu_buttons_mc.menu_01_mc.menu_01_btn.onRele ase CALLED");
};

But problem ist : it works only for one btn.
Why?

Try click the second flake from above and see AS layer please.

I think it would be easy for you but diffic. for me.

Please see attached file.

scotty
April 13th, 2005, 07:04 AM
The moment you define actions for this.menu_buttons_mc.menu_02_mc.menu_02_btn it doesn't exist...

scotty(-:

jankratochvil
April 13th, 2005, 08:33 AM
OK, i see now.


I tried to put all code on 1 frame of main movie, this was my error.

I think it could work if i attach the buttons on the stage before.

Thanks a lot.



The moment you define actions for this.menu_buttons_mc.menu_02_mc.menu_02_btn it doesn't exist...

scotty(-:

scotty
April 13th, 2005, 08:54 AM
no problem=)