Behavior that cleans up digital video and calls FixPalette for the mac
From Cole Tierney"s Code Corner
http://homepages.together.net/%7Etierney/cole/code/
-- Drop this onto a digital video sprite and palette will be used
-- Image trails will be erased. -- CBT; 5/26/98 --
on getBehaviorDescription
return "Makes quicktime use the palette and cleans up trails when digital video sprite ends."
end
on beginSprite me
if the machineType <> 256 then
openxlib the pathName & "FixPalette Xobject"
set fxpal = FixPalette( mNew, the stageLeft, the stageTop, the stageRight, the stageTop )
if objectP( fxpal ) then
fxpal( mPatchIt )
fxpal( mDispose )
end if
closeXLib the pathName & "FixPalette Xobject"
end if
end
on endSprite me
set the visible of sprite the spriteNum of me = FALSE
updatestage
set the visible of sprite the spriteNum of me = TRUE
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA