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
Rotate a Flash Sprite
Image Flood Fill (Using getPixel and setPixel)
Generic behavior to copy a file
OpenAtLaunch
Sortem
Flashation Flash Menu Builder
FileXtra
HTML Xtra
PsychicParrot.com
Play/Pause/Rewind Video Sprite
 

 

 

Behavior Fake Drag Bar - Stage

Added on 6/1/2001

 

Compatibilities:
behavior D7 D8 D8_5 Mac PC

This item has not yet been rated

Author: MediaMacros (website)

Moves the stage using a sprite instead of the actual window bar.

--Copyright 2001 MediaMacros, Inc.

property spritenum, state, lastM

on mouseDown me
  lastM = the mouseLoc
  state = 1
end

on beginSprite me
  state = 0
end

on mouseUp me
  state = 0
end

on mouseUpOutside me
  state = 0
end

on exitFrame me
  if state = 1 then
    d =   the mouseLoc -lastM
    (the stage).rect = (the stage).rect.offset(d[1], d[2])    
  end if
end

on getBehaviorDescription me
  return "Drop this on a sprite to make it move the stage."
end

 


Contact

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

Send e-mail