Change button name/text

This is a discussion on Change button name/text within the Macromedia Flash forums in Adobe Tools category; Hi, I have created some simple text buttons (with the text as static text type). Now I want to make the text of the buttons dynamic. How do I do it? I have tried to change the text to dynamic text type, but then the button stops working. In addition, the following code doesn't change the text either. dtPlayAgain.text = "Play"; This looks like a simple task, but I am having a lot of trouble making it work. What do I do wrong? Any help is much appreciated. T...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-11-2008, 05:06 AM
netfish00
Guest
 
Default Change button name/text

Hi,

I have created some simple text buttons (with the text as static text type).
Now I want to make the text of the buttons dynamic. How do I do it?

I have tried to change the text to dynamic text type, but then the button
stops working. In addition, the following code doesn't change the text either.

dtPlayAgain.text = "Play";

This looks like a simple task, but I am having a lot of trouble making it
work. What do I do wrong? Any help is much appreciated.

T

Reply With Quote
  #2  
Old 11-11-2008, 06:28 AM
Devendran
Guest
 
Default Re: Change button name/text

If it is a button Instance, you can't access elements inside that button.

if it is a movieClip, you can change it.
for that you need to provide Movieclip instance Name

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.