Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

tabels in flash?

Posted on 2002-03-20
12
214 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
ID: 6892588
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
ID: 6902475
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
ID: 6902502
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:frosty5656
ID: 6903875
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
ID: 6910247
Give me a couple of days and I will do it for you..
0
 

Author Comment

by:frosty5656
ID: 6910699
ok thanks
0
 

Author Comment

by:frosty5656
ID: 6932562
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
ID: 6932851
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
ID: 6956533
very sorry to bother you again, but it has been 10 days...
0
 

Author Comment

by:frosty5656
ID: 6982242
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
ID: 10311456
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
ID: 10361954
PAQed, with points refunded (269)

Computer101
E-E Admin
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

791 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