Chap5, pg66 - flickr code doesn't work
the code example doesn't work:
has anyone gotten it to work or am i brain dead?
--------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
verticalAlign="middle"
horizontalAlign="center"
xmlns="*">
<mx:Script>
<![CDATA[
[Bindable]
public var flickrURL:String = "http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=8709b73b4e d150ca12cf33a8d4c0e2a4";
]]>
</mx:Script>
<mx:HTTPService id="srv" url="{flickrURL}" useProxy="false" />
<mx:Button label="Get Recent" click="srv.send()" />
<mx:TileList id="myList" dataProvider="{srv.lastResult.rsp.photos.photo}" width="450" height="300" top="100" left="100">
<mx:itemRenderer>
<mx:Component>
<mx:VBox width="80" height="80">
<mx:Image source="http://static.flickr.com/{data.server}/{data.id}_{data.secret}_s.jpg" />
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
</mx:Application>
|