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

Extracting Data From a HTML Page

Status
Not open for further replies.
Oct 23, 2001
119
BE
I'd like to write a simple html page with flash in which i can control another application on my network.
The command for this application are very simple. It's something like If i execute these in the browserwindow, some commands return data. Like //ipadress:80/stop returns 1 (for succesfull) but other commands like //ipdaress:80/version returns more information.

I control this program with flash as described further:
I have some buttons on level0 and a movieclip called "buffer".
The buttons has actions like "
on (release) {
loadMovie ("}
which works fine, but how can i get the information that is returned ?

Or is there another way i should call these commands ?
It is impossible to make anything foolproof because fools are so ingenious.
Murphy's Laws
 
Is this for visitor tracking purposes....get the IP address, browser, language etc. or do you have something else in mind?
If its for visitor tracking I can show you a good method using flash and php, with a mySQL database for storage as thats what I use myself. Also allows for tracking where visitors go within an all flash site. Oldnewbie appears to think this is his personal forum. His replys are gospel...he knows it all.
 
I want to use this information as data in flash. And i can't use php because it's a file to be used on the intranet thus i'd would be a little a slow-down to use an external php server. It is impossible to make anything foolproof because fools are so ingenious.
Murphy's Laws
 
Depending on what kind of data is coming back, and how it's coming back, you could have it write the data to a text or xml file, and read the data in from there...

B
 
Well, the data is just returned as plain textlike i mentioned before.
When i perform this action it returns 4.2.0.0 and when i perform it returns an entire playlist, separated with a cariage return It is impossible to make anything foolproof because fools are so ingenious.
Murphy's Laws
 
Hi Electraboy

Depending on what you want to do, this sounds like a great place to use XML. You could make an xml file that looks like:
Code:
<playlist>
<track1>dsfasdf1.mp3</track1>
<track2>dsfasdf2.mp3</track2>
<track3>dsfasdf3.mp3</track3>
</playlist>

then you would read it in. XML and Flash works beautifully on a &quot;non-server&quot; environment. If you think this will work in your situation, I'll try to dig up some online resources. A book I found very useful was &quot;XML in Flash&quot;, but there are quite a few online tutorials (maybe even at macromedia.com) that are helpful.

Hope this helps,

Ben
 
Hi,
This could indeed work.
But i can't change anything about the fact that the data returned is plain text.
So, if there is a way to put this text in a xml.file, please let me know.


It is impossible to make anything foolproof because fools are so ingenious.
Murphy's Laws
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top