Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

*** TABLES IN FLASH ***

Status
Not open for further replies.

mrfrosty22

Programmer
Mar 23, 2002
3
CA
i would like to create a table in flash where i can easily add or remove rows, and where clicking on
one of the heading will sort the tables subjects by that value.

An example would be a table with three heading such as "name", "date", "file size". And when a user
clicks on "name" all the subjects underneath will be listed in alphabetical order, and the same would
go for both date and file size.

Any help that you could give me would be great.
thanks.
 
Depending on how familiar you are with actionScript this is definitely possible but pretty challenging.

If you want to be able to update the information in this table dynamically you'll need to load information into it from a remote file. Since the info is in table format a useful way to approach this would be to use XML which would allow something like this...

<item>
<name>myFile</name>
<date>1/1/02</date>
<filesize>112k</filesize>
</item>

...with multiple &quot;items&quot;. There are several functions within Flash to manipulate the information of an XML file.

Flash could then open this file (using loadXML()) and you could write a routine to parse the nodes, turn the information into array variables and populate the table.

Once the in the arrays the information could be easily sorted using charAt() etc. to create alphabetical lists. Slainte

 
thanks for the reply. that does sound challenging, i will give it a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top