Forum Topic: Loading data from web into swf

(58 views • 1 reply)

This topic is 1 page long.

<< < > >>
Beaten

Jawdyn

Reply To Post Reply & Quote

Posted at: 10/15/09 09:31 AM

Jawdyn LIGHT LEVEL 25

Sign-Up: 05/15/07

Posts: 3,741

Hey! I was wondering if it was possible to load data from websites on the internet into a .SWF file.

For example, on our Newgrounds userpages we have stats such as Experience, Saves & Blams. For each user, we have our own unique stats on our page.

Would I be able to use Flash to load these amounts depending on what username they searched for?

Im guessing id have a dynamic textbox where the user can input a username, and then Flash would load the URL but change the username at the end depending on what the user put into the dynamic textbox, and then with this page it would pull the stats data from the page and load it into the .SWF. I'm betting if possible it's a lot more complicated than that though.

So I would type Jawdyn, and the .SWF will load the value of my stats on my page.

I know this kind of thing can be done with Java, I don't know what the limitations of Flash are. I'd be looking to do something similar to loading these stats much like nglogs does.

Can this be done?
If so, links to any tutorials on getting started with this or anything that can be of use would be helpful!

Thank you for any help.


None

KaynSlamdyke

Reply To Post Reply & Quote

Posted at: 10/15/09 10:04 AM

KaynSlamdyke LIGHT LEVEL 16

Sign-Up: 06/25/04

Posts: 4,926

At 10/15/09 09:31 AM, Jawdyn wrote: Hey! I was wondering if it was possible to load data from websites on the internet into a .SWF file.

For example, on our Newgrounds userpages we have stats such as Experience, Saves & Blams. For each user, we have our own unique stats on our page.

... eeeh...

Okay. Normally you do this with the various connection scripts out there (LoadVarsobjects with sendAndLoad methods if it's AS2, URLLoaderand the other classes and thier load methods for AS3). But without actual database access priveleges, you're a bit stuck...


I know this kind of thing can be done with Java, I don't know what the limitations of Flash are. I'd be looking to do something similar to loading these stats much like nglogs does.

I suppose what you could do is load the HTML page in as an XML file, and then rip it apart. Assuming the site doesn't change designs, you should be able to find what you're after with a few string comparisons.

Maybe there's an actual feed for stats that I don't know about however.

Current build for ThreedeeTiles : Monkey
Previous: Lamprey, Mountain Goat (Dead Fork)


All times are Eastern Standard Time (GMT -5) | Current Time: 08:29 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!