home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boot Disc 5
/
boot-disc-1997-01.iso
/
media
/
utility.cst
/
00025_Script_VideoClass
< prev
next >
Wrap
Text File
|
1996-11-05
|
2KB
|
67 lines
property spritenum,ancestor
global videosprite,video
on new me
set spritenum=videosprite
set ancestor=new(script "GenericClass")
clearactorlist me,"VideoClass",#spritenum
add the actorlist,me
set video=me
return me
end
on stepframe me
if the membernum of sprite spritenum>0 then
if the movietime of sprite spritenum>=trackstoptime(sprite spritenum,1) then
dispose me
end if
else
clearactorlist me,"VideoClass",#spritenum
end if
end
on dispose me
global imagesprite,glevel,dbase,videosprite,banner
dispose banner
clearactorlist me,"VideoClass",#spritenum
-- puppetsound 2,"dleep"
puppetsprite imagesprite,false
puppetsprite videosprite,false
if the membernum of sprite videosprite>0 then
set the movierate of sprite videosprite to false
set the visible of sprite imagesprite to false
set the visible of sprite videosprite to false
end if
go to "main"
updateStage
puppetsound 2,"dleep"
set curtext=the category of the activerec of dbase
set the alignment of member "display" to "center"
set files=cvtlisttotext(dbase,getprograms(dbase,false))
put files
set pos=offset("(",files)
repeat while pos>0
set endpos=offset(")",files)
delete char pos to endpos of files
set pos=offset("(",files)
end repeat
set the visible of sprite castsprite("display") to false
set the fontsize of field "display" to 21
set the lineheight of field "display" to 30
set the text of member "display" to ¼
files
set the alignment of member "display" to "center"
set the visible of sprite castsprite("display") to true
global scrollpos
set the scrolltop of member "display" to scrollpos
set the visible of sprite castsprite("prevbtn") to true
set the visible of sprite castsprite("nextbtn") to true
-- set the text of member "title" to curtext
put curtext into field "title"
set the alignment of member "display" to "center"
set glevel=2
-- puppetsound 1,"adam"
return 0
end