Solved

tabels in flash?

Posted on 2002-03-20
12
211 Views
Last Modified: 2010-04-03
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.
0
Comment
Question by:frosty5656
12 Comments
 

Author Comment

by:frosty5656
Comment Utility
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."
0
 
LVL 3

Expert Comment

by:jeffbeasley
Comment Utility
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
0
 
LVL 3

Expert Comment

by:jeffbeasley
Comment Utility
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
0
 

Author Comment

by:frosty5656
Comment Utility
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!
0
 
LVL 3

Expert Comment

by:jeffbeasley
Comment Utility
Give me a couple of days and I will do it for you..
0
 

Author Comment

by:frosty5656
Comment Utility
ok thanks
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:frosty5656
Comment Utility
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"?
0
 
LVL 3

Expert Comment

by:jeffbeasley
Comment Utility
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

0
 

Author Comment

by:frosty5656
Comment Utility
very sorry to bother you again, but it has been 10 days...
0
 

Author Comment

by:frosty5656
Comment Utility
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?
0
 
LVL 9

Expert Comment

by:OBCT
Comment Utility
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
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
Comment Utility
PAQed, with points refunded (269)

Computer101
E-E Admin
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now