8 Replies Latest reply on Dec 8, 2011 4:20 PM by Flex harUI

    How to adjust skin graphics dynamically.

    Gregory Lafrance Level 6

      I have a component for a mobile app whose skin includes graphics like the gray, purple and orange areas below:

       

      forum_file1.png

       

      I want to adjust the height of these graphical skin elements based on the size of the mobile device.

       

      I start by finding the height of the mobile device screen, and I use a multiple number to calculate the height height of this bar.

       

      My question is this, should I just draw these various skin graphical elements in the custom skin class updateDisplayList() method, or should I define <s:Rect> elements and bind their properties to variables in the skin class, and update those variable values in updateDisplayList()?