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

Putting Text on a Button

New Here ,
Nov 21, 2013 Nov 21, 2013

Hello, I am new to Flash and would like some help.

I drew rectangles and coverted them to buttons (symbols). I have actions associated with the buttons and everything is working flawlessly. My question is this, what is the best way to put text on the button? I have 75 buttons so if possible I would like to avoid creating a text box for each button. Is there a way I can put a label on each button? I have a label/name associated with the up, over, down, and hit of the button but nothing is showing up. I don't see any text on it. The text doesn't need to change ever, it just needs to be over the button at all times.

Thanks.

TOPICS
ActionScript
905
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
LEGEND ,
Nov 22, 2013 Nov 22, 2013

Button symbols are limited to the properties you can see in the documentation.  They are not dynamic objects like movieclips.  THey do not have a label property, nor a textfield property that you can manipulate.  It is usually better to use a MovieClip symbol instead of a SimpleButton if you want the object to have more to it than the SimpleButton class provides.

What do you mean when you say you "have a label/name associated with the up, over, down, and hit of the button" ?  Do you have 75 buttons in the library or 75 instances of the same button on the stage but just one in the library?

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
New Here ,
Nov 22, 2013 Nov 22, 2013

So are you saying that I could convert all my symbol buttons to movieclip symbols and then add text?

I tried filling in the label for each keyframe, the up, over, down, and hit, but that had no effect. I have 75 buttons in the library.

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
LEGEND ,
Nov 22, 2013 Nov 22, 2013

If you have 75 button symbols in the library it won't really matter if you change them to movieclips.  Had you brought this up before you created them all, some suggestions could have been offered.  At this point it doesn't make much sense to redo them all in some other form... the amount of work involved is probably more than just adding textfields to the buttons.

There is no reason you can't have textfields inside a button symbol if the text is not going to be changed.  It is best to use static textfields that are not selectable so that they do not interfere when interacting with the button.

As far as "filling in the label for each keyframe" goes, I don't know what that means, but if you want a button to include a text label then you need to place a textfield in the button.

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
New Here ,
Nov 22, 2013 Nov 22, 2013
LATEST

Okay, thank you very much for the help!

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