Link to home
Start Free TrialLog in
Avatar of frosty5656
frosty5656

asked on

tabels in flash?

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.
Avatar of frosty5656
frosty5656

ASKER

this is what i have found out so far; since i'm not too familiar with action script could someone explain how i would go about this more in-depth?

"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 "items". 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."
I have a file example that sorts these elements for you in an example called data_sort.fla
at this does part of what your asking for and may be of assistance

http://www.jeffbeasley.com/downloads/index.html

If you need additional help in creating the rest let me know I can do it fairly quickly

Let me know,
Jeff
I can add the delete and add feature pretty quickly if you need...

You probally need some understanding of action script to incorprate this

also if you want to create this dynamically you need to either use a text file or a language that has use of queries..

to add or delete you will need a data driven application (asp, cold fusion,jsp) and sometype of small database to read and write too....

Jeff
thanks for the reply. that example looks great. if you could add that "add and delete" function would also be good. thanks for the help!
Give me a couple of days and I will do it for you..
ok thanks
jeffbeasley, would it be possible for you to give me a time frame in which you will be able to complete the "delete and add feature"?
I will try to have it by Friday but for sure by Monday sorry......I forgot and have been hammered at work....

Sorry Again......
Jeff

very sorry to bother you again, but it has been 10 days...
jeffbeasley, could you give me an example of a program that reads and writes to a database, so i could implement it into my situation?
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ/Refund

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

OBCT
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial