1 person found this helpful
if you're using cs5, there's a bug that invalidates instance names when objects are used in timeline tweens.
yes i am using cs5 How can i get around the bug?
the best way is to avoid using timeline tweening.
but once you are in the middle of a project that may have a lot of timeline tweening you can work around the problem by removing that instance name (boton2_btn) from all the existing instances, then create a new layer above your button and, in the frame where your button first exists, add a keyframe (if that's not frame 1). drag a copy of your button to the stage, position it over your existing button and assign its name to boton2_btn and its alpha to 0.
if there are certain frames (possibly including the first) where you don't want boton2_btn to be clickable, use actionscript to assign its visible (or mouseEnabled) property to false. in frames where you want it to be clickable assign it visble (or mouseEnabled) property to be true.
so the trick is that the button should be with instance name from frame 1
thanks a bunch
not necessarily frame 1, but every frame that contains that object should have that instance name. and the all the keyframes need to be created after that initial one.