Flex Spark VideoPlayer FullScreen bug workaround

VideoPlayer has a native bug which causes it, to loose its width and height attributes when the user cancels FullScreen mode. A workaround is to capture the event and re-enter the player attributes as follows: Listening to the FULL_SCREEN event at the systemManager systemManager.stage.addEventListener(FullScreenEvent.FULL_SCREEN,funct ion(e) { var event = e.fullScreen; if(event==false) { player.percentHeight=100; player.percentWidth=100; player.invalidateDisplayList();…

Read more Flex Spark VideoPlayer FullScreen bug workaround

Add Stop Button in spark VideoPlayer

I have searched all around for how to add the Stop button in a Flex spark VideoPlayer.Here is how: You’ll need to create two Skins one for the whole VideoPlayer where you declare the stop Button, and one more for the actual stop button VideoPlayer Skin: <s:SparkSkin xmlns:fx=”http://ns.adobe.com/mxml/2009″ xmlns:s=”library://ns.adobe.com/flex/spark” xmlns:fb=”http://ns.adobe.com/flashbuilder/2009″ alpha.disabledStates=”0.5″ chromeColor.fullScreenStates=”0xCCCCCC”> <!– A chrome…

Read more Add Stop Button in spark VideoPlayer