Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Res Mode
Fireworks Xtra
Lingo Web Logs / Journals
simComportIOCP Xtra
DM Stars Field Effect
Starfield Behavior
Sound Slidebar
Vector Shape - Create Ellipse
Cache Loaded - Valentina
Sound slider
MediaMacros Xtras Mall
 

 

 

Behavior Animate Text Shadow

Added on 1/4/2001

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: HasanKazmi (website)

On mousewith the sprite animates the text by increasing and decreasing shadow. A very simple behaviour..

--786
--Behaviour: Animate Text Shadow
--Hasan Yasar Kazmi
--Hamdard University Islamabad Pakistan
-- On mousewith the sprite animates the text by increasing and decreasing shadow

property spritenum,maxInc,Increment,Initial,RangeMax

on getpropertydescriptionlist me
  set MyShadow =  [:]
  addprop MyShadow,#maxInc,[#comment:"Max Increment in Shadow",#default:1,#format:#integer,#range:[min:1,max:10]]
  addprop MyShadow,#Increment,[#comment:"Step Increment in Shadow",#default:1,#format:#integer,#range:[min:1,max:10]]
  addprop MyShadow,#Initial,[#comment:"Initial Shadow",#default:1,#format:#integer,#range:[min:0,max:10]]
  return MyShadow
end

on beginsprite me
  if Increment > maxInc then
    alert("Increment value cant be greater than the max value")
    exit
  end if
  spritenum = the spritenum of me
  sprite(spritenum).member.dropShadow = Initial
  set RangeMax = maxInc+(maxInc mod Increment)
end

on mousewithin me
  sprite(spritenum).member.dropShadow = sprite(spritenum).member.dropShadow +Increment
  if sprite(spritenum).member.dropShadow = RangeMax  then
    sprite(spritenum).member.dropShadow =0
  end if
  updatestage  
end

on mouseleave me  
  sprite(spritenum).member.dropShadow = Initial  
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail