# AS3 and Tweener

**URL:** <https://forum.kirupa.com/t/as3-and-tweener/267487>\
**Category:** flash\
**Created:** [August 1, 2008, 6:19pm UTC](https://forum.kirupa.com/t/as3-and-tweener/267487 "2008-08-01T18:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaredd1012](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@jaredd1012](https://forum.kirupa.com/u/jaredd1012)\
**Post date:** [August 1, 2008, 6:19pm UTC](https://forum.kirupa.com/t/as3-and-tweener/267487/1 "2008-08-01T18:19:51Z")

</div>

I am relatively new to working in AS3 and Tweener, and I am having trouble making onComplete and delay functions work within Tweener when calling them from an Enter\_Frame event. Example

line\_mc.addEventListener(Event.ENTER\_FRAME, intro);

function intro(event:Event):void  
{  
Tweener.addTween(event.target, {alpha:1, time:.2, delay:2, transition:“easeOutQuad”, onComplete:lineOut});  
}  
function lineOut():void  
{  
line\_mc.alpha = 0;  
}  
Any help would be greatly appreciated

Thanks
