7 Replies Latest reply on Aug 7, 2011 6:14 PM by Cool Wind

    How to get the width and height of Flex Mobile View?

    Cool Wind Level 1

      Hi,

       

      The following statements can get the width and height of current Flex mobile application:

       

      var application:UIComponent = FlexGlobals.topLevelApplication as UIComponent;

      trace(application.width);

      trace(application.height);

       

      But I don’t know how to get the width and height of current Flex mobile View (i.e. the content size excludes Action Bar and Navigation bar). Why the “this.width” always returns 0?

       

      Thanks!