|
|||
|
Hello,
I am trying to use the modifyStyle method of the Window object to disable or remove the maximize button from the application window if the user's screen resolution is 800x600 or less. I have written code in the initialize script that checks the screen resolution. That works fine. However, I cannot seem to modify the application window at all using the following code: var wnd = getMainWnd(); wnd.modifyStyle(0x00010000); Any help in this matter would be greatly appreciated. Thank you. |
|
|||
|
You cannot call the method in the "Initialize" script. The "Initialize" script is called just after the main window has been created. SWFKit will set the appearance of the main window after the execution of the "Initialize" script. Your work will be overrided.
You can create a new script and call it in frame 1 of your main movie. The same code in your new script will work well. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|