PDA

View Full Version : actionscript call button onRelease()



tobycraftse
June 4th, 2008, 09:05 PM
I defined some button using flash timeline like follows:
http://www.oniva.com/upload/1356/bu3.jpg


I have a actionscript function that will call that button's onRelease() function
===================
var buttons:Array = new Array("Button 99", "but2", "but3", "but4");
function fireButton() {
this[buttons[selected_button_index]].onRelease();
}
===================

but after fireButton() function is called, the button is not clicked for some reason, any thing wrong the code?

fasilak
June 5th, 2008, 12:58 AM
Hi,

I think you are a beginer in flash.
Can you upload ur fla? So that i can take a look on what you are trying to do..

tobycraftse
June 5th, 2008, 07:23 PM
Hi,

I think you are a beginer in flash.
Can you upload ur fla? So that i can take a look on what you are trying to do..

In my fla file, I linked the keyboard event to a mouse onRelease()
http://www.oniva.com/upload/1356/menu.fl
(.fla source file in above link)

thanks your help!

fasilak
June 6th, 2008, 01:27 AM
Hi,

I only have Adobe flash 8 installed on my machine.
I think you are working on CS3.

Could it be possible for you to convert that fla to flash 8 format and reupload it..