Skip to main content
August 21, 2006
Question

Get data from aspx file

  • August 21, 2006
  • 9 replies
  • 576 views
Lets say at
http://flash.sample.com/default.aspx?number=1000
shows thes datas

-START_CSV-
1000;pol;1;345;
1000;pol;2;456;
1000;pol;3;345;
1000;pol;4;235;
1000;pol;5;374;
1000;pol;6;3470;
-END_CSV-

So how should I get this data in to the flash file, should I use load Variable method?
I need to get data separately, for example

Pol1 = 345;
Pol2 =456;
Pol3 = 345;
Pol4 = 235;
Etc….

Many Thanx

Nalinda

This topic has been closed for replies.

9 replies

August 22, 2006
Is the aspx file on the same server as your flash document? If not, it's not working because of a security issue. I guess the easiest way to fix this is to write a PHP file which simply echoes the data that you need and have flash load in the PHP file.
August 22, 2006
Thank you for the help,

That’s worked ok, now there is a new issue

Getting the data by LoadVars method
my_lv.load(' http://flash.sample.com/default.aspx?number=1000');

This is works fine at my local machine, But when I upload it to the server, its not loading
Why this error only comes at server?
Inspiring
August 21, 2006
These are peer to peer forums. You might have to wait a bit while we wake
up.

Anyway... you should look at the LoadVars class -- and its onData event
handler. Examples in Help.


August 21, 2006
Try something like the rfolowing
August 21, 2006
I am still wting for a help
Participating Frequently
August 21, 2006
Participating Frequently
August 21, 2006
August 21, 2006
Cant I get all the datas and split it by “1000;pol; ‘ and get separate data?
August 21, 2006
I can’t change the aspx file my client gave me, but have to import the data from that. Is it possible?
Participating Frequently
August 21, 2006
You need to output the response from your aspx as follows:
&pol1=345&pol2=456&plo3=345 ...etc

and use the loadVariablesNum() function to retrieve the data from flash.

Nissar.P.K