Hier sind:
Inhalt exitframe first second leave testcondition
Inhalt von Modell KombiFrame vom. 28.03.98
Übersicht
-- This is a FrameScript that loops on a frame until some condition it tests returns TRUE. It provides a handler that is called only the first time the playhead gets here. Another handler is called the second time and then with every loop. depending on what is in the First and TestCondition handlers it can be used to stay on a frame for a certain time, until some action has occured or you could create a bag of puppets and objects with it, entertain them while we are on this frame and demolish them as we leave.
property myInitial
on exitFrame
on First me
on Second me
on leave me
on testcondition me
Inhalt top Callers
on exitFrame
set me=script (the frameScript)
if voidP(myInitial) then
First me
else
Second me
end if
end
Inhalt top Callers
on First me
set myInitial=TRUE
-- Do whatever init stuff is needed
end
Inhalt top Callers
on Second me
if not testcondition() then
go the frame
else
leave me
end if
end
Inhalt top Callers
on leave me
set myLpVars = value (VOID)
-- Do whatever de-init stuff is needed
end
Inhalt top Callers
on testcondition me
set rslt = FALSE
-- do something real smart here
-- to test if we still want to stay here
return rslt
end
-- /IHV
HTML created by dp tiny script documenting xtra v0.2 28.03.98 pageID=KombiFrame