PDA

View Full Version : Getting at a text fields properties in a button


mark_anderson_u
10-17-2002, 02:59 PM
Hi All

I'm having problems with dynamic text fields. I have set them to single line auto expand (hollow circular handle at bottom right), and when I assign text to the variable it doesn't fit the field.

Firstly, I don't understand wh they're not autosizing, but ignoring that, I can't seem to get at the autosize property in the script.

I have button called "btnHome" on the main timeline. I tis a library item, that contains text fields for the Up and Over states. The dynamic text field for the up state is called btnHomeUp. In the movie explorer and the target path selecter, I cannot see the text field.

I tried "_root.btnHome.btnHomeUp.autosize=true;" but nothing happens.

Any ideas?

TIA

Mark

CyanBlue
10-17-2002, 06:54 PM
Howdy... :)

I could be wrong... I can't trust my brain anymore...
I think I have read that you should create a text field with createTextField() function so that the 'autosize' could work... I have used autosize before with createTextField() and I had no problem at the time, so either the one I just said was the problem or there is something else... You might want to check it out on that...

Good luck...