Professional Web Applications Themes

How can MIAW ID self - Macromedia Director Lingo

You can use the activeWindow but that won't necessarily allow you to ID a window that's running code in the background. I solved this once but don't remember what I did. If I remember, I'll post it. -- Craig Wollman Word of Mouth Productions phone 212 724 8302 fax 212 724 8151 [url]www.wordofmouthpros.com[/url] "JB" <lingoguysbcglobal.net> wrote in message news:lingoguy-712421.14384707072003forums.macromedia.com... > Is there a clean way for a MIAW to identify which window it is? > > I've used the frontwindow function, and have parced the movielist for > the movieName. Niether is a sure thing....

  1. #1

    Default Re: How can MIAW ID self

    You can use the activeWindow but that won't necessarily allow you to ID a
    window that's running code in the background. I solved this once but don't
    remember what I did. If I remember, I'll post it.



    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]
    "JB" <lingoguysbcglobal.net> wrote in message
    news:lingoguy-712421.14384707072003forums.macromedia.com...
    > Is there a clean way for a MIAW to identify which window it is?
    >
    > I've used the frontwindow function, and have parced the movielist for
    > the movieName. Niether is a sure thing.

    Word of Mouth Productions Guest

  2. #2

    Default Re: How can MIAW ID self

    On 8/7/03 11:15 AM, in article bed61h$efs$1forums.macromedia.com, "Word of
    Mouth Productions" <lingoboywordofmo.com> wrote:
    > You can use the activeWindow but that won't necessarily allow you to ID a
    > window that's running code in the background. I solved this once but don't
    > remember what I did. If I remember, I'll post it.
    Isn't the active window the window that 'owns' the bit of code currently
    running? (I could be wrong - I've just assumed that the 'active' window is
    the window running code, not necessarily the front most window)

    Luke

    LukeWig Guest

  3. #3

    Default Re: How can MIAW ID self

    How about a combination of activateWindow, and windowPresent?

    Don

    "JB" <lingoguysbcglobal.net> wrote in message
    news:lingoguy-712421.14384707072003forums.macromedia.com...
    > Is there a clean way for a MIAW to identify which window it is?
    >
    > I've used the frontwindow function, and have parced the movielist for
    > the movieName. Niether is a sure thing.

    DC Lawson Guest

  4. #4

    Default Re: How can MIAW ID self

    You're probably right. I guess that's why I didn't quite remember. Now
    that you say it, I believe the activeWindow is the answer.


    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]
    "LukeWig" <lukewighotmail.com> wrote in message
    news:BB3060E8.308A%lukewighotmail.com...
    > On 8/7/03 11:15 AM, in article bed61h$efs$1forums.macromedia.com, "Word
    of
    > Mouth Productions" <lingoboywordofmo.com> wrote:
    >
    > > You can use the activeWindow but that won't necessarily allow you to ID
    a
    > > window that's running code in the background. I solved this once but
    don't
    > > remember what I did. If I remember, I'll post it.
    >
    > Isn't the active window the window that 'owns' the bit of code currently
    > running? (I could be wrong - I've just assumed that the 'active' window is
    > the window running code, not necessarily the front most window)
    >
    > Luke
    >

    Word of Mouth Productions Guest

  5. #5

    Default Re: How can MIAW ID self

    what about keeping the windowname in a list of your own when you create the
    MIAW-window, and/or "tell" the new window what it is called and let it store
    it somewhere for its own purpose in a global variable or some property
    ("mywindowname")?


    "JB" <lingoguysbcglobal.net> schrieb im Newsbeitrag
    news:lingoguy-712421.14384707072003forums.macromedia.com...
    > Is there a clean way for a MIAW to identify which window it is?
    >
    > I've used the frontwindow function, and have parced the movielist for
    > the movieName. Niether is a sure thing.

    ESGE grafik Guest

  6. #6

    Default Re: How can MIAW ID self

    That sort of deflates the benefit of OOP. The goal is to allow the program
    to think for itself. Just like the me parameter in behaviors or parent
    scripts. It allows the behavior to have a mind of it's own.

    If in fact the activeWindow refers to the window in which that property is
    referred then that particular window "knows" which one it is and no other
    house keeping need be done.



    --
    Craig Wollman
    Word of Mouth Productions
    phone 212 724 8302
    fax 212 724 8151
    [url]www.wordofmouthpros.com[/url]
    "ESGE grafik" <grafike-s-g-e.de> wrote in message
    news:beeebt$fq3$1forums.macromedia.com...
    > what about keeping the windowname in a list of your own when you create
    the
    > MIAW-window, and/or "tell" the new window what it is called and let it
    store
    > it somewhere for its own purpose in a global variable or some property
    > ("mywindowname")?
    >
    >
    > "JB" <lingoguysbcglobal.net> schrieb im Newsbeitrag
    > news:lingoguy-712421.14384707072003forums.macromedia.com...
    > > Is there a clean way for a MIAW to identify which window it is?
    > >
    > > I've used the frontwindow function, and have parced the movielist for
    > > the movieName. Niether is a sure thing.
    >
    >

    Word of Mouth Productions Guest

  7. #7

    Default Re: How can MIAW ID self

    agreed!
    I just wondered whether it is possible at all
    and didn't test "activeWindow" in this respect.

    cheers

    Peter (an OOProgrammer, too, in general)


    "Word of Mouth Productions" <lingoboywordofmo.com> schrieb im Newsbeitrag
    news:beenav$5q7$1forums.macromedia.com...
    > That sort of deflates the benefit of OOP. The goal is to allow the
    program
    > to think for itself. Just like the me parameter in behaviors or parent
    > scripts. It allows the behavior to have a mind of it's own.
    >
    > If in fact the activeWindow refers to the window in which that property is
    > referred then that particular window "knows" which one it is and no other
    > house keeping need be done.
    >
    >
    >
    > --
    > Craig Wollman
    > Word of Mouth Productions
    > phone 212 724 8302
    > fax 212 724 8151
    > [url]www.wordofmouthpros.com[/url]
    > "ESGE grafik" <grafike-s-g-e.de> wrote in message
    > news:beeebt$fq3$1forums.macromedia.com...
    > > what about keeping the windowname in a list of your own when you create
    > the
    > > MIAW-window, and/or "tell" the new window what it is called and let it
    > store
    > > it somewhere for its own purpose in a global variable or some property
    > > ("mywindowname")?
    > >
    > >
    > > "JB" <lingoguysbcglobal.net> schrieb im Newsbeitrag
    > > news:lingoguy-712421.14384707072003forums.macromedia.com...
    > > > Is there a clean way for a MIAW to identify which window it is?
    > > >
    > > > I've used the frontwindow function, and have parced the movielist for
    > > > the movieName. Niether is a sure thing.
    > >
    > >
    >
    >

    ESGE grafik Guest

  8. #8

    Default the ActiveWindow works

    I set up a test with multiple windoes each reporting (the
    ActiveWindow).rect

    Changed their rects with lingo, (so they were not brought foward) and
    they each properly reported their own rect.

    Sweet...

    Thanks guys


    I made the original MIAW tool set that came on Terry Shusler's Media
    Book CD, using Director 4 beta, ActiveWindow is probably a new one tha
    hadn't get into my wetware upgrade.

    JB
    JB Guest

Similar Threads

  1. 3D and MIAW
    By Ionstream_Rider in forum Macromedia Director 3D
    Replies: 0
    Last Post: February 16th, 07:18 PM
  2. MIAW on top
    By Word of Mouth Productions in forum Macromedia Director Basics
    Replies: 2
    Last Post: May 3rd, 12:23 PM
  3. MIAW miaw
    By vij010 in forum Macromedia Director Lingo
    Replies: 8
    Last Post: December 17th, 05:54 PM
  4. MIAW, no wonder I see it everywhere...
    By Clifford Boobyer in forum Macromedia Director Lingo
    Replies: 2
    Last Post: November 10th, 02:54 PM
  5. LDM's in a miaw.
    By Stef in forum Macromedia Director Lingo
    Replies: 1
    Last Post: October 31st, 11:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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