Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
ExpressMail Xtra for Authorware and Director
RoboDemo Review
Asteroids Game
myDialog
ADOXtra Lite
Font Style Change
Volume Control Behavior
Pie Chart - Vector Shapes
E-mailExec 3 Pro
Wise Install Maker
 

 

 

Behavior Video Cleanup

Added on 7/1/1999

 

Compatibilities:
behavior D6_5 Mac

This item has not yet been rated

Author: ColeTierney

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

Send e-mail