# FlvPlayback on Top most Layer

**URL:** https://forum.kirupa.com/t/flvplayback-on-top-most-layer/294680
**Category:** flash
**Created:** [August 18, 2009, 2:49pm UTC](https://forum.kirupa.com/t/flvplayback-on-top-most-layer/294680 "2009-08-18T14:49:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zarniwoop](https://avatars.discourse-cdn.com/v4/letter/z/8797f3/32.png) [@Zarniwoop](https://forum.kirupa.com/u/Zarniwoop)
#### Post date: [August 18, 2009, 2:49pm UTC](https://forum.kirupa.com/t/flvplayback-on-top-most-layer/294680/1 "2009-08-18T14:49:41Z")

</div>

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…

```auto
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

```
