Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-08-2007, 09:33 PM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default How to make a button that hides and shows the window?

How?
Reply With Quote
  #2 (permalink)  
Old 12-09-2007, 09:49 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to make a button that hides and shows the window?

1) hide
getMainWnd().hide();

2) show
getMainWnd().show();
Reply With Quote
  #3 (permalink)  
Old 12-10-2007, 01:29 AM
Senior Member
 
Join Date: Nov 2007
Posts: 128
Default Re: How to make a button that hides and shows the window?

Is there a way to detect if it is hidden or showing before you give it a command?
Reply With Quote
  #4 (permalink)  
Old 12-10-2007, 06:16 PM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re: How to make a button that hides and shows the window?

Code:
var wnd = getMainWnd();

// shows the state of the window
trace(wnd.windowState);


// returns true if window is show, false if window is hidden)
trace(wnd.visible);
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:42 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.