Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Adobe Flex 2 ISBN: 978-0-470-10267-1
This is the forum to discuss the Wrox book Professional Adobe Flex 2 by Rich Tretola, Simon Barber, Renaun Erickson; ISBN: 9780470102671
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Adobe Flex 2 ISBN: 978-0-470-10267-1 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 12th, 2007, 01:42 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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>
Reply With Quote
  #2 (permalink)  
Old July 15th, 2007, 05:56 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The code is fine, but you need to enter your own API key in place of the one in the flickrURL variable:
http://api.flickr.com/services/rest/...ecent&api_key=

Rich

Reply With Quote
  #3 (permalink)  
Old July 22nd, 2007, 10:36 AM
Registered User
 
Join Date: Jul 2007
Location: Lawrence, KS, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used my own flickr api key and the code worked fine.

You can get a flickr api key here:

http://www.flickr.com/services/api/

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photo Scrolling/ carousel similar as Flickr (ajax/ kumiko Ajax 1 May 12th, 2008 09:30 AM
Chap5 collections clarification taternuggets BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 March 26th, 2008 12:22 PM
code clinic - Why wont example asp code work? jardbf Classic ASP Basics 3 April 27th, 2006 06:22 PM
php5 - chap5 iris_see BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 March 30th, 2005 09:33 PM



All times are GMT -4. The time now is 11:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.