Solved

tabels in flash?

Posted on 2002-03-20
12
213 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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,…
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 how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

772 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