I’ve created a website in AS2 which has a trailer playing as soon as you access the website. After the trailer is complete, a replay button and facebook share button shows on top of the flv video… Like that on Youtube replay button that shows after the video is complete… Everything is working well but I’m having a hard time removing those buttons if the user clicks on the play button on the skin rather than clicking on the replay button I created. I need to know how is it possible to make those button’s visibility false if the user clicks on the play button of the skin. Thanks, Here’s my code
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.video.*;
replay._visible = false;
fbshare._visible = false;
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
replay._visible = true;
fbshare._visible = true;
var myTween:Object = new Tween(replay, "_alpha", Strong.easeOut, 0, 100, 1, true); var myTween:Object = new Tween(fbshare, "_alpha", Strong.easeOut, 0, 100, 1, true); };
my_FLVPlybk.addEventListener("complete", listenerObject);
my_FLVPlybk.contentPath = "Cities Movie.flv";
replay.onRelease = function (){
my_FLVPlybk.play();
replay._visible = false;
fbshare._visible = false;
}