|
|||
|
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 |
|
|||
|
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);
}
}
|
|
|||
|
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
|
|
|||
|
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. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|