On line 11 you need to change your binding from

{myService.result.rsp.photos.photo}
to
{myService.lastResult.rsp.photos.photo}

Darren



>From: "Stefano" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [flexcoders] Error 1119
>Date: Wed, 02 Aug 2006 11:00:31 -0000
>
>Hi everybody,
>I have this code...
>
><?xml version="1.0" encoding="utf-8"?>
><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
>layout="absolute">
>      <mx:HTTPService id="myService"
>url="http://www.flickr.com/services/rest?method=flickr.photos.search&amp\
>;api_key=***api_key***&amp;per_page=9&amp;tags={input.text}" />
>      <mx:states>
>          <mx:State name="results">
>              <mx:SetProperty target="{panel1}" name="x" value="10"/>
>              <mx:SetProperty target="{panel1}" name="y" value="10"/>
>              <mx:SetProperty target="{panel1}" name="width" value="455"/>
>              <mx:SetProperty target="{panel1}" name="height"
>value="345"/>
>              <mx:AddChild relativeTo="{panel1}" position="lastChild">
>                  <mx:TileList right="10" left="10" top="47" bottom="10"
>dataProvider="{myService.result.rsp.photos.photo}"></mx:TileList>
>              </mx:AddChild>
>              <mx:SetProperty target="{label1}" name="x" value="79"/>
>              <mx:SetProperty target="{input}" name="x" value="122"/>
>              <mx:SetProperty target="{button1}" name="x" value="290"/>
>              <mx:SetProperty target="{label1}" name="y" value="13"/>
>              <mx:SetProperty target="{input}" name="y" value="11"/>
>              <mx:SetProperty target="{button1}" name="y" value="11"/>
>          </mx:State>
>      </mx:states>
>      <mx:Panel y="19" width="326.5" height="80" layout="absolute"
>x="83.25" title="Photos" id="panel1" resizeEffect="Resize">
>          <mx:Label x="19" y="10" text="Tags" id="label1"/>
>          <mx:TextInput x="62" y="8" id="input"/>
>          <mx:Button x="230" y="8" label="Find"
>click="currentState='results'; myService.send()" id="button1"/>
>      </mx:Panel>
>
></mx:Application>
>
>but as I compile my app, an error occurs:
>
>1119: Access of possibly undefined property result through a reference
>with static type mx.rpc.http.mxml:HTTPService.
>
>but I can't understand why. Could you please help me out? Thank you.
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to