# FLV Video Fade In (PLEASE HELP A LADY WITH AS3!)

**URL:** https://forum.kirupa.com/t/flv-video-fade-in-please-help-a-lady-with-as3/295394
**Category:** flash
**Created:** [August 29, 2009, 3:40am UTC](https://forum.kirupa.com/t/flv-video-fade-in-please-help-a-lady-with-as3/295394 "2009-08-29T03:40:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![reid1](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@reid1](https://forum.kirupa.com/u/reid1)
#### Post date: [August 29, 2009, 3:40am UTC](https://forum.kirupa.com/t/flv-video-fade-in-please-help-a-lady-with-as3/295394/1 "2009-08-29T03:40:07Z")

</div>

Hi guys.  
I’m trying to make a fade in for my FLV video but I am not sure how I can go about doing that in actionscript 3. I was looking over a sample file that has this fade in effect for the video but it was created in actionscript 2. If I put this code in Actionscript 3 and preview the result, I get a bunch of errors. Does anyone here know how I can convert this code from AS2 to AS3. Thank you guys! The flv video I have is titled “fire4.flv”. Is there a different scriptcode/approach I can work with in AS3? Here is the code that I have which works in AS2 but not AS3 and an attached fla workfile:

import mx.transitions.\*;  
var netConnection:NetConnection = new NetConnection();  
netConnection.connect(null);  
var netStream:NetStream = new NetStream(netConnection);  
cpVideo.attachVideo(netStream);  
netStream.play(“fire4.flv”);  
function fadeOut() {  
new Tween(cpVideo, “\_alpha”, Strong.easeOut, 100, 0, .5, true);  
}  
setTimeout(fadeOut,1000);
