all groups > flash (macromedia) > january 2006 >
You're in the

flash (macromedia)

group:

Changing the Actionscript of one button, by clicking on another


Changing the Actionscript of one button, by clicking on another Black Squirrel
1/22/2006 5:32:29 PM
flash (macromedia): I have been trying to figure this out for a few days now-- I need to
update/change the actionscript of a set of buttons, when a different button is
pressed. Does anyone know the best way to do this? I'm sure it's simple, but I
just can't see it. Thanks!
Re: Changing the Actionscript of one button, by clicking on another uomoDiCuore
1/22/2006 10:16:22 PM
What you want to do is use functions with parameters. Each of your set of
buttons will contain a variable, and when pressed, that variable will be the
parameter when the function is called. Your "different" button will simply
assign a new value to the variable.
AddThis Social Bookmark Button