FLVPlayback in Flex
One thing clearly lacking in Flex is a Videoplayer component like the one found in Flash CS3. Flex does have a VideoDisplay component , but it do not have controls to interact with video like play, pause, seek etc.
In few simple steps we can easily use the FLash FLVPlayback in Flex
- On windows machine go to Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\FLVPlayback and copy the “fl” folder containing the FLVPlayback source and paste it in the flex application’s source folder .
- Create new actionscript class named Icon.as in the video folder with an empty constructor . This is to get rid of a compiler error like this ” Call to a possibly undefined method Icon. “
- In the FLVPlayback class on line number 871, wrap the following lines of code in an if statement.
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
The result will look like this
if(boundingBox_mc){
boundingBox_mc.visible = false;
removeChild(boundingBox_mc);
boundingBox_mc = null;
};Finally we need do is to copy the Video player controlbar skins . We can find them in this directory Program Files\Adobe\Adobe Flash CS3\en\Configuration\FLVPlayback Skins\ActionScript 3.0
Thats it !! . We are good to go now . Click on the image below to view a sample ( Right click to view the source )
Categories: Flex
FLV Player Flex, FLVPlayback Flex, VideoDisplay Flex, VideoPlayer Flex

Hello!
Thanks for the tutorial… I am having issues though. I’m trying to get the FLVPlayback to stream from my FMS. Is there some secret why it won’t pull in the video?
awesome thanks!
thanks a lot! awesome, great help
“.2″ is not a advice. To solve it properly import “FLVPlaybackAS3.swc”,
which by default (for CS4) is in the “C:/Program Files/Adobe/Adobe Flash CS4/Common/Configuration/Components/Video/FLVPlaybackAS3.swc” path.
Yeah. This was posted months back. Now there is a new spark video player control in Flex 4.
In order for the fullscreen button from a loaded FLVPlayback skin to work in Flash Builder or Flex project that you have imported the latest fl classes you need to give the argument to the compiler -define=CONFIG::PLAYER,true because the fullscreen method in UIManager is wrapped in the CONFIG::PLAYER namespace.