home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Greatest Childrens Stories Ever Told
/
Greatest_Stories.iso
/
movies
/
animat
/
3pigs.dir
/
00056_Script_56
< prev
next >
Wrap
Text File
|
1994-10-19
|
3KB
|
134 lines
on keepname
global name
set name=the text of cast "firstname" && the text of cast "lastname"
end keepname
on setpuppets state
puppetsprite 23,state
puppetsprite 21,state
if not the soundenabled then
set the castnum of sprite 23 to the number of cast "nomusica"
end if
if the text of cast d12="Text Off" then
set the castnum of sprite 21 to ¼
the number of cast "Text Off"
puppetsprite 2, true
set the locV of sprite 2 to -500
end if
updatestage
end setpuppets
on idle
global secs
set the timeoutLength to 3599
if the timer=the timeoutlength then
set secs=0
set the timer=0
else
put the timer/60 into secs
end if
on ansques i
global qa,done
set qa=i
set done=i
end ansques
on clearvariables all
global returnframe, clicked,goforward
if all then
put 0 into returnframe
put 0 into clicked
put 0 into goforward
else
put 0 into clicked
put 1 into goforward
end if
end clearvariables
on messageWindow
global loadWindow,PopWindow
set loadWindow=PopWindow(mNew)
if loadWindow=0 then
alert"Error: Window will not load"
exit
end if
end messageWindow
on setWindowObj windowPart,left,top,width,height
windowPart(mMove,left,top)
windowpart(mSize,width,height)
windowPart(mShow)
end setWindowObj
on GetOut
global questions
if questions=1 then
go movie "score"
else
go movie "NRMENU"
end if
end GetOut
factory PopWindow
method mNew
global Windowhandler,windowNum
set theWindow=Window(mNew,#altDialog,"")
theWindow(mSetHandler,WindowHandler(mNew,theWindow))
me(mPut,1,theWindow)
setWindowObj(theWindow,185,170,310,100)
set part=Panel(mNew,#castBitmap,"",#Text,theWindow)
part(mSetValue,d48)
setWindowObj(part,20,10,250,15)
set part=Panel(mNew,#pushButton,"Yes",#Yes,theWindow)
setWindowObj(part,20,50,115,20)
set part=Panel(mNew,#pushButton,"No",#No,theWindow)
setWindowObj(part,170,50,115,20)
theWindow(mShow)
factory WindowHandler
method mNew Window
instance myWindow, state, WindowID
set myWindow = Window
set WindowID = 1
method mMouseUP part, h, v
if part <>0 then me(mPerform, part)
method No
myWindow(mDispose)
method Yes
myWindow(mDispose)
GetOut()
method Text
set panelObject=myWindow(mGetPanel,#Text)
--me(mSetCast,d38)
panelObject(mSetValue,d48)
panelObject(mUpdate)
method Nothing
exit
method mMouseDown part, h,v
return false
-- Update message is sent when the window is in need of repair.
method mUpdate