# Animating with AS and time

**URL:** <https://forum.kirupa.com/t/animating-with-as-and-time/194408>\
**Category:** Uncategorized\
**Created:** [July 23, 2006, 1:45am UTC](https://forum.kirupa.com/t/animating-with-as-and-time/194408 "2006-07-23T01:45:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JCPalmer](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@JCPalmer](https://forum.kirupa.com/u/JCPalmer)\
**Post date:** [July 23, 2006, 1:45am UTC](https://forum.kirupa.com/t/animating-with-as-and-time/194408/1 "2006-07-23T01:45:54Z")

</div>

hey, is there a way to animate only with actionscript?

Basically what I mean is can you have an object that performs multiple tasks?

Say I have an object called “ball”. I want that ball to start with an alpha of 0%. I then Want the ball to increase its alpha to 100% over a 3 second time period. While the ball is increasing alpha I want it to move to the right 50px. After that I want it to increase brightness to 100% then decrease brightness to 10% then increase again to 100% and decrease again to 0%.

Now, of course this would look really bad and it can be done easily using the timeline. But can you do this in actionscript? Can you actually set times for a certain task to be performed?
