Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Convert Fonts
IMidi Xtra
WebCamXtra - Computer Vision & Camera Tracking
MACROMEDIA DIRECTOR XTRAS DEVELOPER LIST
Spaceship Move by keypress
3D SpeedPort Xtra
XTinyadoDB xtra
Image Resizer v1.0
Blend Images
StarMenu Xtra
MediaMacros Xtras Mall
 

 

 

Behavior Send to Top

Added on 6/10/1999

 

Compatibilities:
behavior D6_5 Mac PC

This item has not yet been rated

Author: JohnDowdell

Simple example which will bring any clicked sprite to the top. Useful if you have a bunch of overlaid photographs, etc. Will also put the clicked sprite with this behavior atop other sprites which don"t have this behavior. Image will go back to original layer when another sprite with this behavior is clicked, or if you wipe another sprite above it, or do a full-screen transiton (these erase trails).

property spriteNum

on mouseUp me
  sendAllSprites(#SendToTop_ToggleTrails, #off)
  SendToTop_ToggleTrails me, #on
end

on SendToTop_ToggleTrails me, onOrOff
  case (onOrOff) of
    #on: set the trails of sprite spriteNum to TRUE
    #off: set the trails of sprite spriteNum to FALSE
    otherwise: put "Wadda you, a wise guy or sumpin"?"
  end case
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