PDA

View Full Version : AS 2.0 button problems


pabloflash
08-12-2005, 02:33 AM
Hi, iīve a new doubt, and i think itīs better to post it in a new thread, i donīt know what do you prefer.
I have a button wich in itīs "Over" state has a movieClip that plays when u roll over. iīm new in AS 2.0, and when i add code from the first frame to that button, the movieclip nestled in the button doesnīt shows up: this is my code:
boton0.onPress = function() {
texto4.txt.text = "salir";
};
the code executes but the clip donīt play.
it seems like AS 2.0 and manual set are not compatibles.
ŋwaht should i do?
thanks
Pablo

Ricod
08-12-2005, 04:43 AM
You could put the code somewhere else. How about the main timeline ? Just make sure 'buton0' exists at the moment you declare the function.