I've had a chance to completely re-write my PageList component so it runs much smoother and provides easier more flexible use.
The PageList component let's a user horizontally page through a TileList. The component binds with a HTTPService to provide a continual flow of data.
Click here to view a demo of the component
Click here for full source code
Things to make note of:
Because the component dynamically adjusts it's own X position it needs to be the child of either an Application, Canvas or Panel.
The component at the moment has a single results handler which handles a JSON response from a Google API. To use this component you can easily add your own handler functions to handle data specific to your own application.
Google JSON API
The demo I've put together for this component makes use of a Google JSON API which is really handy and easy to access if your Flex project uses the Adobe Corelib library.
The Google JSON API can be accessed via the following URLs.
http://www.searchmash.com/results/images:[query]
http://www.searchmash.com/results/blogs:[query]
http://www.searchmash.com/results/video:[query]
The full url I used in the demo is
http://www.searchmash.com/results/images:Apple
In order to access the API remotely and not run into any Flex security issues I used a php proxy. Click here for details
Hello. I have a new blog.
I've moved this blog to the following URL Kerkness.ca. Thank you for visiting, please update your bookmarks.
Tuesday, March 4, 2008
Updated Flex PageList Component and Demo with Google JSON API
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for the comments.