Skip to main content
Inspiring
April 5, 2019
Question

FLVplayback fade in/out...

  • April 5, 2019
  • 1 reply
  • 385 views

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();

}

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

kglad
Community Expert
Community Expert
April 5, 2019

tween the alpha of your video.