4 Replies Latest reply on Nov 6, 2007 7:08 AM by Rothrock

    Inconsistent transparency incrementing

    PKENGLISH Level 1
      Hi, I am trying to increment the transparency of movie clips but when I trace the value it shows strange values instead of round numbers like i would expect.

      My code is:

      if(_global.active_page!= null & content_hold.blackout._alpha<100){
      content_hold.blackout._alpha+=5;
      }

      and the values that are spit out are:
      4.6875
      9.375
      14.0625
      18.75
      23.4375
      28.125
      32.8125
      37.5
      42.1875
      46.875
      51.5625
      56.25
      60.9375
      65.625
      70.3125
      75
      79.6875
      84.375
      89.0625
      93.75
      98.4375
      103.125

      Does anyone know what might cause this? I can increment any other variable and have the results come out predictably but every time I do it with opacity it comes out weird. Thanks in advance.