all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

write variables inside button



write variables inside button Nacho
6/28/2004 1:44:16 PM
flash actionscript: Hi,

It's possible to do that? I want to create a button with a dynamic text
field inside it and change the name dinamically.

It i do the following:

button_name.variable_name = "my text";

don't work. any ideas?

thanks!
Re: write variables inside button flagers
6/28/2004 2:36:44 PM
Maybe u didn't INCLUDE the font ...try it

Re: write variables inside button Nacho
6/28/2004 2:47:06 PM
[quoted text, click to view]
Re: write variables inside button Pluda
6/28/2004 2:52:06 PM
_root.My_Mc.My_Button.My_textfield.text = myVar;

Re: write variables inside button flagers
6/28/2004 3:38:51 PM
if u gave an istance name to the text field (and not a var name) u have to
write

button_name.variable_name.text = "my text";

try it!

Re: write variables inside button Nacho
6/28/2004 3:51:07 PM
[quoted text, click to view]
no luck... if i put the dynamic text field inside a button mc, it
doesn't work... you are doing it??

Re: write variables inside button flagers
6/28/2004 4:29:45 PM
naturally.. i do it in every site... it works perfectly....
it's strange.. it should work... i'm sure u're making some mistakes...

but WAIT WAIT....
do u put inside an MC, inside a Button or inside an MC_button(however MC)?

ciao
Fabio

AddThis Social Bookmark Button