I'm converting a Flex app to an AIR app. 

The current flex app uses the SWFObject inthe html template to pass in 
flashvars...
   var so = new SWFObject("myappp.swf", "myappp", "${width}", "${height}", 
"9.0.115");
   so.addVariable("XMLData", getXML(document.getElementById("MyXMLData")));
   so.write();

...where MyXmlData is defined in the html template as follows....
   <div style="display:none;" id="MyXMLData">
      <video>      
         <clip url="rtmp://cpxxx.edgefcs.net/500k/myflv" hideSkin="false" 
></clip>
      </video>
   </div>

In my ActionScript I get the flashvars as follows...
   if (!loaderInfo.parameters.hasOwnProperty("MyXMLData"))
      throw("Error: Missing XML Data");

How would I do this with AIR? Is there a way to pass the XML to the loader when 
the AIR 
app is starting up? To put it another way... How would I pass flashvars to an 
AIR app?

Thanks!
Chris

Reply via email to