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
Set Screen Size
Midi
Windows Sounds Scheme Customization
SamplePlayer
Help and Manual
Foundation Director 8.5
MP3 player and project source code
DirectSMS Xtra
A char scroller
Open MIAW
 

 

 

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

 


Contact

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

Send e-mail