I would imagine the best way to do this would be to convert your flashvar to a simple HTTPService call which fetches the XML via the network. As far as I know, AIR applications do not accept flashvars because they are not embedded in a wrapper.
-- William --- In [email protected], "Chris Simeone" <[EMAIL PROTECTED]> wrote: > > 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 >

