closing and opening MIAWS

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: closing and opening MIAWS

    You just want to toggle the window??
    > global newWindow
    > on mouseUp me
    if getpos(the windowlist, window "command") then -- added code
    forget window "command"
    else -- your open code
    > 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 if
    > 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139