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
Drag & Drop
XML Socket Server for Flash, Director and Authorware
Vigenere cipher (Encryption)
Director 8 Workshop
Planet Orbiter
Tennis
Change Bit Depth of a Member
KeyPoll
Reference Xtra
Multi Cropper
 

 

 

Behavior Delete one or more items

Added on 6/29/1999

 

Compatibilities:
D6_5 D7 D8 Mac PC Script

This item has not yet been rated

Author: MetaforceInteractive

deleteListItem(list, itemToDelete, deleteAll)list is the list to have items deleted from itemToDelete is the item to be deleted from the list deleteAll is a flag which can be true or false if deleteAll is true, all occurrences of itemToDelete will be removed from the list.

--Copyright © 1997 -1998 Metaforce Interactive.
--http://www.metaforce.com
on deleteListItem list,itemToDelete,deleteAll
  set numItems = count(list)
  repeat with i = 1 to numItems
    if itemToDelete = getAt(list,i) then
      deleteAt(list,i)
      if deleteAll then
        set numItems to numItems - 1
        set i to i - 1
        next repeat
      else
        exit repeat
      end if
    end if
  end repeat
end    

 


Contact

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

Send e-mail