[Flashcoders] Exploring full-screen mode
Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Hi, It looks reasonable from here - I see a grey background with a blue rectangle that still shows up if I go full-screen - they are cropped slightly, i.e. the blue rectangle is at the bottom right hand corner of my screen and I have white bars top and bottom - maybe the swf doesn't match my screen proportion - 1280 x 1024 Glen On 24/02/2011 09:48, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
I see white empty screen in full mode. IE 8, FireFox 3.6, FlashPlayer 10 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, It looks reasonable from here - I see a grey background with a blue rectangle that still shows up if I go full-screen - they are cropped slightly, i.e. the blue rectangle is at the bottom right hand corner of my screen and I have white bars top and bottom - maybe the swf doesn't match my screen proportion - 1280 x 1024 Glen On 24/02/2011 09:48, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Hi, IE 8 is fine with 10.1.85.3 10,2,152,26 Firefox 3.6.13 is fine with 10,2,152,26 Cache problem? Glen On 24/02/2011 10:09, natalia Vikhtinskaya wrote: I see white empty screen in full mode. IE 8, FireFox 3.6, FlashPlayer 10 2011/2/24 Glen Pikeg...@engineeredarts.co.uk: Hi, It looks reasonable from here - I see a grey background with a blue rectangle that still shows up if I go full-screen - they are cropped slightly, i.e. the blue rectangle is at the bottom right hand corner of my screen and I have white bars top and bottom - maybe the swf doesn't match my screen proportion - 1280 x 1024 Glen On 24/02/2011 09:48, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
The same result with this code. In full screen I see blank screen. That means it is not code problem. I reinstalled Flash Player but that does not help. Can you please give me link with this code from you? 2011/2/24 Karl DeSaulniers k...@designdrumm.com: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/ full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniers k...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Glen, thank you for your help also. I don't think it is cache problem. I see now that any swf that plays in Flash Player disappear if I chose full screen from Flash Player Menu. Movie still plays I here sound but screen is blank. 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, IE 8 is fine with 10.1.85.3 10,2,152,26 Firefox 3.6.13 is fine with 10,2,152,26 Cache problem? Glen On 24/02/2011 10:09, natalia Vikhtinskaya wrote: I see white empty screen in full mode. IE 8, FireFox 3.6, FlashPlayer 10 2011/2/24 Glen Pikeg...@engineeredarts.co.uk: Hi, It looks reasonable from here - I see a grey background with a blue rectangle that still shows up if I go full-screen - they are cropped slightly, i.e. the blue rectangle is at the bottom right hand corner of my screen and I have white bars top and bottom - maybe the swf doesn't match my screen proportion - 1280 x 1024 Glen On 24/02/2011 09:48, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
The security of fullscreen is your problem I think. You cant go fullscreen in a test movie in flash, FYI. Has to be on a server or local html file (I believe) And I don't think you can use one movie to make another fullscreen. Did my link work for you? Karl On Feb 24, 2011, at 6:54 AM, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniers k...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/ full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
No, link does not work for me, I will try to uninstall Flash Flayer now. Do fullscreen has security? 2011/2/24 Karl DeSaulniers k...@designdrumm.com: The security of fullscreen is your problem I think. You cant go fullscreen in a test movie in flash, FYI. Has to be on a server or local html file (I believe) And I don't think you can use one movie to make another fullscreen. Did my link work for you? Karl On Feb 24, 2011, at 6:54 AM, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniers k...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] Exploring full-screen mode
I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list
Re: [Flashcoders] Exploring full-screen mode
Are you trying to run the file locally? Stand alone? Did you try making a projector of it? I think a projector file can go fullscreen. Karl On Feb 24, 2011, at 7:31 AM, natalia Vikhtinskaya wrote: I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/ downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/ full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Yes playing swf locally stand alone or as projector file gives the same effect in full screen. Movie plays but I see blank screen. 2011/2/24 Karl DeSaulniers k...@designdrumm.com: Are you trying to run the file locally? Stand alone? Did you try making a projector of it? I think a projector file can go fullscreen. Karl On Feb 24, 2011, at 7:31 AM, natalia Vikhtinskaya wrote: I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list
Re: [Flashcoders] Exploring full-screen mode
I found some here http://forums.adobe.com/thread/659297?tstart=0 How can I open Settings Manager or what new drivers I need for Flash Player 10? 2011/2/24 natalia Vikhtinskaya natavi.m...@gmail.com: Yes playing swf locally stand alone or as projector file gives the same effect in full screen. Movie plays but I see blank screen. 2011/2/24 Karl DeSaulniers k...@designdrumm.com: Are you trying to run the file locally? Stand alone? Did you try making a projector of it? I think a projector file can go fullscreen. Karl On Feb 24, 2011, at 7:31 AM, natalia Vikhtinskaya wrote: I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___
Re: [Flashcoders] Exploring full-screen mode
Hi, Sorry, I did not post the forum link before - it could be a problem with H/W acceleration: http://forums.techarena.in/windows-software/1349719.htm http://www.google.com/support/forum/p/Chrome/thread?tid=74fc99d821fed64ahl=en Hopefully this might help Glen On 24/02/2011 13:31, natalia Vikhtinskaya wrote: I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pikeg...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Exploring full-screen mode
I haven't followed this thread, but the two most common errors when trying to implement full-screen mode are 1) not enabling it in the HTML (param name=allowFullScreen value=true /) and 2) trying to initiate it from a non-user action (like when your app starts up). The call to initiate full-screen mode has to be initiated by a user initiated action (like a mouse click or key press handler). Something to check if you haven't already, sorry if this has already been discussed. See this on UIA requirements for Flash player 10: http://www.adobe.com/devnet/flashplayer/articles/fplayer10_uia_requirements.html Jason Merrill Instructional Technology Architect Bank of America Global Learning -- This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exploring full-screen mode
Problem is solved. I reinstalled video driver. THANK YOU Glen and Karl very much! 2011/2/24 Glen Pike g...@engineeredarts.co.uk: Hi, Sorry, I did not post the forum link before - it could be a problem with H/W acceleration: http://forums.techarena.in/windows-software/1349719.htm http://www.google.com/support/forum/p/Chrome/thread?tid=74fc99d821fed64ahl=en Hopefully this might help Glen On 24/02/2011 13:31, natalia Vikhtinskaya wrote: I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pikeg...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Re: [Flashcoders] Exploring full-screen mode
http://www.macromedia.com/support/documentation/en/flashplayer/help/help01.html Right click on a running flash player, e.g. youtube video or something else and choose Settings, then in the settings box, choose the first icon - Display. On 24/02/2011 14:11, natalia Vikhtinskaya wrote: I found some here http://forums.adobe.com/thread/659297?tstart=0 How can I open Settings Manager or what new drivers I need for Flash Player 10? 2011/2/24 natalia Vikhtinskayanatavi.m...@gmail.com: Yes playing swf locally stand alone or as projector file gives the same effect in full screen. Movie plays but I see blank screen. 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Are you trying to run the file locally? Stand alone? Did you try making a projector of it? I think a projector file can go fullscreen. Karl On Feb 24, 2011, at 7:31 AM, natalia Vikhtinskaya wrote: I uninstaled and installed FP again. Result is the same. FP doesn't show content in full mode. 2011/2/24 Glen Pikeg...@engineeredarts.co.uk: Hi, This sounds like a video driver problem, although I am not 100%. When you re-installed flashplayer, did you uninstall first - use the uninstaller: http://www.adobe.com/support/flashplayer/downloads.html#uninstaller Check out this post about similar complaint - it might help resolve it, I don't know. Glen On 24/02/2011 12:54, natalia Vikhtinskaya wrote: Karl, thank you for your help. I see something wrong on my side. I also don't see any youtube fullscreen video. But I don't know where the problem can be. If I play swf without browser I also don't see content in full screen mode. That means it is FlashPlayer problem. What else can I check or change? 2011/2/24 Karl DeSaulniersk...@designdrumm.com: Here is a sample. Make sure allowFullScreen is set in your HTML. http://designdrumm.com/nataliaVikhtinskaya/ Best, Karl On Feb 24, 2011, at 5:13 AM, Karl DeSaulniers wrote: Try this natalia... import flash.geom.Rectangle; Stage[fullScreenSourceRect] = new Rectangle( 0, 0, Stage.width/2, Stage.height/2); Stage.scaleMode = maintainAspectRatio; function goFullScreen() { Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } this.onFullScreen = function(bFullScreen:Boolean):Void { if (bFullScreen){ Stage.showMenu = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen, goFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); Stage.addListener(Stage[displayState] == fullScreen, onFullScreen); _root.menu = fullscreenCM; Works for me.. :) Best, Karl On Feb 24, 2011, at 3:48 AM, natalia Vikhtinskaya wrote: Hi I am trying to use full screen mode. I tested this example for AS2 http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html Here is a test html with goScaledFullScreen function http://www.mightybook.com/test/adobeAS2.html As you can see in full mode content disappears. The same if I use goFullScreen function. What is wrong in my adaptation? Code with custom context menu from this article import flash.geom.Rectangle; function goFullScreen() { Stage[displayState] = fullScreen; } function goScaledFullScreen(){ var screenRectangle:Rectangle = new Rectangle(); screenRectangle.x = 0; screenRectangle.y = 0; screenRectangle.width=Stage.width/2; screenRectangle.height=Stage.height/2; Stage[fullScreenSourceRect] = screenRectangle; Stage[displayState] = fullScreen; } function exitFullScreen() { Stage[displayState] = normal; } function menuHandler(obj, menuObj) { if (Stage[displayState] == normal) { menuObj.customItems[0].enabled = true; menuObj.customItems[1].enabled = false; } else { menuObj.customItems[0].enabled = false; menuObj.customItems[1].enabled = true; } } var fullscreenCM:ContextMenu = new ContextMenu(menuHandler); fullscreenCM.hideBuiltInItems(); var fs:ContextMenuItem = new ContextMenuItem(Go Full Screen,goScaledFullScreen); fullscreenCM.customItems.push( fs ); var xfs:ContextMenuItem = new ContextMenuItem(Exit Full Screen, exitFullScreen); fullscreenCM.customItems.push( xfs ); _root.menu = fullscreenCM; Thank you in advance. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list