开发者

xml and external swf documents

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;

开发者_Go百科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>


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜