title: action script 3 read values from XML file
body: <p>I have a problem while reading from XML file in action script 3.</p>
  
  <p>This is my XML-file:</p>
  
  <pre><code>&lt;config&gt;
  
      &lt;production&gt;
          &lt;app_id&gt;123&lt;/app_id&gt;
          &lt;server_path&gt;http://someLinktoAccess&lt;/server_path&gt;
          &lt;assets_server&gt;http://someLinktoAccess&lt;/assets_server&gt;
          &lt;payment_url_callback&gt;http://someLinktoAccess&lt;/payment_url_callback&gt;
      &lt;/production&gt;
  
      &lt;stage&gt;
          &lt;app_id&gt;123&lt;/app_id&gt;
          &lt;server_path&gt;http://someLinktoAccess&lt;/server_path&gt;
          &lt;assets_server&gt;http://someLinktoAccess&lt;/assets_server&gt;
          &lt;payment_url_callback&gt;http://someLinktoAccess&lt;/payment_url_callback&gt;
      &lt;/stage&gt;
  
      &lt;dev&gt;
          &lt;app_id&gt;123&lt;/app_id&gt;
          &lt;server_path&gt;http://someLinktoAccess&lt;/server_path&gt;
          &lt;assets_server&gt;http://someLinktoAccess&lt;/assets_server&gt;
          &lt;payment_url_callback&gt;http://someLinktoAccess&lt;/payment_url_callback&gt;
      &lt;/dev&gt;
  
      &lt;/config&gt;
  </code></pre>
  
  <p><strong>I want to access to each key-value pair in this file. So I want to get from here 4 string variables: app_id, server_path, assets_server, payment_url_callback. How can I get them??</strong> </p>
  
  <p>Now I'm using such a code:</p>
  
  <pre><code>private function loadXmlConfig():void
          {
              //load the loading config xml
              var xmlLoader:URLLoader = new URLLoader();
              var load_config_path:String = "http://dl.dropbox.com/u/28744968/android_vs.xml";
              xmlLoader.addEventListener(Event.COMPLETE, xmlConfigLoadingSuccessed);
              xmlLoader.addEventListener(IOErrorEvent.IO_ERROR,  xmlConfigLoadingFailed);
              xmlLoader.load( new URLRequest( load_config_path ) );
          }
  
          private function xmlConfigLoadingSuccessed(event:Event):void
          {
              var load_config:XML = new XML( event.target.data );
              trace(load_config.config.dev.app_id.value);
              //startup facade
              GameFacade.getInstance().startup( StartupCommand, this );
          }
  </code></pre>
  
  <p>The file is loaded with all values, but I can't access any of them.</p>
  
  <p>What mean this:</p>
  
  <pre><code>var library:XML
   library.@url
  </code></pre>
  
  <p>Thank you!</p>