Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Graphic Drag on top
Billenium Transitions Xtra
Move and/or Zoom with ease settings
Director 8 Workshop
Dynamic Pie Charts
Amplitude Xtra Review
Director Crash on opening a cursor - Valentina
Developing Projects Using Director and ASP
SpellChecker
RADAgent
MediaMacros Xtras Mall
 

 

 

Behavior Rollover Swirl-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 pSpeed,pAmount,pInterp

on getPropertyDescriptionList
  if not alphamaniacCheck(the currentSpriteNum) then exit
  
  set pList=[:]
  addProp pList,#pAmount,[format:#integer,¬
                               comment:"Amount:",¬
                               Default:180,range:[min:0,max:360]]
  
  addProp pList,#pSpeed,[format:#integer,¬
                               comment:"Frames to complete:",¬
                               Default:30]
  
  addProp pList,#pInterp,[format:#symbol,¬
                               comment:"Interpolation:",¬
                               Default:#On,range:[#Off,#On,#Paused]]
  
  return pList
end

on beginSprite me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  set pInterp=interpolation(pInterp)
  Swirl(sprite s,[degrees:pAmount])
end

on mouseEnter me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  set cmds=[animMode:#Range,startDegrees:pAmount,¬
              endDegrees:0,numFrames:pSpeed,EaseIn:4,EaseOut:4,Interpolation:pInterp]
  Swirl(sprite s,cmds)
end

on mouseLeave me
  set s=the spriteNum of me
  if not alphaManiac(s) then exit
  
  set cmds=[animMode:#Range,startDegrees:0,endDegrees:pAmount,¬
              numFrames:pSpeed,EaseIn:4,EaseOut:4]
  Swirl(sprite s,cmds)
end

on getBehaviorDescription me
  set msg= "This behavior swirls a sprite, and then, if  the mouse is over, it dramatically unswirls.  Simply set the initial swirl, and how fast you want the sprite to unfold."
  return(msg)
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