home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global toolWindow
- set h1 to the stageLeft + 20
- set h2 to the stageLeft + 20 + 448
- set v1 to the stageTop + 20
- set v2 to the stageTop + 20 + 356
- if objectp(toolWindow) then
- set keyRect to rect(h1, v1, h2, v2)
- set the windowType of toolWindow to 2
- set the rect of toolWindow to keyRect
- set the visible of toolWindow to 1
- moveToFront(toolWindow)
- tell toolWindow
- setPuppets(1, 20, 0)
- go("help")
- end tell
- else
- set toolWindow to window "tools"
- set the windowType of toolWindow to 2
- set the fileName of toolWindow to "tool.dir"
- set keyRect to rect(h1, v1, h2, v2)
- set the rect of toolWindow to keyRect
- set the visible of toolWindow to 1
- open(toolWindow)
- tell toolWindow
- setPuppets(1, 20, 0)
- go("help")
- end tell
- end if
- end
-