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
cXtraGraphicIO
Custom Projector Icon
Set DirectToStage Property of a Flash Member
keyboard input control
QTVR basic behavior
UltimateFileIO
Mudbox
Graphing a Function
INM's Impressario
cXtraGraphicEffect
 

 

 

Behavior Copy and Paste inside non-editable fields

Added on 10/2/2000

 

Compatibilities:
behavior D7 D8 PC

Required Xtras:
Buddy API

This item has not yet been rated

Author: MediaMacros (website)

This behavior alows non-editable field members to use the Ctrl + C, command for copy. This is not a variable, it actually writes to the windows clipboard so the data is available to other fields as well as other programs. Note- this will only work with field members, not text members and it does not function correctly in authoring mode, only in projectors. Requires the Copy key down script.

property spriteNum

global currentField, startChar, endChar

on mouseDown me
  currentField = sprite(spriteNum).member
  startChar = the mouseChar  
  endChar = the mouseChar
  add the actorList, me  
end

on stepFrame me
  endchar = the mouseChar
  if endChar > startChar then
    hilite char startChar to endChar of field(currentField)
  else
    hilite char endChar to startChar of field(currentField)
  end if
end

on mouseUp me
  if endChar > startChar then
    hilite char startChar to endChar of field(currentField)
  else
    hilite char endChar  to startChar of field(currentField)
  end if
  deleteOne(the actorList, me)
end

on mouseUpOutside me
  if endChar > startChar then
    hilite char startChar to endChar of field(currentField)
  else
    hilite char endChar to startChar of field(currentField)
  end if
  deleteOne(the actorList, me)
end



on getBehaviorDescription me
  describe = "This behavior alows non-editable field members to use the Ctrl + C, command for copy.  This is not a variable, it actually writes to the windows clipboard so the data is available to other fields as well as other programs." & return & "Note- this will only work with field members, not text members and it does not function correctly in authoring mode, only in projectors." & return & "Requires the Copy key down script."
  return describe  
end

 


Contact

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

Send e-mail