• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. CONTROLLING VIDEO > USING OTHER VIDEO TECHNIQUES

USING OTHER VIDEO TECHNIQUES

These video properties can also be used to make video sprites perform tricks. For instance, the following behavior uses the blend property of the sprite to cause a video sprite to fade in:

property pSpeed

on getPropertyDescriptionList me
  list = [:]
  addProp list, #pSpeed, [#comment: "Speed", #format: #integer,\
     #range: [#min: 1, #max: 20], #default: 7]
  return list
end

on beginSprite me
  sprite(me.spriteNum).member.directToStage = FALSE
  sprite(me.spriteNum).member.crop = TRUE

  sprite(me.spriteNum).blend = 0
end

on exitFrame me
  if sprite(me.spriteNum).blend < 100 then
    sprite(me.spriteNum).blend = \
        min(sprite(me.spriteNum).blend+pSpeed,100)
  end if
end


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint