Is it possible to insert a weather widget into the fla file or does it need to be done in html?
Thanks for your replies.
Thank you Ned,
I have a html widget, but I would much rather load an swf widget dynamically into flash. Do you know of any free swf weather widget and can it be loaded using UILoader?
Many thanks in advance.
Chances are the weather data you will be after will be in the form of an RSS feed (weather.com provides one, for instance). So if you have the drive to try, you might want to just see what you can do to have an RSS feed read into a Flash file... forget the weather aspect for the moment and just pursue getting some data fed into a file and display it.
When you see how the data is isolated from the feed, you might then be able to adapt it to a scenario where you hve a weather feed and you want to exclude some of the information that it provides and only present certain aspects of it
Here is a link to an AS3 tutorial that can help get you started...
You're welcome. It is an advanced topic as far as Flash programming goes, but Lee does a great job explaining things clearly. There's always the possibility it will still be over your head, but when you get into designing/coding you have to expect head scratching, hair loss, sleepless nights, etc...
I love the tutorials at gotoandlearn!! So that is certainly a good option.
Another method is to stack the html widget over the top of your Flash on the Web page.
Just leave a blank spot, the exact size and location of the widget in your Flash design... as though the widget was to be part of the Flash.
Then after the Flash is added to your Web page, you can use z-indexing to stack other content right over the top of your Flash. And since you've designed a blank spot into the Flash, it will look as though it is a part of the Flash.
That is often the best way to incorporate HTML into a Flash page.
Here is an example of what I mean... The Vimeo video player is stacked over the top of the Flash page... but it looks like an original part of the page. In fact, in this case it's a second Flash <object> stacked over top of the main Flash page... since I couldn't incorporate the Vimeo player directly into my .fla
Stacking content on an HTML page is done using z-indexing:
scroll down the page to
and then "Try it yorself" to see how it works
Europe, Middle East and Africa