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
Drag&Drop Xtra
Director in a Nutshell
Dir Player
Expire date
TAGGuard
Sneakers
Posterize Effect - Imaging Lingo
Increase/ Decrease FrameRate of a Flash Sprite
robotduck.com
simDirectShow Xtra
 

 

 

Behavior Set Sprite Full Screen

Added on 7/29/2003

 

Compatibilities:
D9 PC

Rating:

Author: tcoursey

One of my first Behaviors. (Its really a script) not customizable or very friendly but works pretty good. Setup the behavior script and then place on your sprites that you want to zoom full screen.

property spriteNum
property mySprite
property cloch
property clocv
property cwidth
property cheight
property cursor

on beginSprite me
  mySprite = sprite (me.spriteNum)
  mySprite.cursor = 303
  cloch = mySprite.loch
  clocv = mySprite.locv
  cwidth = mySprite.width
  cheight = mySprite.height
end beginSprite

on mouseup
  
  if mySprite.loch = cloch then
    mySprite.cursor = 302
    mySprite.loch = 200
    mySprite.locv = 200
    mySprite.width = 400
    mySprite.height = 400
  else
    mySprite.cursor = 303
    mySprite.loch = cloch
    mySprite.locv = clocv
    mySprite.width = cwidth
    mySprite.height = cheight
  end if
  
end

 


Contact

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

Send e-mail