Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 271651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:11:53+00:00 2026-05-12T00:11:53+00:00

OKay I don’t use actionscript and trying to help my friend edit a flash

  • 0

OKay I don’t use actionscript and trying to help my friend edit a flash website which the layout changes based on a xml feed from weatherroom.com which is now defunk, the dev of this site has also left my friend (his client). This is the current code bellow, is there anyway I can simply swap for another service and not have to hire a person to do the actionscript all overagain

updateWeatherData() {
//record old settings
var oldCondition = _root.currentCondition;
var oldWeather = _root.currentWeather;
var oldTimeset = _root.currentTimeset;
//get new settings
var newTimeObj = _root.getCurNYTime();
_root.currentTimeset = newTimeObj.timeSet /*'night'*/;
var myURL:String = 'http://www.weatherroom.com/xml/zip/12545';
var myXMLweatherData:XML = new XML();
myXMLweatherData.load(myURL);
myXMLweatherData.onLoad = function(success) {
    if (success) {
        _root.XMLWeatherFeed = this;
        //extract current condition (string)
        _root.currentCondition = _root.getCurrentCondition(_root.XMLWeatherFeed);
        //get current weather number
        _root.currentWeather = _root.getCurrentWeather(_root.currentCondition) /*2*/;
        //display
        _root.displayAllWeatherInfo(_root.XMLWeatherFeed);
        if (_root.initWeatherDone == true) {
            //compare if weather has changed
            if (oldCondition != _root.currentCondition or oldWeather != _root.currentWeather or oldTimeset != _root.currentTimeset) {
                if (_root.currentCondition != undefined and _root.currentWeather != undefined and _root.currentTimeset != undefined) {
                    console.text += ('-> ' + oldCondition + ' :: ' + _root.currentCondition + '\n');
                    console.text += ('-> ' + oldWeather + ' :: ' + _root.currentWeather + '\n');
                    console.text += ('-> ' + oldTimeset + ' :: ' + _root.currentTimeset + '\n');
                    //if it has, launch weather update
                    _root.updateWeatherBackground();
                } else {
                    console.text += ('--! weather server returned uncomplete data !--');
                    //restore data
                    _root.currentCondition = oldCondition;
                    _root.currentWeather = oldWeather;
                    _root.currentTimeset = oldTimeset;
                }
            } else {
                console.text += ('--! no necessary update !--');
            }
        } else {
            //tell app init has been done
            _root.initWeatherDone = true;
        }
    } else {
        //-- server is down
        //-- return partly cloudy no rain
        trace('*** SERVER IS DOWN ***');
        _root.currentWeather = 3;
        _root.initWeatherDone = true;
    }
}

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:11:54+00:00Added an answer on May 12, 2026 at 12:11 am

    You’re probably going to need to hire someone else. The reason I say that is that any other service you use is going to have to have EXACTLY the same XML layout for your code to just “plug into it.” For example, _root.getCurrentCondition() is probably a method that looks for a specific node inside the XML and returns a value in a specific format. Unless the attributes and text are exactly the same (name, pattern, etc.), it’s just not going to work.

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 206k
  • Answers 206k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer That resizable doesn't work could be considered a bug. (Hint… May 12, 2026 at 9:13 pm
  • Editorial Team
    Editorial Team added an answer Add a \ at the end of each line $("#theObject").doSomething()… May 12, 2026 at 9:13 pm
  • Editorial Team
    Editorial Team added an answer Although it's not W3C compliant, oncontextmenu="return false;" as an attribute… May 12, 2026 at 9:13 pm

Related Questions

OKay I don't use actionscript and trying to help my friend edit a flash
Okay, I have this program and I don't want more than one instance of
Okay I've read through the plugin comments and the docs as well and I
Okay I'm totally confused on this one. I have a script that receives a
I've recently been lifted out of the .Net world into the Java world and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.