Skip to main content
October 28, 2013
Answered

Editing button from library

  • October 28, 2013
  • 1 reply
  • 710 views

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!

This topic has been closed for replies.
Correct answer kglad

you can use jsfl to add the actionscript.

1 reply

kglad
Community Expert
Community Expert
October 28, 2013

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.

October 28, 2013

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

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
October 28, 2013

you can use jsfl to add the actionscript.