Archive for the ‘ Flash AS3 ’ Category

Problems with Flash, Video, Projectors and Full Screen

Sometimes things just don’t work. Flash CS4 (AS3) seems to have a problems when you have a combination of video (FLVPlayback) in a projector that is set to appear full screen.

Here’s the best way to dodge the proplems.

  • Keep the video on the main timeline.
  • Set fullScreenTakeOver to false to stop the video becoming full screen when the projector does.
  • When hiding the video also set the FLVPlayback skin to nothing. Without this there is an intamitant bug that will make the skin not move with the player.

The full screen code.

mainVideoPlayer.visible = false;
mainVideoPlayer.fullScreenTakeOver = false;

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

Hiding the video = "";
mainVideoPlayer.x = -2000;

Showing the video = "SkinUnderPlayStopSeekCaptionVol.swf";
mainVideoPlayer.x = _originalVideoX;

Flash XML Import code

This is the code for using the custom class ‘xmlloader’ – sorry this ones not mine so its private.

var _xml:XML;

//Load XML
var _xmlLoader:XMLLoader = new XMLLoader("archive.xml");
_xmlLoader.addEventListener(Event.COMPLETE, evtXMLLoaded);

function evtXMLLoaded(e:Event):void
_xml = _xmlLoader.xml;

Calls to the XML objects can then be made in the following way

_videoSource = _xml.source;
_slidePath   = _xml.sliderooturl;