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
Easy Help
Billenium Transitions Xtra v1.1
Masking Digital Video
RGB to HSV, HSV to RGB
Font Pool
Install Shield Pro
Buddy Saver
Script Database
Live Video
DrawXtra
 

 

 

Behavior Rollover Fader-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

Property pOff,pOn,pSpeed

on getPropertyDescriptionList
   if not alphamaniacCheck(the currentSpriteNum) then exit
  
set pList=[:]
  addProp pList,#pOff,[format:#integer,comment:"Off Saturation %:",
                         Default:0, range:[min:-255,max:255]]
  addProp pList,#pOn,[format:#integer,comment:"On Saturation %:",
                       Default:0, range:[min:-255,max:255]]
  addProp pList,#pSpeed,[format:#integer,comment:"Frames:", Default:12]
  return pList
end

on beginSprite me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  hsb(sprite s,[satShift:pOff])
end

on mouseEnter me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  hsb(sprite s,[animMode:#Range,numFrames:pSpeed, startSat:pOff, endSat:pOn])
end

on mouseLeave me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  hsb(sprite s,[animMode:#Range,numFrames:pSpeed, startSat:pOn, endSat:pOff])
end

 


Contact

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

Send e-mail