dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sort ComboBox Alphabetical

  1. #1
    Member
    Join Date
    Apr 2001
    Location
    Cape Town
    Posts
    99

    Sort ComboBox Alphabetical

    I have a combobox with over 300 items. I tried to keep them as alphabetical as possible but one makes mistakes. Are there any way to force it with Actionscript to sort dynamically alphabetical? I was looking at: comboBoxInstance.sortItems([compareFunc], [optionsFlag]) But to use the compareFunc parameter you need to refer to a function to execute. Has anyone perhaps wrote a function like that to list the items alphabetical?? Pease this would help a lot!!!

  2. #2
    Junior Member
    Join Date
    Jul 2004
    Posts
    23
    comboBox.sortItemsBy ("label", "ASC");

    Is this what u want?

  3. #3
    Member
    Join Date
    Apr 2001
    Location
    Cape Town
    Posts
    99
    Perfect man! Thanks a lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center