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
Change the LineSize of a Shape Cast Member
Ripple Follow Mouse on Rollover-Alphamania
Cut Behavior (Ctrl + X)
Adventure
DirectTransition
Masking Digital Video
Behavior Writer
Importing Externally Linked Flash members
Writing text to the user's drive
Determine if a Year is a Leap Year
 

 

 

Behavior Scale-Alphamania

Added on 6/10/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

Required Xtras:
Alphamania
Effector Set I for Alphamania

This item has not yet been rated

Author: MediaLab (website)

Requires Effector Set 1 Behavior Support Scripts

-- Drag to any alphamania sprite to make it scale to the size of the sprite box.

property pInterp

on getPropertyDescriptionList
  if not alphamaniacCheck(the currentSpriteNum) then exit  
  set pList=[:]
  addProp pList,#pInterp,[format:#symbol,comment:"Interpolation:", Default:#On, range:[#Off,#On,#Paused]]  
  return pList
end

on beginSprite me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  set pInterp=interpolation(pInterp)  
  scale(sprite s,[interpolation:pInterp])
end

on getBehaviorDescription me
  set msg= "Make your Alphamania member scale to the size of it"s sprite box."
  put return & return after msg
  put "Parameters:" & return & "-----------" & return  after msg
  put "*  Interpolation : On,Off,or While Paused" after msg
  put return & "-----------" & return & return  & ">>>" && amTip()  after msg
  return msg
end  

 


Contact

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

Send e-mail