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

  • SEARCH
  • Home
  • 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 625435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:18:32+00:00 2026-05-13T19:18:32+00:00

How do I remake my swf for xml commands? Remake sounds silly, but I

  • 0

How do I remake my swf for xml commands? “Remake” sounds silly, but I just want to have integer values updated by an XML file. This may be beyond my understanding. I’d like an
example, a mash-up, or method I can work from.

myThoughts
– It needs to read XML “parse it etc”
– variables receive e:data instead “my struggle with passing values and function calls”

XML

//XML
<head>
<seq_no>text</seq_no>
</head>
<body>
<count>0</count>
<timer>10</timer>
<fcount>0</fcount>
</body>

RUBY REXML

msg1 = {"msg" => {"head" => {"type"  => "frctl", "seq_no" => seq_no},
     "body" => {"count" => "0", "timer" => 10, "fcount" => 10000}}}

msg1 = {"msg" => {"head" => {"type"  => "frctl", "seq_no" => seq_no},
     "body" => {"count" => "0", "timer" => 100, "fcount" => 100000}}}

Flash

//Flash "the counter" half of Stackoverflow has participated in writing
var timer:Timer = new Timer(10);  
var count:int = 0; //start at -1 if you want the first decimal to be 0  
var fcount:int = 0; 

timer.addEventListener(TimerEvent.TIMER, incrementCounter);  
timer.start();  


function incrementCounter(event:TimerEvent) {  
  count++;  
  //
  fcount=int(count*count/10000);//starts out slow... then speeds up 
  //
  var whole_value:int = int(fcount / 100); //change value 
  var tenths:int = int(fcount / 10) % 10;   
  var hundredths:int = int(fcount) % 10;   

  mytext.text = whole_value + " : " + tenths + hundredths;  
}   

“hoping to be out of noobsville soon, keep em’ coming”

  • 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-13T19:18:33+00:00Added an answer on May 13, 2026 at 7:18 pm

    To open an XML file try something similar to:

    function processXMLData(success)
    {
      if (success)
      {
        var newsNode=this.firstChild;
    var headerNode=newsNode.childNodes[0];
    var contentNode=newsNode.childNodes[1];
    var infoNode=newsNode.childNodes[2];
    var authorNode=infoNode.childNodes[1];
    
    header=headerNode.firstChild.nodeValue; 
    content=contentNode.firstChild.nodeValue;   
    author=authorNode.firstChild.nodeValue;
      }
      else
      {
        content="Today's news is not found";
      }
    }
    
    var xmlData=new XML();
    xmlData.ignoreWhite=true;
    xmlData.onLoad=processXMLData;
    xmlData.load("news.xml");
    stop();
    

    Then just assign the corresponding nodes to your variables. You will want to validate that the node has data and that the data is in the correct data type or able to cast to the correct data type.

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

Sidebar

Related Questions

I have this code that draws a Rectangle ( Im trying to remake the
I am trying to remake a program I have made in C# in OBJ-C.In
I have a rails app that I have serving up XML on an infrequent
I want to customize the reflection from the FlowCover (Cover Flow remake) sample code.
I've updated the xcdatamodel with a new attribute. i've made sure to remake the
I'm trying to remake some of my older projects to support Aero Glass. Although
For starters: I'm working with Flash CS3 and Actionscript 2.0 I'm trying to remake
I have an existing legacy style IDTExtensibility2, IDTCommandTarget Extension that I would like to
I have a database project that goes through iterations (only one so far) and
When working on the early stages of a console-based Python remake of the classic

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.