2 Replies Latest reply on Nov 4, 2009 11:04 PM by Subeesh Arakkan

    Binding width

    arunkumard87

      Dear All,

       

      Kindly check the code below.In this code i tried to bind the x value to label,but is not working.When i tried to assign the width in creationComplete function its working fine. With out function how to do the same.


          <mx:HBox width="100%" autoLayout="false" textAlign="center" x="0" y="0" id="box1">
             <mx:Image width="161" height="72" source="../logo_hll.gif"/>
              <mx:Label id="lbl" text="Request for Translation" width="173" height="34" fontStyle="normal" color="#CDBB22" textDecoration="underline"                      x="{box1.width/2}" y="500"/>

         </mx:HBox>

       

      Thanks & Regards,

      Arun