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
Amara Flash News Ticker
simFile Xtra
Exit Windows
Swap Language Cast Libraries
Puzzler II, Slide it!
ResolutionX Xtras
3D games online. New cosmic world of Tensoric.
Director 8 and Lingo: Inside Macromedia Series
Wait for a DirectMedia CuePoint(Name as Reference)
Bouncing Bevel Light-Alphamania
 

 

 

Behavior Quick mouseover

Added on 9/13/2002

 

Compatibilities:
D7 D8 D8_5 Shockwave

Rating:

Author: psychicparrot (website)

Need a mouseover fast? Only got one button graphic with no rollovers? Try this ... apply the following behaviour to a sprite that has a CENTRED regpoint. TaDa! Quick mouseover!

property storew,storeh,spritenum

on beginsprite
  
  storew=sprite(spritenum).width
  storeh=sprite(spritenum).height
  
end

on mousewithin
  
  if NOT (the mousedown) then
    
    sprite(spritenum).width=storew*1.2
    sprite(spritenum).height=storeh*1.2
    
  end if
  
end

on mouseleave
  
  if sprite(spritenum).width<>storew then
    sprite(spritenum).width=storew
    sprite(spritenum).height=storeh
  end if
  
end

on mousedown
  
  sprite(spritenum).width=storew*0.9
  sprite(spritenum).height=storeh*0.9
  
end

 


Contact

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

Send e-mail