home *** CD-ROM | disk | FTP | other *** search
- on prepareMovie
- repeat with i in [2, 3, 5]
- set the cursor of sprite i to [50, 51]
- end repeat
- end
-
- on openWindow
- repeat with i = 2 to 5
- set the visible of sprite i to 0
- end repeat
- end
-
- on EndMovie
- end
-
- on SetTxt Cod, NoResize
- if voidp(NoResize) then
- set NoResize to 0
- end if
- tell the stage
- readFile(Cod)
- end tell
- set the text of field 1 to the result
- set the boxType of member 1 to #adjust
- if the height of member 1 > 349 then
- set the boxType of member 1 to #fixed
- repeat with i = 2 to 5
- set the visible of sprite i to 1
- end repeat
- else
- repeat with i = 2 to 5
- set the visible of sprite i to 0
- end repeat
- set TB to the rect of window "TextBox"
- set myRect to inflate(TB, 0, integer((the height of member 1 - 353) / 2) - 20)
- set myRectY1 to getAt(myRect, 2)
- set myRectY2 to getAt(myRect, 4)
- if not NoResize then
- repeat while union(TB, myRect) <> myRect
- set TB to rect(getAt(TB, 1), min(getAt(TB, 2) + 5, myRectY1), getAt(TB, 3), max(getAt(TB, 4) - 5, myRectY2))
- set the rect of window "TextBox" to TB
- updateStage()
- end repeat
- end if
- end if
- end
-