Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 12th, 2002, 04:28 AM
ryan_b ryan_b is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Newcastle, UK
Posts: 19 ryan_b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Flash MX - Dynamic Text Field Positioning...

Hi,

I have 2 dynamic text fields, drawing their content from a text file containing 2 variables (text). Both text fields are set to autosize, so they change in width according to the amount of characters in the variable.

I also have the following code to position text field 2 to the right of text field 1:

textField2._x = textField1._x + textField1._width + 5;
textField2._y = textField1._y;

When the textfield is static, it works fine. However, using dynamic text seems to be a problem and the right field just displays 5 pixels from the left x position of text field 1.... I think the problem is the way i've set up the script - it doesn't appear to recognise the width of textfield 1 as set by the autosize command.

If anyone can help I'd be very much obliged.
Cheers

Reply With Quote
  #2  
Old January 27th, 2003, 07:01 PM
VAYKENT VAYKENT is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Provo
Posts: 36 VAYKENT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
You'll probably want to look into the 'onChanged' event handler for the Text Field Object in Flash MX.

I'd set it to handle the repositioning of the second text field.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash MX - Dynamic Text Field Positioning...

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap