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
VSnap
Window Xtra
Enable/Disable FullScreen of DirectMedia Sprite
Real-time Interactive 3D Games: Creating 3D Games in Macromedia Director 8.5 Shockwave Studio
Create a Shortcut on desktop
Drop Shaddow Button-Alphamania
CSS Class
XtrAgent
cXtraTransitions
OggXtra
 

 

 

Behavior Mouse Up Trigger-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 pTarget,pMsg,pReverse,pToggle,pState

on getPropertyDescriptionList
  set pList=[:]
  set s= the currentSpriteNum
  addProp pList,#pTarget,[format:#integer,comment:"Trigger Sprite#:", Default:s]
  addProp pList,#pMsg,[format:#symbol,comment:"Message:", Default:#Trigger, Range:[#Trigger,#Reset]]
  addProp pList,#pReverse,[format:#boolean, comment:"Reverse:", Default:0]
  addProp pList,#pToggle,[format:#boolean, comment:"Toggled:", Default:0]
  return pList
end

on beginSprite me
  if pToggle then
    set pState=true
  else
    set pState=false
  end if
end

on mouseUp me
  if pToggle then
    set pState=not pState
    sendSprite(pTarget,#Trigger,pState)
  else
    sendSprite(pTarget,pMsg,pReverse)
  end if
end

 


Contact

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

Send e-mail