William, thanks for your reply. After a lot of searching I realized that the flashvar idea was not going to work. Next I tried adding custom tags to the AIR Application Descriptor File to pass in startup values. That didn't work out to well either. Finally I coded to get the XML via http. That worked fine.
Thanks Again! Chris --- In [email protected], "Abyss Knight" <[EMAIL PROTECTED]> wrote: > > 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" <simspace@> 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 > > >

