PDA

View Full Version : Button but no Action Script


ucanbyteme
02-06-2003, 06:18 PM
I am trying to create a simple on off sound button in Flash 5. I know how to make a button and have pre built ones too. I am going through a tutorial which tells me to assign actions to it but here is where I am stuck.

When I double click the button on the stage to go to its up,over, down, hit, state I am told to ad an action there. I understand that part, but when I open up the Actions box, as directed, everything is grayed out. I cant ad any actions. Is this normal? What am I doing wrong? The only way they seem to be added is on the main stage were I can not assign it to the hit state.

Please help.

Thanks

timeliner
02-06-2003, 08:49 PM
Hi ucanbyteme & welcome

Place an instance of your button on the stage and assign an action to it there. The action does not go on the 'hit' state of the button, but on the instance of the button.
on(release){
//code here;
}

estudioworks
02-08-2003, 05:14 PM
Also for sound control I would use the soundObject:

http://www.flashkit.com/tutorials/Audio/Flash_MX-Kenny_Be-824/index.php