Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-12-2003, 05:41 PM
Junior Member
 
Join Date: Jan 2003
Posts: 12
Default window.modifyStyle documentation

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.
Reply With Quote
  #2 (permalink)  
Old 08-13-2003, 07:21 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:window.modifyStyle documentation

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.
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:06 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.