# My first 'big' AS

**URL:** <https://forum.kirupa.com/t/my-first-big-as/156216>\
**Category:** flash\
**Created:** [July 23, 2005, 11:24pm UTC](https://forum.kirupa.com/t/my-first-big-as/156216 "2005-07-23T23:24:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bohner](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@Bohner](https://forum.kirupa.com/u/Bohner)\
**Post date:** [July 23, 2005, 11:24pm UTC](https://forum.kirupa.com/t/my-first-big-as/156216/1 "2005-07-23T23:24:59Z")

</div>

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 😕

[http://bohner.asdf.pl/misc/battery\_test.html](http://bohner.asdf.pl/misc/battery_test.html)  
[http://bohner.asdf.pl/misc/battery\_test.fla](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.
