6 Replies Latest reply on Aug 10, 2010 4:06 AM by Francisc

    Reset height attribute

    Francisc Level 3

      Hello!

       

      I have an image control with height="100%".

       

      Depending on some IFs I want to set the width to be 100% and the height to what it is when no value is specified.

       

      How can I do that. Setting it to null throws a warning.

       

      Note I am using AS3 and myImage.percentHeight and myImage.percentWidth.

       

      Thank you.