Solved

tabels in flash?

Posted on 2002-03-20
12
215 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
[X]
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
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
To view Flash technology content error 4 6,748
Action Script commands 3 223
Youtube video error 30 842
Download Adobe Flash Player 6 67
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

726 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