Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-17-2002, 01:59 PM   #1
Registered User
Join Date: Oct 2002
Posts: 7
Default Getting at a text fields properties in a button

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?


mark_anderson_u is offline   Reply With Quote
Old 10-17-2002, 05:54 PM   #2
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666


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...
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:09 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.