all groups > flash actionscript > october 2007 >
You're in the

flash actionscript

group:

function access problems



function access problems DelinquentMe
10/31/2007 11:49:53 PM
flash actionscript: on ( press ) {
buttonName = this._name;
menuExpand (buttonName);
}

Re: function access problems DelinquentMe
11/1/2007 12:10:08 AM
i have a button with:

on ( press ) {
menuExpand ( buttonName );
}

and the function doesnt get the var buttonName

soooooo back to my original question...

can i put a reference to a function to in an:

on (press) {

}

event handler?????
Re: function access problems kglad
11/1/2007 12:21:01 AM
yes. the code in your first post would work if your button is a true button
and your function definition is on the same timeline as your button. if you
button is a movieclip button, you should prefix your function name with
this._parent..
AddThis Social Bookmark Button