Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Universal Movie Pause Button
M-Trail v1
Gallery navigator
Pendulum Rotate-Alphamania
Acrobat ActiveX Control
Check for DirectShow Installation
Buddy API
Macromedia Director 7: Creating Powerful Multimedia
Import from Access - Valentina
What is the difference between Director and Flash?
MediaMacros Xtras Mall
 

 

 

Behavior SM scroll control

Added on 4/15/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: BrentMoseley

Part 2/3 of the Scrolling menu set. You must use this in conjunction with the "SPRITE SCROLL" behavior. Attach this behavior to one or more sprites to serve as a button to control the movement of the scrolling sprites Actions are called on mouseenter and moueleave. You can change them to something else, if you wish.

Download PC Source    Download Mac Source
--Scroll Control part 2/3 of the Scroll Menu set.
--Created by Brent Moseley April 2000
--brent099@xoommail.com


property enteraccel
property exitaccel

property entermax
property exitmax


on mouseenter me
  sendallsprites(#setmoveinc , enteraccel , entermax)
end

on mouseleave me
  sendallsprites(#setmoveinc , exitaccel , exitmax)
end



on getPropertyDescriptionList
  set description = [:]
  addProp description, #enteraccel, [#default: .5, #format:#float, ¬
#comment:"Acceleration on mouseenter", #range: [#min:-2, #max:2]]
  
  addProp description, #exitaccel, [#default: .5, #format:#float, ¬
#comment:"Deceleration on mouseexit", #range: [#min:-2, #max:2]]
  
  addProp description, #entermax, [#default: 3, #format:#integer, ¬
#comment:"Max speed on mouseenter", #range: [#min:-10, #max:10]]
  
  addProp description, #exitmax, [#default: 3, #format:#integer, ¬
#comment:"Max speed on mouseexit", #range: [#min:-10, #max:10]]
  
  return description
end


on getBehaviorDescription
  return "Use in conjunction with the "SPRITE SCROLL" behavior." & RETURN & RETURN & ¬
"Attach this behavior to one or more sprites to serve as a button to control the movement of the scrolling sprites" ¬
& RETURN & RETURN & "Actions are called on mouseenter and moueleave.  You can change them to something else, if you wish."
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