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="" />
<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
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___