2 Replies Latest reply on Jun 2, 2011 6:23 AM by Stenrap2

    BorderContainer width in ActionScript

    Stenrap2 Level 1

      Hi all,

       

      I'm programmatically creating a spark BorderContainer in ActionScript and filling it with a few labels. After I make it visible, it's width is 298 pixels. However, I only know this because I'm taking a screenshot and measuring the width. If I trace() the width, or explicitWidth, or measuredWidth, or getExplicitOrMeasuredWidth(), or getLayoutBoundsWidth() ... ad nauseum ... the reported width is always 42 pixels. Without fail. Period. ALWAYS!

       

      Does anyone know how the hell I can get the width that is visible on the screen? It's absolutely ridiculous how easy this should be, but isn't.