Skip navigation
Bibis431
Currently Being Moderated

How can I insert a weather widget within the flash CS5 AS3 fla file?

Jun 13, 2012 2:22 AM

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.

 
Replies
  • Currently Being Moderated
    Jun 13, 2012 4:13 AM   in reply to Bibis431

    If it is an html widget you'll need to put it in the html.  If it is an swf widget, you can load it dynamically.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 4:30 AM   in reply to Bibis431

    No, I don't, but you can create one of your own, possibly using the same data feed if they make it freely available.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 6:13 AM   in reply to Bibis431

    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...

     

    http://www.gotoandlearn.com/play.php?id=64

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 5:39 AM   in reply to Bibis431

    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...

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 15, 2012 6:10 AM   in reply to Bibis431

    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

    http://www.worldbarefootcenter.com/

    Stacking content on an HTML page is done using z-indexing:

    http://www.w3schools.com/cssref/pr_pos_z-index.asp

    and

    http://www.w3schools.com/Css/css_positioning.asp

    scroll down the page to

    Overlapping Elements

    and then "Try it yorself" to see how it works

    Best wishes,

    Adninjastrator

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points