[flexcoders] Multiline Textfield Trunctation

2008-05-29 Thread ninobronzed
Is there a way to truncate a multiline textfield? Or is there a
component out there that someone wrote that does it? The single-lined
Label component does truncation, but I need it for textfields with
more than one line...
THX



[flexcoders] Slider Thumb overlaps end of Track

2007-11-30 Thread ninobronzed
The thumb is centered, and it's two halves hang over the track bar at
0 and at the maximum.

This is normal and looks great, but I want my thumb to be in the
inside of the track only. It's a rectangle and fits in the track...the
edges of the thumb should be flush with the edges of the track

Is there a solution for this? I'm trying really hard but it's getting
hacky, and I'm using mx_internal, and even that approach isn't working.

Thanks!!



[flexcoders] AS2 errors and code when debugging in Flex Builder

2007-11-08 Thread ninobronzed
I'm using a SWFLoader to load an AS2 Swf. When it loads I see my AS2
code in the call stack in the flex debugger...and errors are thrown. 

Is this expected?
I'm porting this code, which is just a SWFLoader loading an AS2 swf,
from an AIR App.
I didn't see those errors and AS2 code call stack in the AIR app.

Also, when I ran this as an AIR app, all relative urls in my AS2
swf were loaded relative to the AS2 swf. Now that I'm compiling a Flex
Application, I see security issues when it loads relative urls from
file://

I'm confused about what determines this.

Any help would be appreciated...



[flexcoders] Re: Text word wrapping

2007-10-31 Thread ninobronzed
Thanks Alex, 
My VBox (that had the quirky textfield as a child) had a sibling with
a varying width, and when the width was set to 0, this problem occurred. 

Instead of setting the width to 0, I set includeInLayout=false; and
the bug disappeared. 

Thanks.

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Word wrapped text has no natural size.  It can be any shape pretty much
 unless you define one dimension, then we can calculate the other.  
 
  
 
 It is best to update the width of the Text at layout time instead of
 using %.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ninobronzed
 Sent: Tuesday, October 30, 2007 9:50 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Text word wrapping
 
  
 
 I have a mx.controls.Text instance. It is a child of a VBox.
 
 I give it a percentWidth = 100, and the text is truncated (cut off,
 actually. no ellipsis) and doesn't wrap. It only happens when the text
 is a specific length. 
 
 So, most of the time it works correctly, only when the text is close
 to the width of the parent container, the last word is not visible.
 
 For example: My text for my textfield would appear:
 My text for my 
 
 
 
 The extra line is there for the wordwrap, but the word is gone. 
 
 I have also tinkered with maxWidth and width instead of percentWidth
 to no avail.
 
 Please please help. I'm not posting code, because I am hoping someone
 has just seen this before...thank you.





[flexcoders] Text word wrapping

2007-10-30 Thread ninobronzed
I have a mx.controls.Text instance. It is a child of a VBox.

I give it a percentWidth = 100, and the text is truncated (cut off,
actually. no ellipsis) and doesn't wrap. It only happens when the text
is a specific length. 

So, most of the time it works correctly, only when the text is close
to the width of the parent container, the last word is not visible.

For example: My text for my textfield would appear:
My text for my 



The extra line is there for the wordwrap, but the word is gone. 

I have also tinkered with maxWidth and width instead of percentWidth
to no avail.

Please please help. I'm not posting code, because I am hoping someone
has just seen this before...thank you.



[flexcoders] Class (not instance of) implements Interface

2007-09-05 Thread ninobronzed
Is there a way to check if a Class implements an Interface?
Not an instance of a class, but if com.something.MyClass implements
com.something.IMyInterface.