Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

XML and Air Issues


Level 1
Hi guys, first time poster so I apologize if this is a basic
question! I am creating a Media cataloging application to run as a
desktop application through Air, I initially built this as a Flex
web app but have decided I want it as a standalone. Anyway my
problem is this, in the web version I was using the following code:

<mx:Application xmlns:mx=""
layout="absolute" creationComplete="srv.send()"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FFFFFF, #2CE1AC]" width="1281">

<mx:HTTPService id="srv" url="dvdLibrary.xml"/>

<mx:DataGrid x="336" y="57"
dataProvider="{srv.lastResult.dvdList.dvd}" id="dg" width="935"


<mx:DataGridColumn headerText="Title"

<mx:DataGridColumn headerText="Studio"

<mx:DataGridColumn headerText="Released"

<mx:DataGridColumn headerText="Runtime"

<mx:DataGridColumn headerText="Colour"

<mx:DataGridColumn headerText="Aspect Ratio"



The above code uses the XML file to populate the dataGrid
(which I am sure you know already! 🙂 ), however when I port this
to an Air app, it no longer works. I have tried changing the
<mx:HTTPService> tag and attributes to the <mx:XML
source="pathtoXML.xml" id="srv"/> and <mx:Model
source="pathtoXML.xml" id="srv"/> but neither works.

Can anyone shed any light? I also get and error saying
something about creationComplete send() is not a function?

Is there a very different way of achieving this in Air?

Thanks in advance!
0 Replies