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
Authoring Xtras
Cutting Puzzle Pieces
Digital Clock Puzzle
Can't change field value - Valentina
Generic behavior to check Windows Platform
DExport 1.0
Simple Sprite Mover Behavior
Macromedia Director 7 - Illustrated Complete
Timeline re-direction and navigation
Go to net page button/frame
 

 

 

Behavior Blur Rollover-Alphamania

Added on 6/10/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: MediaLab (website)

Requires Effector Set 2. These behaviors are for use with the Alphamania Xtra and its add-on effector sets

property sNum
property mouseLoc
property mode -- blur, or blur in and then out
property startBlur
property endBlur -- where the blur stops and the action begins
property blurResolution
property moveMode -- whether in up or down part of animation
property frameCount -- how much time left in this part of animation
property actionType, actionText -- what to do or where to go
property clickThresh

on getBehaviorDescription me
  return "A simple button behavior that plays a blur animation when the user clicks. The blur increases after the user clicks. This creates a fade out/blur effect."
end

on getPropertyDescriptionList me
  set list = [:]
  addProp list, #startBlur, [#comment: "Normal Blur:", #format: #integer, #default: 0, #range: [#max:10, min:0]]
  addProp list, #endBlur, [#comment: "Rollover Blur:", #format: #integer, #default: 5, #range: [#max: 10, #min:0]]
  addProp list, #blurResolution, [#comment: "Blur Resolution:", #format: #integer, #default: 1, #range: [#max: 5, #min:1]]
  addProp list, #clickThresh, [#comment: "Click Threshold:", #format: #integer, #default: 1, #range: [#max: 255, #min:0]]
  return list
end

on beginSprite me
  set frameCount = 10
  set moveMode = VOID
  set sNum = the spriteNum of me
  set the clickthreshold of sprite sNum = clickThresh
  blur(sprite sNum, [animMode:#static, blurAmount:startBlur, blurResolution:blurResolution])
end

on mouseEnter me
  set newLoc = point(the mouseH, the mouseV)
  if newLoc <> mouseLoc then
    blur(sprite sNum, [animMode:#range, numFrames:frameCount, endBlur:endBlur])
    set mouseLoc = point(the mouseH, the mouseV)
  end if
end

on mouseLeave me
  set newLoc = point(the mouseH, the mouseV)
  if newLoc <> mouseLoc then
    blur(sprite sNum, [animMode:#range, numFrames:frameCount, endBlur:startBlur])
    set mouseLoc = point(the mouseH, the mouseV)
  end if
end

 


Contact

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

Send e-mail