Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Firefly CD Burning Xtra
ShapeWindow Xtra
File Save Dialog Behavior
Special Edition Using Macromedia Director 8.5
Date Time Xtra
Easy Animation
ScreenFade
WebXtra
DM Waves Effect
Closing the browser
MediaMacros Xtras Mall
 

 

 

Behavior Group of Sprite Mover

Added on 6/16/2001

 

Compatibilities:
behavior D7 D8 D8_5 Mac PC

This item has not yet been rated

Author: Dietmar

Moves the sprite where the behavior is attached and upper sprites you specify the last sprite by channel number.

property spriteNum
property first
property lastSprite

on getPropertyDescriptionList me
  set pdList = [:]
  set ls = the currentSpriteNum + 1
  addProp pdList, #lastSprite, [#format:#integer,#default:ls,#comment:"Sprite-No. to the last sprite in group"]
  return pdList
end getPropertyDescriptionList

on beginSprite me
  first = me.spriteNum
end

on mouseDown me
  beginMouseLoc = the mouseLoc
  repeat while the mouseDown
    duringMouseLoc = the mouseLoc
    if duringMouseLoc <> beginMouseLoc then
      difMouseLoc = duringMouseLoc - beginMouseLoc
      beginMouseLoc = duringMouseLoc
      repeat with i = first to lastSprite
        sprite(i).loc = sprite(i).loc + difMouseLoc
      end repeat
      updateStage
    end if
  end repeat
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