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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML through perl script

Status
Not open for further replies.

tweenerz

Programmer
Mar 25, 2002
202
US
I am designing a search feature in flash. The data was originally supposed to be in an xml file, but since the data is going to be over 10,000 lines long, I decided to throw it in a sql database first. I have a perl script that queries the database and spits out the results in an xml file which, in turn, flash reads and displays. I am accessing the script through http in flash.

It works well on my local machine, but as soon as I try and use it on the internet, it chokes. It never finishes loading or even finds the xml file.

here is my xml load (not the actual url):

Code:
list.load("[URL unfurl="true"]http://123.456.789.012/cgi-bin/xml/search.pl?fname="+fnameSearch+"&lname="+lnameSearch);[/URL]

Any ideas why it would load locally but not over the internet?
 
It might be an idea to build in a delay loop to allow the XML data to load completely. The load() action doesn't pause your movie until the data is loaded - no problem locally because the data transfer speed is so high but over http the movie runs on before the data is in place.

Have you tried using onLoad() to set up a function to check that the XML is downloaded and parsed? Slainte

 
Sorry, I forgot to mention that. I do have a loop. It is not an onLoad, though. It just loops between towo frames until the xml is loaded.

Frame 2:
Code:
// verify if XML have been loaded
if (list.loaded) {
    gotoAndPlay (4);
}

and frame 3 just goes to frame 2

I am still playing with it. Thanks for the reply.
 
You uploaded all the files needed to run it n the server???

The server you're using on the net, does it enable you to use database???

Sorry i can't help more, i don't know nothing about xml, i only use ASP with flash.

Have Fun...

Sharky99 >:):O>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top