I am creating a interface with a button to play a flv using flvplayback.
I would like the flvplayback object to always appear above all the other objects on the stage.
Is this possible? Do you use addChildAt() somehow.
I am using AS3 in Flash Player 9.
Below is the contents of what is called to place the inital button on the stage.
Thank you for any help or advice…
package com.assets{
//basic flash import
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import fl.controls.*;
import fl.events.*;
import fl.video.*;
//import tweenlite;
import gs.*;
//swfaddress import
import com.asual.swfaddress.*;
import com.dLibs.utils.*;
//debuging stuff
//import nl.demonsters.debugger.MonsterDebugger;
public class PlayArrow extends Sprite {
public var myVideoPath:String;
public var flvPlayer:FLVPlayback;
public var myTimer:Timer;
public function PlayArrow(sectionXML:XML, videoPath:String):void {
myVideoPath = videoPath;
this.buttonMode = true;
this.alpha = 0.8;
this.addEventListener(MouseEvent.CLICK, playVideo);
}//PlayArrow function end
function playVideo(e:MouseEvent):void {
TweenLite.to(this, 1,{alpha:1});
this.alpha = 1;
this.removeEventListener(MouseEvent.CLICK, playVideo);
flvPlayer = new FLVPlayback();
TweenLite.to(flvPlayer, 1,{registrationWidth:674,registrationHeight:379 });
//flvPlayer.registrationWidth = 674;
//flvPlayer.registrationHeight = 379;
flvPlayer.scaleMode = VideoScaleMode.EXACT_FIT;
flvPlayer.x = -442;
flvPlayer.y = 0;
flvPlayer.skin = globals.gPath.flvSkin;
flvPlayer.autoPlay = true;
flvPlayer.autoRewind = true;
flvPlayer.source = myVideoPath;
addChild(flvPlayer);
}//end mouseclick
}//end class
}//end package