Ask a Question related to Macromedia Director Lingo, Design and Development.
-
aoninja webforumsuser@macromedia.com #1
closing and opening MIAWS
im new to director and im having problems with this project im working on. i have a main stage, with 3 miaw's coming off it. all the controls to the miaw's are on the main stage. ive done everything except figure out how to have the same hotspots on the main stage that open the miaw's, close the miaw's when desired. this is going to be a game, so when u close the miaw's i want the same data to be there when I had it opened up before.
heres an example of one of my hotspots. my main stage is called "main"
"command" is the miaw. any help would be great. :D
global newWindow
on mouseUp me
set newWindow to window "command"
set newWindow.rect to rect (the stageleft, (the stageTop - 350), the stageRight,the stagetop)
set newWindow.filename to "command"
set newWindow.titleVisible to FALSE
open newWindow
puppetsound 1, "beep"
window("command").moveToBack()
end
aoninja webforumsuser@macromedia.com Guest
-
Not Closing or opening Java or CSS...
http://www.zerofivezero.net/the_project102.html - Page in need of help I'm using a JavaScript image/text swap in the navigation and with the main... -
Opening & Closing Acrobat reader - An easier way?
at my workplace, we are developing a new website that will have all financial report requests published to the screen as a pdf. When these reports... -
Closing MIAWs within a projector
I've been playing with opening other Director movies within a single CD-ROM piece. I know the code for opening the windows, but can anyone help me... -
Which is better, opening and closing, or a massive file opening and a massive closing?
On Mon, 16 Feb 2004 11:16:54 -0600, wustl.edu (Shiping Wang) wrote: >Hi, >How can I rearrange an array in a specific order based on the order of... -
Opening or Closing a directory window on Mac?
We're trying to use Buddy API to either open or close a folder (actually, it's the root level directory window of the CD) on a Mac. It's easy to do... -
JB #2
Re: closing and opening MIAWS
You just want to toggle the window??
if getpos(the windowlist, window "command") then -- added code> global newWindow
> on mouseUp me
forget window "command"
else -- your open codeend if> set newWindow to window "command"
> set newWindow.rect to rect (the stageleft, (the stageTop - 350), the
> stageRight,the stagetop)
> set newWindow.filename to "command"
> set newWindow.titleVisible to FALSE
> open newWindow
> puppetsound 1, "beep"
> window("command").moveToBack()> end
Not sure what
i want the same data to be there when I had it opened up before.
is about
You might store the rect of a miaw just before closing so you can make
it appear in same spot when reopened.
JB Guest
-
aoninja webforumsuser@macromedia.com #3
Re: closing and opening MIAWS
im not sure what you mean by toggle, but ok..theres going to be a main window with a map and other things to move your troops on, cause its gonna be a war game. so sometimes people want to close the map window or the other windows that display infomation when playing the game. so i dunno. i tried that code, but now when i click the command hotspot, nothing happens...?..i dunno. and the other question of same data as before, like if your in the middle of a game and close your battle window, i want it so when i click back to the window the same thing will be there as before, like that certain turn or whatever..i dunno if i have to do that or not, maybe it automatically goes back to where the game left off.?...ok thanks.
aoninja webforumsuser@macromedia.com Guest



Reply With Quote

