Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:02
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Web Services: XML, Soap, WSDL, UDDI, and Flash Integration (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  pulling data from outside source
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: pulling data from outside source  (Read 1943 times)
tulex
Server what's that
*
Posts: 7



View Profile Email
« on: 05/26/02, 20:10 »

i would like to pull data such as temperature an wind speed to  my swf site, is xml useful for this pourpose, does any one know the source, and any method to acomplish this,

i would be eternally grateful to the one that shows me the light here.

tulex.

Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 05/26/02, 20:31 »

First you'll have to find a Source for this data - that's the hardest part.

This may either be some site that publishes this data as a simple text file or in a more complex format based on parameters passed to it (Such as location etc).  

After you have your source it's fairly easy.  XML is a good way to format that data - But since quite a few source's don't publish the info in XML format (or a format Flash can directly read in) - You'll have to do some parsing.  

Basically you have to write a proxy script that goes out to the external source and either pass's it some parameters via GET or POST - or just reads the text directly in.  As soon as you have that info - you can format/parse it however you want.  At this point it is a good idea to format your results into XML - but your not limited to that.  You can just as easily pass the info back to Flash in a variable/value format - ie Weather1=Sunny mid 80s.
http://www.flash-db.com/Search/ (read up on proxy scripting).  

Here's something you may be able to use with some modification:
http://sourceforge.net/projects/phpweather/

Another Option is using an existing Web service that publishes this information for anyone to use (I havn't seen a good service that deals with Weather although).

One of the new trends is to use Soap to access these web services.  This is similiar to just sending a GET or POST request to an external website - but has some advantages.

You may find a service that offers weather on this list:  http://www.xmethods.com

----------------
One thing you'll find with all of this - is that you need something like PHP or ASP to write the actual proxy script for accessing this data.  The reason is that security restriction they placed on the Flash player.  

Anyways I'll go into more of this later.

Do you have a source to get the weather from - Find that first then it's easier to give direction from their.
Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!