Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>that's not a warning, that's a real error ... String does not have a property data, as Cay mentioned ... I wonder how you ever made this compile with FD in the first place ... did you compile with CS3 or with Flex SDK?</p> <p>it should be something like</p> <pre><code>var data:XML = XML(file); var id:int = data.item.id;/*if your xml looks something like &lt;%ROOT%&gt; &lt;item&gt; &lt;id&gt;%SOMEINT%&lt;/id&gt; &lt;/item&gt; &lt;/%ROOT%&gt;*/ </code></pre> <p>by the way, with JSON, using <a href="http://code.google.com/p/as3corelib/" rel="nofollow noreferrer">as3corelib</a>, it'd be</p> <pre><code>var data:XML = JSON.decode(file); var id:int = data.item.id;/*if your JSON looks something like { item : { id: %SOMEINT% } } </code></pre> <p>JSON and XML have <strong>extremely</strong> different semantics, and <code>XMLNode</code>, that you mentioned is ActionScript 2 Legacy, that you shouldnt use ... no offense, but I think you should look at either a JSON or XML/E4X tutorial, since you code and what you say, somehow leads me to believe, you didn't understand some fundamental things, such as the general process: </p> <p><strong>source string</strong> <em>---parsing/unmarshalling---></em> <strong>intermediary object tree</strong> <em>---traversal---></em> <strong>extracted data</strong></p> <p>neither can you operate on the source string directly, nor are the intermediary object trees freely exchangable, and thus traversal also depends on used data encoding format (you cannot traverse parsed JSON with E4X, but then again JSON is a semantically equivalent representation of ActionScript values)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload