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
IMidi Xtra
Change the LineSize of a Shape Cast Member
The Multimedia Workshop
Select From DropDown List
Bevel Drag Light-Alphamania
Fade In and Out plus other commands
Direct Media Controler Button
INSIDE Macromedia Director & Lingo
Rotator 1.1
Parse CSV File
 

 

 

Behavior Forward and Reverse (Shitf+Tab) between Fields

Added on 9/23/2003

 

Compatibilities:
D8 D8_5 D9 Mac PC Shockwave

This item has not yet been rated

Author: MediaMacros (website)

Allows tab and Shift tab to go forward and backwards between editable fields.

--Copyright 2003 MediaMacros, Inc.
--Place this on fields and disable the internal tab property to allow tab and shift tab (reverse) between fields

property spriteNum

on getSprites me, l
  l.add(spriteNum)
end

on keyUp me
  if the key = tab then
    l = []
    sendAllSprites(#getSprites, l)
    sort(l)
    p = l.getOne(spriteNum)
    if the shiftDown then
      --back
      n = p - 1
      if n < 1 then
        n = l.count
      end if
    else
      --next
      n = p + 1
      if n > l.count then
        n = 1
      end if
    end if
    --activate the field
    the keyboardFocusSprite = l[n]
  else
    pass
  end if
end

 


Contact

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

Send e-mail