From: Opera Rat on
Does anyone know how I can get a third (or fourth) MIAW of the same movie to
open slightly above and to the right of the second as the second is slightly
above and to the right of the first. Here is the code that opens the first
from the movie (glossary) playing on the stage which tells it where to open the
first time (this script is fine. I'm just including it so you can see more of
what's I've done).

on hyperlinkClicked me, data

aWindow = window().new("glossary")
aWindow.filename = "glossary"
tRect = aWindow.sourceRect
aWindow.rect = aWindow.sourceRect.offset(100,465)
aWindow.movie.sprite(3).member = aWindow.movie.member(data)
aWindow.open()
aWindow.moveToFront()
end

Below is the script that has the problem. When this script runs, the first
window is already open because this script is within the MIAW. It correctly
places the second window in the proper place, but then the third window opens
on top of the second instead of above and to the side.


on hyperlinkClicked me, data
tName = "glossary2" && string(count(_player.windowList) + 1)
aWindow = window().new(tName)
aWindow.filename = "glossary"
tRect = aWindow.sourceRect
--get rect of original glossary window that was opened from the main movie
gWindow = window("glossary")
gRect = gWindow.rect.offset(50, -50)
tRect = gRect
aWindow.rect = tRect
aWindow.movie.sprite(3).member = aWindow.movie.member(data)
aWindow.open()
end



From: Opera Rat on
Thanks. I just solved the problem using variables for the X and Y position and
add or subtracting to them as the hyperlink is clicked and the same when it is
closed. It works great!! I'm getting good at this.

From: Mark A. Boyd on
On Thu, 26 Oct 2006 19:33:11 GMT, Opera Rat posted in
macromedia.director.lingo:

> Thanks. I just solved the problem using variables for the X and Y
> position and add or subtracting to them as the hyperlink is clicked and
> the same when it is closed. It works great!! I'm getting good at this.

:-)

Gotta love that feelin'!

Hence my sig file below. It's as much for me as anyone else.


--
Mark A. Boyd
Keep-On-Learnin' :)