views:

118

answers:

1

My XML scripts work fine in the local swf. If I load an external swf, can I still retrieve XML data from the same way. What problems will I encounter with XML and externally loaded swf files?

Based on looking at my sample code, some response about XML problems would be appreciated. Thanks.


VARIABLE TYPES

var timer:Timer = new Timer(10);
var myString:String = "";
var count:int = 0;
var myStg:String = "";
var fcount:int = 0;

RUBY REXML

msg1 = {"msg" => {"head" => {"type"  => "frctl", "seq_no" => seq_no, "version" => 1.0},
       "SESSION" => {"text" => "88888", "timer" => -1000,
       "count" => 10, "fcount" => "10"}}}

XML

<msg>
  <head>
    <seq_no>10000001</seq_no>
    <type>frctl</type>
    <version>1.0</version>
  </head>
  <body>
    <fcount>10</fcount>
    <timer>-1000</timer>
    <count>10</count>
    <file>svrReadyXML.swf</file>
  </body>
</msg>
A: 

Converting Integers and string literals will be an issue

It sounds like you need to make some smaller steps first. Also, I recommend some advanced study books to help formulate a more specific question. Each book has chapters on XML and sockets. I wish there were more specific examples.

Essential ActionScript 3.0
Colin Moock

ActionScript 3.0 Cookbook
Joey Lott, Darron Schall, Keith Peters

ActionScript 3.0 Bible
Roger Braunstein, Mims H. Wright, Joshua J. Noble

VideoDnd
I think my mind might be about to fall over. You're answering your own question, and referring to yourself as 'you'? *"It sounds like you need to make some smaller steps first."*. What the..?
debu