My first 'big' AS

Well, to me it is. It’s a little battery script that I’m writing for my website.
it’s a fun feeling when your code finally works, with graphics it’s just wrong all the time :confused:

http://bohner.asdf.pl/misc/battery_test.html
http://bohner.asdf.pl/misc/battery_test.fla

I have a few problems though.

  1. How to add/substract more than 1% without screwing it up?
  2. Can I add an ease effect when the bar moves X% ?
  3. If I had appyed that ease, and set the bar interval to, lets say 15s, wouldn’t it bee choppy? (How to fix that)

Sumarizing, I need to add an ease effect to the bar, slow down the ‘natural power consumption’, modify it so I can +/- diffrent amounts of energy, and if the battery metter reaches 0 or 101 - it will trigger two diffrent animations.

Btw. Im still a newbie at AS, so probably, the same effect which Im aiming for could be done much easyer.