View Full Version : Ooops...

11 November 2005, 01:03 AM
I am wondering if there is a way to close windows like the HotkeyFlash by reclicking a button in a floating window.

Here is an example of what I am trying:
macroScript OpenCloseTest category:"Kevin's Scripts"
rollout myRollout "Testing" width:160 height:93
button btn1 "Hotkey Menu" pos:[16,8] width:130 height:41

on btn1 pressed do
( "Help" "HotkeyFlash"
myFloater=newrolloutfloater "My Controls" 178 86
addrollout myRollout myFloater

I am familiar with this example, but was not sure how to implement it into my version of the script:MatEditor.Open() --Opens the Material Editor
<bool>MatEditor.isOpen() --Returns true if the Material Editor is open
MatEditor.Close() --Closes the Material Editor

My question is, is it possible to do something like this with the thing? Or am I out of luck? I would love some help on this and have plenty of answers for questions that you might have.

Thanks in advance,

11 November 2005, 11:26 AM
Hi Kevin,

Yes and no! What you're doing is linking your button to an existing script. If you load the flash file in your own window, you can close the window by calling destroydialog.
Open the macroscript Hotkeyflash and modify the existing code to do what you want.



CGTalk Moderation
11 November 2005, 11:26 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.