I want to make sure that no matter what size monitor the
movie is play on, everything will open in its proper place. I'm
particulary concerned about these wide-screen monitors. Can anyone
tell me if this is the correct way to make sure that the MIAW opens
on any monitor and is set in relation to the stage. The stage
centers itself in the monitor and requires that the monitor be set
to 1024 X 768. (That is my first line of defense). This is the code
on exitFrame me
w = window "fugue01"
w.rect = rect(d.left + 150, d.top + 50, d.left +
w.rect.width + 150, w.rect.height + d.top + 50)
Is this the same things as d=(the deskTopRectList) ? On my
monitor, both give me the same result. I haven't had the
opportunity to test it on another monitor. I don't know why w is
global. Someone is going to demo my work tomorrow and they haven't
even tested on the laptop it will be shown on.
> global w
> on exitFrame me
> w = window "fugue01"
> d= window("stage").rect
> w.rect = rect(d.left + 150, d.top + 50, d.left +
w.rect.width + 150,
> w.rect.height + d.top + 50)
What you have written above should work.
Your last line could also be shortened to:
w.rect = w.sourceRect.offset(d.left, d.top)
Be careful placing window references into global variables,
or at least
be aware that even if you #forget the window it is still in
running until you clear the global reference. forget() simply
the reference from the windowList where it is placed