Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2005, 12:54 PM
Junior Member
 
Join Date: Jun 2005
Posts: 5
Default Resolution problem

Hello,
Sorry i´m a complete beginner. The problem is i need to check what resolution is running at the start of the application. This because the presentation needs to appear correctly on both wide format (16.10) and normal 4.3.
Is it possible to check the current resolution then automatically change the resolution accordingly. I have already prepared the flash film so that it is not stretched
when it is run in wide format. I would appreciate any help

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-07-2005, 01:49 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Resolution problem

Code:
trace(SysInfo.displaySetting.pelsWidth);
trace(SysInfo.displaySetting.pelsHeight);

getMainWnd().onMessage = function (msg, wparam, lparam)
{
if (msg == /*WM_DISPLAYCHANGE*/0x007e)
{
trace("color=", wparam);
trace("horz res=", lparam & 0xFFFF);
trace("vert res=", (lparam & 0xFFFF0000) >> 16);
}
}
Reply With Quote
  #3 (permalink)  
Old 06-07-2005, 03:33 PM
Junior Member
 
Join Date: Jun 2005
Posts: 5
Default Re:Resolution problem

Thanks for the help. But how do i incorperate this with DirectX.setDisplayMode(1024, 768, 32) for standard resolution and DirectX.setDisplayMode(1280, 768, 32) for wide format. Sorry for being dum but i have just started to learn how to use swfkit. help appreciated
Reply With Quote
  #4 (permalink)  
Old 06-09-2005, 02:34 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Resolution problem

The SysInfo.displaySetting.pelsWidth property and the SysInfo.displaySetting.pelsHeight property return the horz resolution and the vert resolution, then you can use these properties to determine whether the screen is wide or normal.

If you use the DirectX.setDisplayMode method to set the screen resolution, you don't need to care about the change of the screen resolution. Your application will always run under the display mode you set.

If you don't know how to make it work, please send a sample to support@swfkit.com, we're glad to help you.
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 06:27 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.