A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sorting information with ActionScript

  1. #1
    Flash Explorer
    Join Date
    Sep 2005
    Posts
    52

    Sorting information with ActionScript

    I want to create some rows and columns of data for a site and allow the user to click on a column to organize the data by that column, like so:

    _____
    a|1|x|
    b|3|z|
    c|4|y|
    d|2|w|
    -------

    in the above example, the first column is organized.
    If the user were to click on the header of the second column, the data would change to:

    _____
    a|1|x|
    d|2|w|
    b|3|z|
    c|4|y|
    ------

    so that the second column is now in order, and so on.

    So my question is this: I don't have any clue how to even start this kind of thing, programmaticaly. Something in the back of my mind tells me that I'll need a multi-dimensional array, but I'm not sure if I should be listening to myself.

    I don't want a full tutorial (unless someone happens to know of one that's floating around out there), but the functions that I should be using and a little help on the basic theory of what the heck I'm doing would thrill me to my cold, dark heart.
    Pacem!
    --T
    "Clearly I cannot choose the cup in front of you!"

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    I guess you can use the DataGrid Component to do that.

    Here you have two links I found googling, that should be useful:
    http://visualintensity.com/flash-tut...2004/datagrid/
    http://www.flashsupport.com/forum/to...?TOPIC_ID=2032

  3. #3
    Flash Explorer
    Join Date
    Sep 2005
    Posts
    52
    Thanks for replying so quickly!

    Well, shoot, and me with Flash MX 2004--not the professional version. When I was getting ready to buy it at my college bookstore, the $50 price tag difference didn't seem worth it.

    Any other ideas, anyone?
    Pacem!
    --T
    "Clearly I cannot choose the cup in front of you!"

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