PDA

View Full Version : update dynamic text inside button



jess
November 13th, 2003, 08:00 PM
How can I update the dynamic text content which is inside a button ?

In other words, how can you address a dynamic text inside a button ?

Is that possible ?

I want to change the text label of a button, on the fly.

Isn't there any other way to achieve this than "making" a button with movie clip instead od a "real" button ? Does that mean Buttons were not expected to have dynamic text in them ?

Some many threads about the (dynamic text + button) topic that I can't find a way to get rid of this problem ! :be:

Any solutions, from beginner to expert level would suit me :}

claudio
November 13th, 2003, 08:06 PM
Originally posted by jess
Isn't there any other way to achieve this than "making" a button with movie clip instead od a "real" button ? No i think theres not.

jess
November 14th, 2003, 03:16 AM
That's what I call a crystal clear answer LOL

Thanxx Claudio ;)

kode
November 14th, 2003, 04:43 AM
Senocular answered why in this thread: http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19984#post161268. ;)

jess
November 14th, 2003, 05:13 AM
woo ! nice thread :)
thank you for the link, it explains it well.
By the way, I'd prefer the 'option 1' - namely making a clip with button behaviors - instead of 'option 2' which consists in saving references of clip instances (that are inside the button) into accessible "global" variables. I don't like this much cause it's not a nice way, from object- oriented programming point of view, IMHO.

Option 1 is more .. clear and handy ? don't you think so ?

:nerd:

kode
November 14th, 2003, 05:16 AM
Yep, I think that the first option is better too. :)