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
Install QuickTime
Buddy Saver
AuthorIT
Generic behavior to detect if the key has been pressed
Progressive Blend on Rollover
Set the location of Sprite
Camtasia
UpDown Timer
Set Stroke properties
Remove Line Feeds on Windows
 

 

 

Behavior Reverse Sort

Added on 1/14/2006

 

Compatibilities:
behavior D7 D8 D8_5 D9 DE

This item has not yet been rated

Author: Chunick (website)

The name says it all. This custom handler should be placed in a movie script so it can be used anywhere within your project.

on reverseSort (theList)
  if not(listP(theList)) then return 0
  theList.sort()
  theCount = theList.count
  newList = []
  repeat with j = theCount down to 1
    newList.add(theList[j])
  end repeat
  return newList
end

 


Contact

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

Send e-mail