|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Here is the code I'm using to enable the fullscreen mode:
DirectX.setDisplayMode(800, 600, 32); FSCommand("FullScreen", true); First I set the screen resolution to 800x600 and remove the window border by calling the FSCommand. To return to windowed mode, I'm using: DirectX.restore(); FSCommand("FullScreen", false); Now, when I do this, the resolution changes back and the window border reappears but the swf does not resize to fit within the window border. The window border is placed over the top of the swf (covering some of it along the edges) but what needs to happen is the window border needs to be around the swf like it originally was. Any suggestions or is there a better way to switch from fullscreen back to windowed mode? |
|
|||
|
Please use the following actionscript
1. fullscreen Code:
import SWFKit.*; import SWFKit.application.*; DirectX.setDisplayMode(800, 600, 32); Appearance.borderStyle = Appearance.BSNONE; SizeAndPos.windowSize = SizeAndPos.SSFULLSCREEN; Code:
import SWFKit.*; import SWFKit.application.*; DirectX.restore(); Appearance.borderStyle = Appearance.BSRESIZABLE; // calls the windowSize property for two times to make sure // that the size of the window will be restored properly SizeAndPos.windowSize = SizeAndPos.SSDEFAULT; SizeAndPos.windowSize = SizeAndPos.SSDEFAULT; |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|