Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-01-2007, 03:58 PM
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default Problems with window size when going fullscreen and back to normal

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?
Reply With Quote
  #2 (permalink)  
Old 06-02-2007, 01:45 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Problems with window size when going fullscreen and back to normal

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;
2. restore
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;
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:20 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.