RE: [Flashcoders] v2 Button Label width?

2006-03-02 Thread jim
You set the width of the button using myButton.setSize(width, height); and
im not sure but I think if you have a reference to the label text field you
can use label._width = label.textWidth; 

Hope this helped.
Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Polk
Sent: 02 March 2006 19:02
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] v2 Button Label width?

I have searched google, the list, MM/Adobe, help files and my new book,
"Advanced Components". I cannot seem to figure out how to determine the
width of the Label embedded into the v2 Button component. I will be
loading many different languages via Unicode into the label and will not
know the exact size to set until I have fed the text into it.

 

In looping through its properties I have determined the Label is stored
in labelPath.

 

The other option I am trying to avoid is rendering an identical string
into an invisible label component to determine its size. The only option
I see right now, is using a non-monospaced font. Any help would be
appreciated.

 

Thanks,

Steve

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] v2 Button Label width?

2006-03-02 Thread Steve Polk
Setting sizes is not the issue. I need access to the size of the label
after running autoSize = "left" and adding text to the label. I am
putting in unknown text into each button and will need to resize them
according to the text (Unicode) length. This is mandatory since these
buttons are part of a application UI that sizes according to the
nationality's current language.

Using _width always returns the same result, no matter what size it is.
textWidth returns undefined.

Thanks,
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: Thursday, March 02, 2006 3:12 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] v2 Button Label width?

You set the width of the button using myButton.setSize(width, height);
and
im not sure but I think if you have a reference to the label text field
you
can use label._width = label.textWidth; 

Hope this helped.
Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Polk
Sent: 02 March 2006 19:02
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] v2 Button Label width?

I have searched google, the list, MM/Adobe, help files and my new book,
"Advanced Components". I cannot seem to figure out how to determine the
width of the Label embedded into the v2 Button component. I will be
loading many different languages via Unicode into the label and will not
know the exact size to set until I have fed the text into it.

 

In looping through its properties I have determined the Label is stored
in labelPath.

 

The other option I am trying to avoid is rendering an identical string
into an invisible label component to determine its size. The only option
I see right now, is using a non-monospaced font. Any help would be
appreciated.

 

Thanks,

Steve

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] v2 Button Label width?

2006-03-02 Thread Steve Polk
I figured out my issue. I was not waiting the standard 1 frame for the
field to properly initialize. After adding this buffer, all works fine
and as intended.

Thanks,
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Polk
Sent: Thursday, March 02, 2006 3:25 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] v2 Button Label width?

Setting sizes is not the issue. I need access to the size of the label
after running autoSize = "left" and adding text to the label. I am
putting in unknown text into each button and will need to resize them
according to the text (Unicode) length. This is mandatory since these
buttons are part of a application UI that sizes according to the
nationality's current language.

Using _width always returns the same result, no matter what size it is.
textWidth returns undefined.

Thanks,
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: Thursday, March 02, 2006 3:12 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] v2 Button Label width?

You set the width of the button using myButton.setSize(width, height);
and
im not sure but I think if you have a reference to the label text field
you
can use label._width = label.textWidth; 

Hope this helped.
Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Polk
Sent: 02 March 2006 19:02
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] v2 Button Label width?

I have searched google, the list, MM/Adobe, help files and my new book,
"Advanced Components". I cannot seem to figure out how to determine the
width of the Label embedded into the v2 Button component. I will be
loading many different languages via Unicode into the label and will not
know the exact size to set until I have fed the text into it.

 

In looping through its properties I have determined the Label is stored
in labelPath.

 

The other option I am trying to avoid is rendering an identical string
into an invisible label component to determine its size. The only option
I see right now, is using a non-monospaced font. Any help would be
appreciated.

 

Thanks,

Steve

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] v2 Button Label width?

2006-03-03 Thread Jim Tann
If textWidth returns undefined then it isn't the textfield you are
pointing to,  whenever you change the text in a textfield it updates the
textWidth property. Try using xray to see where the actual textfeild is
in the movie.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Polk
Sent: 02 March 2006 21:25
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] v2 Button Label width?

Setting sizes is not the issue. I need access to the size of the label
after running autoSize = "left" and adding text to the label. I am
putting in unknown text into each button and will need to resize them
according to the text (Unicode) length. This is mandatory since these
buttons are part of a application UI that sizes according to the
nationality's current language.

Using _width always returns the same result, no matter what size it is.
textWidth returns undefined.

Thanks,
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jim
Sent: Thursday, March 02, 2006 3:12 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] v2 Button Label width?

You set the width of the button using myButton.setSize(width, height);
and
im not sure but I think if you have a reference to the label text field
you
can use label._width = label.textWidth; 

Hope this helped.
Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Polk
Sent: 02 March 2006 19:02
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] v2 Button Label width?

I have searched google, the list, MM/Adobe, help files and my new book,
"Advanced Components". I cannot seem to figure out how to determine the
width of the Label embedded into the v2 Button component. I will be
loading many different languages via Unicode into the label and will not
know the exact size to set until I have fed the text into it.

 

In looping through its properties I have determined the Label is stored
in labelPath.

 

The other option I am trying to avoid is rendering an identical string
into an invisible label component to determine its size. The only option
I see right now, is using a non-monospaced font. Any help would be
appreciated.

 

Thanks,

Steve

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com