Weather In Flash Once Again.
Is there a way to do it without using PHP?
We're trying to do one for a screensaver that will ideally pull directly from the RSS feed.
Really don't care what site it pulls from as long as it:
Doesn't use PHP Can be customized to show the weather for our office's zip And we also want to ad our own custom graphics for both the weather and time of day.
FlashKit > Flash Help > Actionscript 3.0
Posted on: 03-11-2008, 03:17 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[F8] Weather In Flash
Hi,
Do anyone know how to get local weather in flash using XML or others?
Any sample or code please.
Thanks
P
Weather In Flash
Do anyone know how to get weether of your local area in flash application?
Any code, Sample please.
Thanks,
P
Weather In Flash
Is it possible to put weather into your flash applications, maybe something associated with www.weather.com?
Just wondering, sounds like a pretty spiffy idea for your flash websites.
Thanks,
Bryan Hawkins
Flash Weather? I Think So
Alright .... I KNOW this has to be possible somehow!
I want to pass the current temperature to a flash movie based on a zipcode location that I will have on a .asp page, which will be passed to the Flash movie. So in flash I will have a var like "var currentTemp = temp" where temp is the variable passed into flash.
Does anyone know where I can find a resource for some guidance as to the .asp scripting or anything like that?
I have seen a php version, but unfortunately I need to use .asp.
Thanks to you!
Flash Weather Baby
Alright .... I KNOW this has to be possible somehow!
I want to pass the current temperature to a flash movie based on a zipcode location that I will have on a .asp page, which will be passed to the Flash movie. So in flash I will have a var like "var currentTemp = temp" where temp is the variable passed into flash.
Does anyone know where I can find a resource for some guidance as to the .asp scripting or anything like that?
I have seen a php version, but unfortunately I need to use .asp.
Thanks to you!
HTML Weather In Flash...
Is it possible to load a weather URL like the weather channel lets you do in HTML - into flash.
You know the ones with the pretty pictures and and temp.
thanks
-T
Weather Variables In Flash Mx
hi there,
I was wondering if it is possible to get the accurate weather (temperature, cloudy/sunny/rainy/...) from an existing server somewhere into a flash mx file?
For those who have windows vista already: there's a weather gadget that shows the temperature and a graphical representation of the sky outside, at that particular location, at that particular time (so very accurate).
First problem: where can I find a server who provides me of this data?
Second problem: where to start with the actionscript?
I really hope that someone can help me out cause I'm completly stuck.
thanks !
Weather Report On The Flash Website
Hi , I am trying to show a local weather stats ... just basic ... temperature and conditions ... how can i get this data in flash ?
I am based in Australia, Melbourne ... zip/country code is ASXX0075
I found some resources but didn't quite work
eg http://www.actionscript.org/forums/s...d.php3?t=70742
this looked good that flash example but didn't show anything ... I guess it's US based service only or something ...
.... any ideas?
thanks
Weather Report With Flash Not Working
Hey guys,
I'm using the following script to call the weather temperature and condition in the flash header of my site (52° Mostly Cloudy). When I test it out locally, it works perfect, but when I test it live on my site, the two fields show up as "undefined ° undefined."
Take a look at it and tell me what looks wrong, I would REALLY appreciate it.
myVars = new LoadVars();
myVars.load("http://mysite.com/includes/classes/weather.php");
myVars.temp;
myVars.forecast;
loadVariables("http://mysite.com/includes/classes/weather.php","");
myVars._path = this;
myVars.onLoad = function (success) {
if (success) {
//trace (" variables loaded ");
for( var prop in this ) {
//trace (" key " + prop + " = " + this[prop]);
}
} else {
//trace (" Error loading variables ");
}
}
myVars.onLoad = function() {
//display the values in the text box
lBox.text = this.temp + "° " + this.Forecast;
//trace(this.forecast);
}
Weather Info Display In Flash
Hi,
I have got a weather display file in flash.. I modified it and its working locally.. but on the server the data is not loading. Please have a look at the file attached.
Live Weather On Your Website (Flash)
http://www.skiheavenly.com/
I am designing a ski-resort website and would like to know to implement a live temperature reading like shown on the website. I already have a Web Service that is going to be the feed. But thats all I know. Can somebody help me out? Thanks
Joe
NOAA Weather Web Service In Flash
Hi,
i am really new to Flash and am enjoying the learning process but i have a question which i cant figure out. I live in Colorado Springs and there are three web services (areas) that i am interested in putting in my website. For starters, I only want to get advisories, watches and warnings. If there are none i don't want anything displayed (just the background color), if there is one of the above for either the Pike's Peak Region, Northern El Paso County and Southern El Paso County i want to display it. (Basically have three containers for each region). In addition, to get "fancy", i would like to have a colored box above the container which has orange for advisory, yellow for watch and red for warnings...can someone please help/show me how to do this. I am struggling with the whole thing including connecting to the web service. The idea is good, putting it into action is another thing. Any assistance would be greatly appreciated.
mike
Weather Info Display In Flash
Hi,
I have got a weather display file in flash.. I modified it and its working locally.. but on the server the data is not loading. Please have a look at the file attached.
Display Weather Temp In Flash?
Has anyone worked on any weather display using Flash?
Im working on getting three cities to display the weather.. any good refrence links maybe?
Those Annoying Transparent Flash Movies On Msn Or Weather.com
you know those annoying flash movies on msn.com or weather.com that are completely transparent.. how do they call them with out the chrome window much like the one that this web page is in. do they use a chromeless window? Its not that publishing setting is it.. never works for me.
thanks,
dp
Weather Component Using Flash MX Professional 2004
Hi,
I found a weather component on Flashkit.com and am trying to build something similar to it. I am having a serious problem with the ActionScript. I am learning from a Flash 4 tutorial and the code is way off because I am using Flash MX Professional 2004. I am unfamiliar with loading ASP into Flash or I would not bug all of you with this problem. I have taken many Flash classes but no one ever bothered to show me how to do anything of real importance.
Please take a look at my attached files and if you can fix the problem please let me know how to do it. I would appreciate it very much. Thanks for your time and your help!
HeADHuRTs(o/o)
Trying To Convert A Html Weather Link To Flash
(using 6.0)
I'm trying to convert a link I got from a weather site from its original html in order to integrate it into our flash page. Is this even possible? Here is the html:
"<a href="http://www.wunderground.com/US/CA/Malibu.html">
<img src="http://banners.wunderground.com/banner/sunandmoontrans/language/www/US/CA/Malibu.gif"
alt="Click for Malibu, California Forecast" height=150 width=256></a>"
[F8] Importing Weather Data Into Flash Project
Hey all,
I'm currently designing a "mock" ski resort website for a project at university and was wondering if anybody had any good links to tutorials, examples or just general info regarding pulling "real-time" weather conditions into Flash (AS 2).
I've registered an account at weather.com and have access to their XML feeds... now i just need to figure how to sort out what info i actually need (not much) and get it to display into my .swf.
ANY and all help is extremely appreciated. I'm comfortable with the flash environment but am lacking a bit in the "behind the scenes" actionscripting jazz.
thanks,
ryan
How To Display Simple Weather Info In Flash
Hi,
Where can i get the weather, in realtime (let's say each 10 minutes), of a specific place like Newyork, Dubai etc and display it in flash ?. I want to incorporate the information into the design that I have made.
How To Display Simple Weather Info In Flash
Where can i get the weather, in realtime (let's say each 10 minutes), of a specific place like Newyork, Dubai etc and display it in flash ?. I want to incorporate the information into the design that I have made.
Building A Dynamic Weather Maps Flash MX Demo
Because I work for a company that aggregates a wealth of different kinds of data from weather to energy to commodities, I wanted to create a PC wallpaper application that would enable our clients to click on a tab at the side of their computer screen and display various types of information retrieval services. One tab would let you check the latest equity prices from stocks to corn. A second tab would display the latest wire service headlines and by clicking on a headline you could read the latest newswire story. A third tab would display a drop-down menu system for various weather maps including current conditions,regional radar images and world satellite images.
I now have all three of these components working and am gradually integrating them into a single flash movie that will be available to our clients as either individual Flash components or as a consolidated SWF wallpaper application.
Because this forum has been helpful in either pointing me in the direction to solutions for various problems or providing me with a soap box to air those problems, and thereby helping me verbalize the problem and come up with the solutions on my own, I thought I would share with the group a demonstration version of the weather maps application I have been wrestling with the past week. Novices like myself may find it useful as a reference on how to build a flash menu system and to pull, resize and reposition JPEG images using a combination of attachMovie() and createEmptyMovieClip() functions.
Due to the number of images that accompnay the flash files, I wasn't able to upload the ZIP file to the forum, which has a 102,000 byte limit. So, if you would like to download the 919,004 bytes demo, it will be available at the following URL:
http://www.dtnmarketaccess.com/flash/DTNwxMaps_demo.zip
Please note that this Flash MX demo is very basic and lacks many of the refinements I plan to incorporate into the version that will eventually be part of the final application. For example, the menus don't automatically collapse if you don't select a map to view. Also for obvious security reasons, I included a set of static weather maps dated from August 19, 2003. The working version pulls the most current images from the Meteorlogix image server.
There is a ReadMe text file that accompanies the images, .fla, .swf and .html files for this application. I hope you enjoy it. It was challenging to develop and ultimately very simple in its final structure.
Bill Moore
DTN Market ACCESS
Omaha, Nebraska
USA
Weather.com
Hello all.
I am trying to incorporate the code from Weather.com into Flash MX. I was able to do it with google but this one is stumping me. Basically, it's an input text box that allows you to enter your city and submit it to see the weather forcast.
The Basic code in HTML (this is a trimmed down version of what weather.com gives you.) I will not be using their submit button.
I have used ( instead of < so you can see the code.
----------------------
(form method="post" action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=internal&code=617416&site= logo&promo=english")
(input name="destination" type="text" size="8" value="")
(input type="image" src="http://image.weather.com/pics/button_go.gif" )
----------------------
Below is the CODE IN USE
----------------------
<form method="post" action="http://www.weather.com/cgi-bin/uncgi/zip_city_search.cgi?par=internal&code=617416&site= logo&promo=english">
<input name="destination" type="text" size="8" value="">
<input type="image" src="http://image.weather.com/pics/button_go.gif">
Any help/tips will be appreciated.
[Edited by TorontoGuy on 08-12-2002 at 12:20 PM]
Weather You Like It Or Not
I am hoping to put a live weather feed for birmingham, uk, on my flash navigator
is there a free service to do this, or could i take information from another page.
[F8] XML Weather
I am using XML weather from:
http://developer.yahoo.com/weather/
and have the following actionscript on frame 1 of my movie:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.load("http://xml.weather.yahoo.com/forecastrss?p=95720");
this.onEnterFrame = function() {
city_txt.text = my_xml.firstChild.childNodes[0].childNodes[6].attributes.city;
temp_txt.text = my_xml.firstChild.childNodes[0].lastChild.childNodes[5].attributes.temp;
conditions_txt.text = my_xml.firstChild.childNodes[0].lastChild.childNodes[5].attributes.text;
}
I would also like to dynamically place the corresponding weather icon from yahoo (ie partly cloudy, sunny, rainy), but don't have the slightest idea how. From reading the above URL, it has something to do with 'code', but i don't know how to call it into my Flash movie. I have limited xml knowledge, so be gentle. And, this is my first attempt at calling xml with actionscript. The above works fine for displaying the text forecast for city, conditions and temp. How would I display the corresponding graphic?
Thanks in advance -
sleepydad
Weather Help
I have a lil problem and some one said it can only be answered here, so am like let me give it a try. we have a local tv channel we run from school for student by students, and i do all the scrolling on screen from my pc, i want to take is a step further, i want to run an interractive weather forcast, which i want to physically input my self, so want i want to do is get a jpg file of the world map, make my screen 'full screen' and let about 8 values show at at points on the map, e.g maybe 23 by cairo...how can i go about that, can i have a text file outside that i can edit the values? so wne i finish i would just save the text file and then launch the flash file.
...any body with a solution?
Getting Weather From Bbc.co.uk
Hey guys I rarely speak on the forums lol so Im a bad member although i did take part in the giant picture chain thread! anywys I would like to implement a search feature i.e. a postcode box where a user inserts there postcode clicks a submit button then is sent to the corrosponding page on the bbc!
the search box is on the bottom right hand side of the www.bbc.co.uk/weather a view source will tell you what you need to know I belive this is the code but you can go to the site to see more.
Code:
<td bgcolor="#99cc66" valign="top" colspan="3" rowspan="3" class="searchbox"><div style="padding:0px; margin:4px;" class="display">
<form name="search" method="get" action="/cgi-perl/weather/search/new_search.pl"><h2 style="padding:0px; margin:0px; color:#ffffff;"><label for="search_query">Search</label></h2><strong style="color:#ffffff;">for a new 5 day forecast</strong><br />
<div style="padding:0px; margin:0px; float:right;"><input type="image" value="Submit" src="/weather/images/gui/gr_but_submit_5day.gif" width="26" height="21" id="submit" name="submit" alt="GO" border="0" tabindex="3" /></div><input type="text" name="search_query" id="search_query" size="8" title="To search for a five day forecast please enter your location name or postcode and click GO" style="width:125px;" accesskey="8" tabindex="2" />
<br clear="all" /></form>
I'm learning snippets of flash all the time and working this out would really aid in understanding more of how flash handles things!
I have an input box and button allready setup I just need to work out what code to insert in the on (release) { } section and what var's to call the input box and if anything else is need to process this I assume what they insert in input box on the bbc gets sent using the get command to a search then return something I can use .
I want the user to open the bbc.co.uk page corresponding to the postcode seperatley (_blank)
Many thanks if any Kirupians can point me in the right direction and explain along the way! cheers!
Adam
Weather
Hi everyone! I am trying to make a weather feed that comes from yahoo weather. I am using the bronx new york weather rss which can be accessed at http://xml.weather.yahoo.com/forecastrss?p=USNY0172. The problem is that it does not play while hosted on any server but it plays locally on my computer. Is there something that i am missing. i added it to the system security allow domains section. Any help is greatly appreciated.
-Joseph Nwachukwu
Weather
I am looking weather "widget" for my site?
I Googled http://www.flashcomponents.net/compo...e_weather.html
Idea?
Weather
Hi everybody! This is my first post here.
I need flash weather for my web site (as2). I googled one - http://www.flashcomponents.net/compo...e_weather.html
any other?
Weather Channel
does any one know of a script that can bring the weather channels information for your location into your swf that will make live updates so you always have the current weather showing or any other weather program that will work with flash?
Weather Channel Is This Even Possible?
I have a standalone projector that I bring some swf's into from the web. now my ? is, is it possible to be able to get flash to show a weather forcast like from the undergroundweather.com the code the give me for my html page is.
<a href="http://www.wunderground.com/US/AR/Mountain_Home.html">
<img src="http://banners.wunderground.com/banner/default/US/AR/Mountain_Home.gif"
alt="Click for Mountain Home, Arkansas Forecast" height=60 width=468></a>
Please Visit Our Sponsors:
is there anyway to get a swf to show this without useing java script to pop up another window. I want it to show right in my swf
Need Weather On My Website
pretty vague thread title, no?
For starters, I'm an intermediate Flash Actionscripter, that is to say, I can do mouse trailer crap with my eyes closed yet cannot do a video game to save my life (but I'd go down swinging like a champ).
My question for yous guys is this: I want my website to display weather animation based upon the viewers location, is that possible?
Weather Script
I am looking to put weather on my website. Local conditions for a zip code. It would should temp and an image like full sun, prtly cloudy,ect. anyone help.??
Thanks
Weather Script
I need a weather script. This is a sample of what I want. I would like to have the main page I have given and the forcast, but would atleast like the main page with out forcast. Here is the link:
http://www.accrisoft.com/index.php?s...tegory=Contact
Someone help me out?
Thanks
Streaming Weather
Does anybody know how to stream weather into your flash movie from an outside source? Any help would be appreciated
Weather Forecaster
Is there a way to allow the world weather to be shown in a flash movie, that would be updated daily.
Ie . There is a picture of the world, the user selects a country and the weather for that country is displayed, nothing fancy just sun rain or cloud, somthing like that?????
Hows The Weather?
Hey all.
I am looking for some help making something to display the current weather of a specific city / zip / area, whatever.
I have been looking all over the web for the past 5 days, and I cannot find a good flash tutorial, or open source, or anything that will help lead me to this.
Do you know of any good tutorials, or any good sites to learn about making something like this?
PLEASE LET ME KNOW..
Thanks
.
Rss Weather Widget
Does anyone know of a good rss Weather widget that will not only display text, but the appropriate weather image (sun, rain, etc.) like weather.com has? I'm not familiar enough with XML to parse out data. Any help you can give is appreciated!
Weather Problems
Thanks to LoungeActx, I figured out how to create a button for the falling snow effect in my project. My final code ended up being
on (release) {
for (k=0; k<8; k++) {
duplicateMovieClip(_root.snow, "Snow"+k, k);
}
}
Simple huh?! Well, now that I have a button to turn it on, I can't figure out how to turn it off. Could someone advise me on how to control my weather problems?
This is in Flash MX btw.
Thanks!
Weather Web Service
hi there, I was wondering how I can invoke some certain information about a certain city ( Mexico City ) using a WebService, I was trying with this one: http://www.webservicex.net/globalweather.asmx?WSDL but is not working, can someone helpme please?, I was reading any tutorial about web services within Flash MX Pro, but I missing something....
Thanks a lot!
RSS Weather Feed
I've been asked to build a website for a golf course which of (course) will be a great project but I would like to include a live RSS weather update with symbols if possible.
I have not attempted anything like this before and it would be great if you guys could post any help/links on how I could pull this off.
Thanks for any help.
Weather Forcast
Hi all,
is it possible to integrate a weather forecast in a flash movie, from the weatherforecast site I have this code:
Code:
<iframe width="120" height="160" scrolling="no" frameborder="0"
src="http://gratis.weer.nl/meteo/hptool/?cid=31X155&l=nl&
cityName=Amsterdam&style=3&v=nl"> </iframe>
this would be great.....if possible...
Weather Application
Hello everyone,
I'm new, I'm looking for some help for a little project of mine. Let me say that I'm a musician, with web development as an hobby therefore I consider myself a newbie even if I've been playing with Flash for a while now. I learned mostly from online tutorials and lynda.com titles (very helpful).
I'm trying to build a weather application using the free xml feed from weather.com. I found a php script that does it all, but the interface is just ugly html. I would like to create a nice Flash interface to display the data from the feed. I know how to load php with LoadVars but I looked at the php source and it's pretty complicated to me (I just know how to echo "hello world"). If I understood right, the xml feed from weather.com is loaded and updated into a database(I'm using mySQL) where php retrieves the data. The php script can be found at "http://www.notonebit.com/projects/weather/".
Can anyone share their knowledge to this poor guy eager to learn?
Thank you
Weather Widget XML
hi,
i'm developing a weather widget using the Yahoo's RSS, exemple at : http://xml.weather.yahoo.com/forecastrss?p=29577 .so i need to use the informations from that 29577 XML.
visit the widget demo at http://www.flashmedia.mxhost.ro/widget/
that one tries to load the XML from the url above. it isn't loading it... why ?
as far as for the offline version, works.
download the sources from http://www.flashmedia.mxhost.ro/widget/widget.zip and run the FLA and then publish. see? on your PC the widget works...
what's wrong with my hosting server ?
please help me making the online version work too.
Dynamic Weather Information
hi.
I need weather information on my site. looking for dynamic weather information component.
could u please let me know if there is
regards
Weather Forecast Magnet
I am trying to add a weather magnet to my newly built flash site but have become very frustrated. Any help would be an absolute miracle!! this magnet will be inserted into a small area of the final flash piece and be displayed.
Here is the script that was sent to me from the weather network:
<!-- Begin Qwikcast.com -->
<iframe width='219' height='156' marginwidth='0' marginheight='0'
align='middle' border='0' frameborder='0' scrolling='no'
src="http://www.qwikcast.com/cgi-bin/sticker/qcmagnet.cgi?cust=7208&unit=C">
<table width='219' height='156' align='center' cellpadding='0' cellspacing='0'><tr><td>
<ilayer width='219' height='156'
src="http://www.qwikcast.com/cgi-bin/sticker/qcmagnet.cgi?cust=7208&unit=C">
<p>See <a href="http://www.qwikcast.com/cgi-bin/sticker/qcmagnet.cgi?cust=7208&unit=C">
Qwikcast.com forecast for Toronto, ON, CA </a>.</p>
</ilayer>
</td></tr>
</table>
</iframe>
<!-- End Qwikcast.com -->
[F8] Problem With PHP Driven Weather Box
I downloaded a cool little item called the "Weather box" fro here and want to implement it into my site, but it will not work. It included a PHP file, the swf, and the fla. I uploaded the swf, and php files to my server, set my area code where it said to in the php file, and apparently that was it. But it doesen't display anything but the big letter "F" for the temp, and two commas where the town, and state name shoud be. My server runs PHP scripts because my guestbook and shoutbox are PHP driven, so I really don't understand why it is not working.
Here is the code:
<---begin code--->
Code:
<?php
//Set your zipcode here:
$zip = 13148;
//You shouldn't have to change anymore.
define('WEATHER_URL', 'http://xml.weather.yahoo.com/forecastrss');
define('WEATHER_FILE', 'cache/weather');
class Weather {
var $data;
function getWeather($zip, $units='f') {
$units = strtoupper($units);
$path=WEATHER_URL."?p=$zip&u=f";
$this->data = @file_get_contents($path);
$fp = @fopen($file, 'w');
@fwrite($fp, $this->data);
@fclose($fd);
if(strlen($this->data) <= 0) return;
$attributes = explode('"', $this->GetTagAttributes('yweather:condition'));
$saved_units = explode('"', $this->GetTagAttributes('yweather:units'));
$location = explode('"', $this->GetTagAttributes('yweather:location'));
$saved_units = strtoupper($saved_units[1]);
$return = array();
$return['text'] = $attributes[1];
$return['temp'] = $this->convert($saved_units, $units, $attributes[5])."°{$units}";
$return['image'] = $this->TranslateCode($attributes[3]);
$return['city'] = $location[1];
$return['state'] = $location[3];
$return['country'] = $location[5];
return $return;
}
function GetTagAttributes($tag, $skip=0) {
$start = -1;
for($i = 0; $i <= $skip; $i++)
$start = strpos($this->data, "<{$tag}", $start + 1);
if($start === false) return false;
$start += strlen($tag) + 1;
$end = strpos($this->data, "</{$tag}>", $start);
if($end === false)
$end = strpos($this->data, '/', $start);
return trim(substr($this->data, $start, $end - $start));
}
function convert($in, $out, $temp) {
if($in == $out) return $temp;
return number_format(($temp - 32) / 1.8, 0);
}
function TranslateCode($code) {
$time = date('G', time());
$night = ($time <= 5 || $time >= 20); // night is between 8 pm and 6 am
switch($code) {
case 39: return "ThunderStorm";
case 2: return "WindyRain";
case 43: return "Snow";
case 18: return "Sleet";
case 7: return "IcyFrozenSnow";
case 8: return "IcyDrizzle";
case 9: return "Drizzle";
case 35: return "IcyRain";
case 40: return "Showers";
case 13: return "LightSnow";
case 14: return "MedSnow";
case 15: return "WindySnow";
case 19: return "Dust";
case 20: return "Fog";
case 21: return "Haze";
case 22: return "Smoke";
case 24: return "Wind";
case 26: return "Clouds";
case 27: return "MostlyCloudyNight";
case 28: return "MostlyCloudyDay";
case 29: return "PartlyCloudyNight";
case 30: return "PartlyCloudyDay";
case 31: return "Moon";
case 32: return "Sun";
case 33: return "FairNight";
case 34: return "FairDay";
case 36: return "Hot";
case 44:
if($night) return "PartlyCloudyNight";
else return "PartlyCloudyDay";
case 45:
case 47:
if($night) return "NightThunderStorm";
else return "SunnyThunderStorm";
case 46:
if($night) return "NightSnow";
else return "Snow";
default: return "Unknown";
}
}
}
$weather = new Weather();
$weather = $weather->getWeather($zip, 'f');
echo "&city=$weather[city]&state=$weather[state]&country=$weather[country]&temp=$weather[temp]&pic=$weather[image]&condtext=$weather[text]";
?>
<---end code--->
I am also including the .fla for anyone who would like to attempt to diagnose the problem.
Thanks,
|