Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-23-2007, 08:41 AM   #1
marsJ
Registered User
 
Join Date: May 2007
Posts: 19
Default dynamic text box width

Hi again,

I am accessing the ._width property of a dynamic text box and using this width to set the ._x position of a separate movie clip. However the value returned doesn't seem to give the width of the text box, but a slightly smaller value. Does anyone have any idea what this value means? And how I can access the actual width of the text box. (i.e. the point at which the text stops if the box was set at point 0,0 on the stage)

Thanks
marsJ is offline   Reply With Quote
Old 05-23-2007, 08:51 AM   #2
TimUK
flashmonkey
 
Join Date: Feb 2007
Location: London, UK
Posts: 81
Default

the _width property of a textfield should give the width of the text box - if its slightly out, then just add a few pixels as adjustment when youre setting the position of the MC.

Otherwise, if you want to grab the width of the actual line of text itself (not the width of the box) you can use the textWidth property
TimUK is offline   Reply With Quote
Old 05-23-2007, 09:33 AM   #3
marsJ
Registered User
 
Join Date: May 2007
Posts: 19
Default

Thanks for reply,
I wasn't using embedded fonts, which meant that if the textbox was small then the MC would intersect the text, if it was long then the MC would be too far from the textbox. I'm not sure

I have embedded the fonts now and am using the ._width property and it works fine

Thanks for your help
marsJ is offline   Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML.txt ----> dynamic text box jerryCLEMENT ActionScript 2.0 3 09-23-2009 05:56 PM
Optimizing Flash Web Sites for Search Engines rockcoastmedia General Chat 19 03-29-2009 09:31 PM
Transferring Values from one Dynamic Text box to another bx095 Components 2 05-14-2007 12:52 AM
truncate dynamic text box with elipse pherplexed ActionScript 2.0 0 05-07-2007 03:06 AM
Controlling Dynamic Text length fahadbht ActionScript 2.0 5 02-02-2007 11:14 PM


All times are GMT. The time now is 04:19 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.