Home
> SlideshowBox 2
> Topic
FullScreen in AS 3.0
Posted by user908426
FullScreen in AS 3.0 September 06, 2011 05:37AM | Registered: 12 years ago Posts: 3 |
Re: FullScreen in AS 3.0 September 06, 2011 11:11AM | Admin Registered: 13 years ago Posts: 248 |
Re: FullScreen in AS 3.0 September 06, 2011 01:25PM | Registered: 12 years ago Posts: 3 |
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
Below is the main 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 | Admin Registered: 13 years ago Posts: 248 |
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
}
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 | Registered: 12 years ago Posts: 3 |
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 | Admin Registered: 13 years ago Posts: 248 |
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]
See this video capture: [screencast.com]
Re: FullScreen in AS 3.0 June 17, 2012 10:41AM | Registered: 11 years ago Posts: 1 |
Sorry, only registered users may post in this forum.