Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
E-mailExec 2.0
Set PlayBackMode of a Flash Member
Spawn
RoboDemo Review
Faux Typing
Rosetta Xtra
Macromedia Licensing
SetMouseXtra
ProgressCopy
XML Text Renderer v1.1
MediaMacros Xtras Mall
 

 

 

Behavior Copy Behavior (Ctrl + C)

Added on 2/15/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: Macromedia (website)

From Technote #14130 from Macromedia.com

property spriteNum, pWhichSprite, pWhichMember, pMemberType

on beginSprite me
  pWhichSprite = sprite(me.spriteNum)
  pWhichMember = pWhichSprite.member
  pMemberType = pWhichMember.type
end

on keyDown me
  if (the commandDown) then
    case (TRUE) of
      (the commandDown AND the keyPressed = "c") : clipboardCopy me
    end case
  else
    pass
  end if
end

on clipboardCopy me
  if pMemberType = #text then
    if pWhichMember.selectedText.text <> "" then
      put pWhichMember.selectedText.text into member("clipboard temp")
      copyToClipboard member "clipboard temp"
    else
      beep
    end if
  end if
  if pMemberType = #field then
    if the selStart <> the selEnd then
      a = the selStart
      b = the selEnd
      put char a + 1 to b of the text of member pWhichMember into member("clipboard temp")
      copyToClipboard member "clipboard temp"
    end if
  end if
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