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
Shockwave Stand Alone Installer
Dither Black and White Image - Imaging Lingo
Rotate-Alphamania
Screen Saver Wizard
Useful list functions
How do I check if a user has the needed fonts on their machine?
Macromedia Director 7 Lingo training CD
Hangman
cXtraWindowsConf
Dynamic Pie Charts
 

 

 

Behavior Play and cleanup DV Sprites

Added on 2/15/2000

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC

This item has not yet been rated

Author: Macromedia (website)

From Technote #12122 at Macromedia.com

-- Assign to a Director 6 - 7 digital video sprite.
-- Play digital video, clean up & then continue.
  
property myDVSpriteNum, myDVLength

on beginSprite me
  -- Initialization:
  set myDVSpriteNum = the spriteNum of me
  set myDVMember = the member of sprite myDVSpriteNum
  set the visible of sprite myDVSpriteNum = TRUE
  set myDVLength = the duration of member myDVMember
end

on exitFrame me
  -- Hold on current frame & play digital video until end:
  case (TRUE) of
    (the movieTime of sprite myDVSpriteNum < myDVLength) :
     go to the frame
  otherwise
    go to the frame + 1
   end case
end

on endSprite me
  -- Clean up direct to stage digital video sprite:
  set the visible of sprite myDVSpriteNum = FALSE
  set the visible of sprite myDVSpriteNum = TRUE
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail