0 Replies Latest reply on Jan 14, 2010 6:33 AM by Markstar.Adbe

    Problems with the height property (Designer vs. AS)

    Markstar.Adbe Level 1

      Hi,

      I have a MovieScript which consists of a rectangle. In the designer I set the height to 78px, which is now shown in the property tab. However, if I ask for the height via ActionScript (let's say: trace(test.height); ), I get 80px.

       

      Okay, I thought, no big deal, somehow Flash can't cope with the border (even though this is all within the MC). But if I resize the MC via AS, the height of the resulting MC is a fraction (for example, test.height = 94 results in the height being 93.95 ).

       

      I attached the problematic movie clip (in AS2 for better compatibility), maybe you guys could tell me how I get rid of these fractions?

       

      Thanks in advance!