ASP/ VbScript Stats:

How to support the site


Site Wide Message: (current site time 8/1/2010 1:20:51 AM EDT)
  • We want your input! One of our sponsors wants to know your opinion about development related issues. Click here to tell us what you think.
  • Are you an emerging/young developer (aged 18-30)? If so, would you like the chance to affect future developer tools and products?
    If so, then click here to give your feedback.
 

Flash Graph Generator

Print
Email
winzip icon
Submitted on: 5/7/2002 12:44:18 AM
By: Anil Kumar  
Level: Advanced
User Rating: By 5 Users
Compatibility:ASP (Active Server Pages)

Users have accessed this code  22799 times.
 
(About the author)
 
     This uses flash to generate bar graphs dynamically without having to install any server side programs. This just requires you to embed this tiny flash movie in your web page and it takes data from a text file or an asp page and shows an animated bar graph. You can refresh the graph without having to reload the entire page. ---------------------------------------------- I am including the flash source file (.fla) so that you can tinker with it and add all the features that I haven't. Right now this only draws the graph - I haven't added the x and y axes titles. Also, the movie plays in the 'high quality' mode which can make the animation slow. You could modify it to play in low or medium quality by default, or just use the quality selector. -------------------------------------------- The bar graphs currently use an animated bar with an 'aqua' look. Remove the animation if you don't like it, or just replace the symbol with a bar of your own. --------------------------------------------- I have included two sets of files - one that takes data from a text file and one that takes data from an asp page. Check "readme.txt" in the zip file for details. ----------------------------------------------- This is just a framework, so I'm sure it can be improved a lot. For one, it could use an XML data input instead of the URL encoded input it uses right now. ----------------------------------------------- If I get the time, I shall add the capability to draw curves and pie charts and also change the input to XML. Contact me if you need any explanation of the fla file. Happy tinkering! NOTE: THIS REQUIRES FLASH 5. YOU WON'T BE ABLE TO READ THE FILE OTHERWISE. FLASHPLAYER 5 OR ABOVE REQUIRED TOO.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 6 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
5/7/2002 12:08:19 PMRObot X5

thanks man this is great
(If this comment was disrespectful, please report it.)

 
5/8/2002 2:56:31 AMJacques

1 file doesn't want to open
graphasp.fla
1 file doesnn't want to extract
graphasp.swf
(If this comment was disrespectful, please report it.)

 
5/19/2002 7:06:07 PMntguy

the zip file is corrupted!
(If this comment was disrespectful, please report it.)

 
5/23/2002 8:44:05 AMAuratius

Cool Application
(If this comment was disrespectful, please report it.)

 
6/1/2002 7:49:58 AMAnil Kumar

Check the files now. I have repaired the corrupt zip file.
(If this comment was disrespectful, please report it.)

 
7/10/2002 6:28:42 AMDave Rose

Good stuff Anil!
(If this comment was disrespectful, please report it.)

 
7/10/2002 10:23:11 AMDave

I thought this was excellent code. Much better than I hoped for
(If this comment was disrespectful, please report it.)

 
5/23/2003 2:49:58 PM

Its a great script and the very beautiful the flash is amazing, I would love to know how I could extract data from an access database in order to display the graphs?.
(If this comment was disrespectful, please report it.)

 
5/27/2003 2:02:26 AMAnil Kumar

You need some kind of a server side scripting language to extract data from a database. I would recommend either ASP since it is extremely easy to use. In ASP try to read up on ADODB and you will have your answer. You could also do it with PHP or any other language, but the fastest one to learn is ASP, so have fun researching database operations with ASP.
(If this comment was disrespectful, please report it.)

 
10/30/2003 5:39:42 AM

thanks.it's an excellent code
(If this comment was disrespectful, please report it.)

 
6/30/2004 1:10:17 AM

When I play the Flash file this Erorr is popuping
Scene=Scene 1, Layer=functions, Frame=1: Line 41: Left side of assignment operator must be variable or property.
eval(
(If this comment was disrespectful, please report it.)

 
9/17/2004 1:29:54 AM

This is a good stuff.How to getdata from asp file? i.e I am not able to attach the required data to get the graphs
(If this comment was disrespectful, please report it.)

 
2/8/2005 11:23:36 PM

You pal!... Its a great script...however, if i want to have a line graph, Do you have a code for it?Thanks
(If this comment was disrespectful, please report it.)

 
4/6/2006 3:32:56 PMnasirbest

Good job! Five Star from me.
(If this comment was disrespectful, please report it.)

 
9/7/2007 5:00:20 PMdouglas

Good job Anil. I tried to contact you by email through this posting but the email bounced. Is there another way to contact you? Thx!
(If this comment was disrespectful, please report it.)

 
10/22/2009 12:43:00 AMSaeed AbuRoken

very good job


(If this comment was disrespectful, please report it.)

 
Add Your Feedback!

Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.