Looks like this functionality will be added in Flex SDK 4.6 i.e. next release scheduled to come ot by end of 2011 (hopefully earlier).
Full list of new functionalities are available here
I gues I'll just wait for it and then implement the functionality I need in the app.
Are you showing the BusyIndicator component while waiting for the next image?
You can slide images with an effect with s:Parallel and s:Move.
Are you basically suggesting that I use the animation to kind of cover up the time it takes for the API call to be made and the next image show up?
1. Show 1 image full screen
2. When User swipes, call API for next photo and trigger animation.
3. By the time animation finishes, next image should be ready. If not, at least busy indicator will show up.
Only 1 problem I see is that the API call may interfere with the animation so the animation may not be smooth. Is my understanding right.
It's the circular spinning lines. It's common in apps to display the busyindicator while waiting for something to appear. So you show it, then load the next image. When the next image appears, hide the busyindicator.
Oh ok. I know about the busy indicator. It's just that I don't think the user experience is going to be great if a busy indicator shows up for every single image.
I wrote a simple app similar to this a few months back. In my case, I implemented some caching behavior to improve the behavior of the app:
1) getting an image actually required multiple API calls -- one to get the available resolutions, then one to load the image -- so I would get and pre-cache the API call results for the images to the left and right of the current one every time a new image was brought to the center
2) I made sure to provide a ContentCache to the Image contentLoader so that subsequent navigations to previously loaded images would not incur the network call for that image
Hope this helps,
Has anyone found a simple solution for the gallery?