Copy link to clipboard
Copied
Hey guys!
I want to style a button in AS2. i.e. my_btn._alpha = 50;
But the problem is: its very hard to go frame by frame changing the Instance Name of the button - so I can reference to him in the code.
All I want to do is edit the button based on his library name or linkage name. Is that possible in AS2?
Sorry for my bad english
Thanks in advance!
you can use jsfl to add the actionscript.
Copy link to clipboard
Copied
if you want to edit all instances of a library object, double click the object's symbol in the library to enter symbol editing mode. edit the symbol there and all instances on stage will reflect the changes.
Copy link to clipboard
Copied
Thanks for the answer. But the question was just an example. The true problem is like this:
I have a button that is just supposed to appear after a sound is complete.
So, I have something like this:
my_btn._alpha = 0;
my_btn.enabled = false;
my_sound.onSoundComplete = doSoundComplete;
function doSoundComplete() {
my_btn._alpha = 100;
my_btn.enabled = true;
}
I need to style this button dinamically, every frame.
I dont know if you get what I mean.
And again, sorry for my bad english
Copy link to clipboard
Copied
you can use jsfl to add the actionscript.
Copy link to clipboard
Copied
I'll look into it. Thanks!
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now