# How to tween alpha of dinamic drawn lines

**URL:** <https://forum.kirupa.com/t/how-to-tween-alpha-of-dinamic-drawn-lines/327763>\
**Category:** flash\
**Created:** [March 27, 2012, 12:10pm UTC](https://forum.kirupa.com/t/how-to-tween-alpha-of-dinamic-drawn-lines/327763 "2012-03-27T12:10:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [March 27, 2012, 12:10pm UTC](https://forum.kirupa.com/t/how-to-tween-alpha-of-dinamic-drawn-lines/327763/1 "2012-03-27T12:10:38Z")

</div>

I´m using the code bellow to draw a line:

```auto

createEmptyMovieClip("line",1);

line.lineStyle(2,0xFFFFFF,100);
line.moveTo(0,0);
line.lineTo(100,100); 

```

My question is: How can I make the line to tween, from alpha 0 to 100 using AS2? I Tried TweenMax on “line” movieclip but it does not work.

Any help will be great! Thanks!
