home *** CD-ROM | disk | FTP | other *** search
- on select btn
- global nm, pth, dscr, inst, rn, rpath, ipath, isvideo, tpth, xfile, xf
- repeat with i = 55 to 70
- set the visible of sprite i to 0
- end repeat
- set the visible of sprite (btn + 25) to 1
- puppetSprite(10, 1)
- puppetSprite(11, 1)
- puppetSprite(12, 1)
- puppetSprite(13, 1)
- set the locH of sprite 13 to 2000
- set isvideo to 0
- set a to the name of member the member of sprite btn
- set the text of member "description" to getAt(dscr, value(a))
- set xf to getAt(xfile, value(a))
- set tpth to "demos" & getAt(pth, value(a)) & "\"
- set ipath to getAt(inst, value(a))
- if ipath > EMPTY then
- set ipath to tpth & ipath
- set the member of sprite 10 to "inst2"
- else
- set the member of sprite 10 to "g-inst2"
- end if
- if xf > EMPTY then
- set the member of sprite 12 to "info2"
- else
- set the member of sprite 12 to "g-info2"
- end if
- set rpath to getAt(rn, value(a))
- if rpath > EMPTY then
- set rpath to tpth & rpath
- set the member of sprite 11 to "run2"
- if chars(rpath, length(rpath) - 2, length(rpath)) = "avi" then
- set isvideo to 1
- puppetSprite(4, 1)
- set the member of sprite 4 to "v" & a
- set the visible of sprite 4 to 1
- updateStage()
- else
- set the visible of sprite 4 to 0
- set isvideo to 0
- end if
- else
- set the visible of sprite 4 to 0
- set the member of sprite 11 to "g-run2"
- end if
- if value(a) < 17 then
- set the member of sprite 6 to "i" & a
- set the visible of sprite 6 to 1
- else
- set the visible of sprite 6 to 0
- end if
- updateStage()
- end
-