Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
zOpen
Set Registration Point of Sprite
File Open Dialog Behavior
Power Blender
Volume of Sprite
Color Picker
Director To Go
Set DirectToStage Property of a Flash Member
lingo to php with browser on stage
How do I check if a user has the needed fonts on their machine?
MediaMacros Xtras Mall
 

 

 

Behavior CloneIt

Added on 1/30/2001

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: KurtKoenig (website)

Allows to partly, or entirely duplicate a bitmapped image with different sizes of brushes.

property spritenum, pSourceImage, pTargetImage, pSourceBrushRect, pTargetBrushRect

on getpropertydescriptionlist
  pdllist = [:]
  
  addProp pdllist, #pSourceImage, [#comment: "The member of the sourceImage:", #format: #bitmap, #default:""]
  addProp pdllist, #pTargetImage, [#comment: "The member of the TargetImage:", #format: #bitmap, #default:""]
  addProp pdllist, #pSourceBrushRect, [#comment: "The spritenumber of the Sourcebrushrect:", #format: #integer, #default:""]
  addProp pdllist, #pTargetBrushRect, [#comment: "The spritenumber of the Targetbrushrect:", #format: #integer, #default:""]
  
  return pdllist
  
end getpropertydescriptionlist


on enterframe
  
  if the mousedown then
    member(pTargetImage).image.copyPixels(member(pSourceImage)
.image,(sprite pSourceBrushRect).rect, (sprite pSourceBrushRect).rect)
  end if
  
end enterframe

on prepareframe me
  
  if inside (the mouseloc(sprite (me.spritenum)).rect) then
    cursor 200
    (sprite pSourceBrushRect).visible = true
    (sprite pTargetBrushRect).visible = true
  else
    (sprite pSourceBrushRect).visible = false
    (sprite pTargetBrushRect).visible = false
    cursor - 1
  end if
  
  (sprite pSourceBrushRect).lineSize = 1
  (sprite pSourceBrushRect).loc = the mouseloc
  (sprite pTargetBrushRect).lineSize = 1
  (sprite pTargetBrushRect).loc = (the mouseloc) + point
((sprite(me.spritenum).right + 10),0)
end prepareframe

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail