2 Replies Latest reply on Nov 30, 2009 1:53 PM by Prabh Singh

    How to position a component

    SiHoop Level 1

      I'm having a terrible time laying out components on the stage.The following file places a component in the top left of the stage. I want it to appear in the bottom right corner, 10 pixels in from the right, and 10 pixels up from the bottom. I want the component to re-position itself if the browser is re-sized.

       

      What code can I place into the component to make it position itself correctly?

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
               xmlns:custom="components.*" width="100%"  height="100%" >
              <custom:EggTimer id="eggTimer1" height="66" width="66" timeLeft="300"  />
      </mx:Application>