home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me, Arg, Arg2
- global DlgPath, Language, myMode, DlgRec, myClicked, HDDir
- set Locs to [point(126, 86), point(243, 86), point(360, 86), point(477, 86), point(126, 173), point(243, 173), point(360, 173), point(477, 173), point(126, 260), point(243, 260), point(360, 260), point(477, 260)]
- if not voidp(Arg) then
- set Clk to Arg
- set M to Arg2
- else
- set Clk to the clickOn
- end if
- set Cod to getAt(DlgPath, ((Clk - 24) * 2) - 1)
- set Cod to GetValue(Cod)
- set myClicked to GetCode(Cod)
- puppetSprite(23, 1)
- set L to getAt(Locs, Clk - 24)
- set the locH of sprite 23 to getAt(L, 1) - 5
- set the locV of sprite 23 to getAt(L, 2) - 5
- updateStage()
- set the visible of sprite 23 to 1
- set the visible of sprite 24 to 0
- set the text of field "ComicTXT" to FindLine(myClicked & Modechar(M))
- set the textSize of field "ComicTxt" to 14
- repeat while the lineCount of member "ComicTxt" > 3
- set the textSize of field "ComicTxt" to the textSize of field "ComicTxt" - 1
- end repeat
- set the visible of sprite 24 to 1
- if the visible of window "Record" then
- do("tell window " & QUOTE & "record" & QUOTE & " to put " & QUOTE & "Rec" & string(Clk - 24) & QUOTE && "into field " & QUOTE & "File" & QUOTE)
- end if
- if myMode <> "PlayBack" then
- doSound(GetCode(Cod & Language))
- else
- if getAt(DlgRec, Clk - 24) then
- if the machineType = 256 then
- sound playFile 1, HDDir & "Rec" & string(Clk - 24) & ".WAV"
- else
- sound playFile 1, HDDir & "Rec" & string(Clk - 24) & ".AIFF"
- end if
- end if
- end if
- end
-