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
Cache Loaded - Valentina
Popup Xtra
Print a file with associated program
Faux Typing
Bitbull
Billenium Transitions Xtra v1.3
Get CD ROM Drive letter
Set actionsEnabled Property of a Flash Member
Snow Falling
DOMAJ Site and Forum
 

 

 

Behavior Grabbing the Stage (D7)

Added on 6/30/1999

 

Compatibilities:
D7 D8 Mac PC Script

This item has not yet been rated

Author: RogerJones

save the stage to a new member - grabPicture save the stage to member 7 of castlib 1 - grabpicture 0, member 7,1 save a subrect of the stage to a new member - grabpicture rect(100,100,200,200) save a subrect of the stage to member 10 of castlib 1 - grabpicture rect(100,100,200,200), member 10,1

on grabPicture croprect, targetmember

if voidp(targetmember) then
    targetmember = new(#bitmap)
  else
    if not ( member(targetmember).type = #bitmap) then
      beep
      return
    end if
  end if

  member(targetmember).picture = the stage.picture
  if ilk(croprect, #rect) then  crop(member targetmember, croprect)
end

 


Contact

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

Send e-mail