Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Graphs 2

Status
Not open for further replies.

Nixhex

Technical User
Mar 25, 2001
7
AU
Can someone help me to answer this question
Can Flash 5 Create graphs from an external data source such as excel access or tetx?

If there is a way to tell Flash to create a Graph please let me know
OR
If there is some other program that would work just as good to create a graph and import into flash ...?
please help
 
Thanks for the link.
I have looked at it before however you may think i am silly and not really knowing what i am doing (which is partly true) however i have data in excel so what you are saying is to convert and assign which bar is which number ie.
Bar 1 = 83.. and so on.

i have too man numbers and colums. do i have to assign each individual ?? sorry its late and not understanding.

please respond.
 
This may shed some light on the subject. It's pretty easy to get an external variable (like say from an asp recordset -- i.e. Access) into Flash, and then you can use that to size the graph however you need it...

So first, you would need to get your number, however it is that you wish to do that. My method of choice is ASP, and we'll say that that variable is already assigned to a server side variable called 'graphSize'.

You would then just need to write a very simple javascript function that would be called on your body onLoad event in order to get the variable into flash. It would look like this...

function loadIt(){
document.movieID.SetVariable(&quot;flashVariable&quot;, <%=graphSize%>);
}

Where &quot;flashVariable&quot; is the variable inside your movie that you are setting with the 'graphSize' server variable. You do not have to explicitly declare the variable in the .fla file... the above function will create and assign it for you.

you would call it like so:

<body onLoad=&quot;loadIt();&quot;>

You'll need to get someone else here (like OldNewbie, davDesign, or one of the other great folks in this forum) to help you with the actionscripting part to assign the variable to the size of one of your internal objects in flash, which would assumably be your graph.

I found that the other day, used it on a page, and it works like a charm. Short and sweet.

good luck! :)
Paul Prewett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top