Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Set Static Property of a Flash Member
DirectTransition3D Xtra, Set III
Change Filled property of a Shape Sprite
Cross-platform scripting differences: Sorted Lists
Push Dial-Alphamania
Josh Chunick's Personal Site
Buddy API
ScreenFade
PowerPoint / PPT Access
Set Screen Size
MediaMacros Xtras Mall
 

 

 

Behavior Select All Behavior (Ctrl + A)

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 at 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 = "a") : selectAll me
    end case
  else
    pass
  end if
end

on selectAll me
  if pMemberType = #text then
    num = member(pWhichMember).text.char.count
    set the keyBoardFocusSprite = -1
  end if
  if pMemberType = #field then
    set the keyBoardFocusSprite = -1
    hilite member pWhichMember
  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