FullScreen in AS 3.0

Posted by user908426 
FullScreen in AS 3.0
September 06, 2011 05:37AM
Hello.
I'm using SlideshowBox as a component and have one problem. Is it possible to run component in fullscreen mode using ActionScript 3.0? When I'm changing stage.displayState to fullscreen, it doesn't work for component. Is any way to achieve it?
Re: FullScreen in AS 3.0
September 06, 2011 11:11AM
Yes, the component can run in full screen if you will use as3 code.
How specifically did you try to enter the swf into full screen mode?
Re: FullScreen in AS 3.0
September 06, 2011 01:25PM
I am using Action Script 3. I have text button on the stage. When I click the button, it will change stage.displayState to fullscreen and create SlideshowBox object dynamically with code
album = new SlideshowBox();
. But the problem is, that the album runs in normal mode, even stage is in fullscreen mode. Is there any kind of property like album.fullscreen to set it to "true"?
Below is the main code:
package saqio {
	import flash.display.*;
	import flash.events.*;
	import SlideshowBox;
	import com.jumpeye.events.SlideshowBoxEvent;
	import com.jumpeye.slideshowBox.templates.SimpleThumbview;
	
	public class Main extends MovieClip {
		private var album:SlideshowBox;
		private var tb:TextButton;
		private var template:SimpleThumbview;
		private var fv:Object;

		public function Main() {
			this.addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
		}
		
		private function onAddedToStage(e:Event) {
			this.removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
			
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			tb = new TextButton();
			tb.addEventListener(MouseEvent.CLICK, createAlbum)
			addChild(tb)
			
			fv = LoaderInfo(this.root.loaderInfo).parameters;
		}
		private function createAlbum(e:MouseEvent) {
			stage.displayState = StageDisplayState.FULL_SCREEN;

			album = new SlideshowBox();
			album.source = "source.xml";
			addChild(album);
			
			template = new SimpleThumbview();
			template.fullScreenButton = false;
			album.template = template;
			
		}

	}
	
}

Re: FullScreen in AS 3.0
September 07, 2011 11:22AM
Well, the component should go in full screen as well and I just run a test and it is working fine.

Just try a simple case and when you are pressing a button to stage to go to full screen and you will see that the album will go on full screen as well.

import flash.events.MouseEvent;

b.addEventListener(MouseEvent.CLICK, clickHandler)
function clickHandler(ev:MouseEvent):void{
stage.displayState=StageDisplayState.FULL_SCREEN

}
Re: FullScreen in AS 3.0
September 09, 2011 11:04AM
OK, but where do you have SlideshowBox object? This is simple changing stage to fullscreen, and it works fine in my code, but the SlideshowBox object don't change it's mode to fullscreen, even the container swf stage is in fullscreen. I mean SlideshowBox object don't use fullscreen images, nor changes fullscreen button status, nor even resizes the SlideshowBox object stage (workspace)
Re: FullScreen in AS 3.0
September 09, 2011 02:21PM
Actually the slideshowbox object is going in full screen mode. Also the full screen button on the ssb component changes.
See this video capture: [screencast.com]
Re: FullScreen in AS 3.0
June 17, 2012 10:41AM


FullScreen is a excellent choice and full of effect everyday and anyway when using Computer.
Really enjoy to use thatkind hightech materials; Lovely.

Best wishes: Helsinki2002
Sorry, only registered users may post in this forum.

Click here to login