0 Replies Latest reply on Aug 10, 2007 1:04 PM by drjfreeze

    Trying to get Flickr example working

    drjfreeze Level 1
      Ok, I'm still working through the Flickr video example and keep turning over stones.
      So far, I have changed

      1) 'result' to 'lastResult' to fix the HTTPService bug
      2) http://www.flickr.com to http://api.flickr.com to fix the cross-site scripting problem

      Now there is a problem with the dataProvider of the TileList. If I set the dataProvider="{flickrSvc.lastResult}"

      I can see the XML structure with rsp, photos and photo.

      Setting dataProvider="{flickrSvc.lastResult.rsp.photos.photo}" I get nothing. Running in debug mode I get the error message:

      [SWF] Users:jdf:projects:devel:flex:experimentations:flickr1:bin:flickr1-debug.swf - 864,743 bytes after decompression
      warning: unable to bind to property 'rsp' on class 'XML' (class is not an IEventDispatcher)
      warning: unable to bind to property 'photos' on class 'XMLList' (class is not an IEventDispatcher)
      warning: unable to bind to property 'photo' on class 'XMLList' (class is not an IEventDispatcher)

      I found some info online that said to try: dataProvider="{XML(flickrSvc.lastResult.rsp.photos.photo)}"
      but this returns the error:

      TypeError: Error #1088: The markup in the document following the root element must be well-formed.
      at MethodInfo-573()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.binding::Binding/mx.binding:Binding::wrapFunctionCall()
      at mx.binding::Binding/::innerExecute()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.binding::Binding/mx.binding:Binding::wrapFunctionCall()
      at mx.binding::Binding/execute()
      at mx.binding::Binding/watcherFired()
      at mx.binding::Watcher/notifyListeners()
      at mx.binding::PropertyWatcher/eventHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::resultHandler()
      at mx.rpc::Responder/result()
      at mx.rpc::AsyncRequest/acknowledge()
      at ::DirectHTTPMessageResponder/completeHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::onComplete()

      I'm not sure where to go from here.
      Can anyone shed some light on getting this demo working?

      Thanks