Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Editing button from library

Guest
Oct 28, 2013 Oct 28, 2013

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!

TOPICS
ActionScript
655
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 28, 2013 Oct 28, 2013

you can use jsfl to add the actionscript.

Translate
Community Expert ,
Oct 28, 2013 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 28, 2013 Oct 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2013 Oct 28, 2013

you can use jsfl to add the actionscript.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 28, 2013 Oct 28, 2013

I'll look into it. Thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2013 Oct 28, 2013
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines