Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Symbols within Symbols

Status
Not open for further replies.

mariebmk

Programmer
Jun 26, 2003
52
US
I'm trying to make dynamic buttons that I can create through code and change the text on them. Right now I just have a graphic with a dynamic text field on it, but i can't access the text field through the action script. Any suggestions? Thanks.

Beth
 
Sadly there is not really code to post. What I have is a button created named button_1 (or something generic like that) and within it a dynamic text field named text_1.

I've just been trying to do something like
text_1.text = "some text"; but it can't seem to find it within the button. I just found out I should be getting flash professional any day here to develop on and I was thinking I could just make a custom component that will handle all of this. I will have to create, and set text on these buttons dynamically, so am I right in thinking a custom component will handle this for me? Thanks

Beth

 
You can't access text properties within buttons in the same way as you can within movieclips - best thing to do is to use a movieclip as your button by adding an onRelease event to it. You'll then be able to change the textfield properties etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top