Concerning three of your errors: in onResult():
You are passing in oEvent. The next line you are using event. You are declaring var callToken:AsyncToke but are using: token.callId = "myQuery1"; You are calling: doQuery2(); The declaration of this method is nowhere to be found. Read your code a bit more carefully. FlexBuilder gives you hints. Use them. Look at the lines FlexBuilder lists in the Problems-View. If FlexBuilder says "undefined property", ask yourself, is this property declared? Have I misspelled it? Same goes for "undefined method". markcavins schrieb: > > OK I've seen some of the errors > > <mx:HTTPService id="tempXML" resultFormat="e4x" > result="onResult(event)" > url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}" > /> > > <mx:TileList dataProvider="{_xlcMyListData}" > width="344" backgroundColor="#000000" color="#ff0000" fontSize="27" > borderColor="#000000" columnWidth="300" rowHeight="50" > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" > id="TileList1" height="0" y="202" x="178"/> > > <mx:Script> > <![CDATA[ > > > import mx.rpc.Events.ResultEvent; > import mx.rpc.AsyncToken; > import mx.collections.XMLListCollection; > > [Bindable] > private var _xlcMyListData:XMLListCollection; > > > var oRequest:Object = new Object(); > oRequest.Arg1 = "value1"; > var callToken:AsyncToken = tempXML.send(oRequest); > token.callId = "myQuery1"; > > private function onResult(oEvent:ResultEvent):void { > var xmlResult:XML = XML(event.result); > var xlMyListData:XMLList = xmlResult.myListData; > _xlcMyListData = new XMLListCollection(xlMyListData); > trace(_xlcMyListData.toXMLString()); > var callToken:AsyncToken = oEvent.token; > var sCallId = callToken.callId; > switch(sCallId) { > case "myQuery1": > doQuery2(); > break; > } > > > } > > ]]> > </mx:Script> > > that cut the errors is half > > 1120: Access of undefined property event. > 1120: Access of undefined property oRequest. > 1120: Access of undefined property token. > 1180: Call to a possibly undefined method doQuery2. > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com>, "markcavins" <[EMAIL PROTECTED]> > > wrote: > > > > This is what I have currently. I removed the comments to make it > > cleaner to read here. > > > > <mx:HTTPService id="tempXML" resultFormat="e4x" > > result="onResult(event)" > > > url="https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}" > > /> > > > > <mx:Script> > > <![CDATA[ > > > > > > import mx.rpc.Events.ResultEvent; > > import mx.rpc.AsyncToken; > > import mx.rpc.XMLListCollection; > > > > [Bindable] > > private var _xlcMyListData:XMLListCollection; > > > > > > var oRequest:Object = new Object(); > > oRequest.Arg1 = "value1"; > > var callToken:AsyncToken = service.send(oRequest); > > token.callId = "myQuery1"; > > > > private function onResult(oEvent:ResultEvent):void { > > var xmlResult:XML = XML(event.result); > > var xlMyListData:XMLList = xmlResult.myListData; > > _xlcMyListData = new XMLListCollection(xlMyListData); > > trace(_xlcMyListData.toXMLString()); > > var callToken:AsyncToken = oEvent.token; > > var sCallId = callToken.callId; > > switch(sCallId) { > > case "myQuery1": > > doQuery2(); > > break; > > } > > > > > > } > > > > ]]> > > </mx:Script> > > > > > > <mx:TileList dataProvider="{_xlcMyListData}" > > width="344" backgroundColor="#000000" color="#ff0000" fontSize="27" > > borderColor="#000000" columnWidth="300" rowHeight="50" > > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" > > id="TileList1" height="0" y="202" x="178"/> > > > > > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com>, Alger Werft <alger.werft@> wrote: > > > > > > Do you import AsyncToken and XMLListCollection? > > > > > > markcavins schrieb: > > > > > > > > Yeah thanks for the advice but I can't seem to get anything on that > > > > code to work and to be honest I don't even begin to understand where > > > > to begin on how to modify it to get it to work. Trying to get it to > > > > work but I get a whole mess of errors > > > > > > > > 1046: Type was not found or was not a compile-time constant: > > AsyncToken. > > > > 1046: Type was not found or was not a compile-time constant: > > AsyncToken. > > > > 1046: Type was not found or was not a compile-time constant: > > > > XMLListCollection. > > > > 1120: Access of undefined property event. > > > > 1120: Access of undefined property oRequest. > > > > 1120: Access of undefined property service. > > > > 1120: Access of undefined property token. > > > > 1180: Call to a possibly undefined method doQuery2. > > > > 1180: Call to a possibly undefined method XMLListCollection. > > > > > > > > Thank you for your help Tracey > > > > > >