Copy link to clipboard
Copied
I have two .fla files that communicate via localconnection. One fla has buttons that play videos that appear in the second fla. The code is pretty straight forward on the second .fla. A string is passed to it that happens to be the name of the video to load in the single iteration of flvplayback. My question is this. How can I fade in the video and fade out the video elegantly? I've tried tweens but that doesn't seem to work. The issue I'm trying to avoid is having buttons mashed on the first .fla causing inelegant stops/starts of the videos on the second .fla. Hopefully someone can help.
Here's the code on the second .fla:
import flash.net.LocalConnection;
var conn:LocalConnection = new LocalConnection();
conn.client = this;
conn.connect("connOne");
function playThisVideo(vidname:String){
vid.source = "videos/"+vidname+".mp4";
vid.play();
}
Copy link to clipboard
Copied
tween the alpha of your video.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now