Skip to main content
Participating Frequently
August 18, 2011
Question

View transition performance

  • August 18, 2011
  • 1 reply
  • 643 views

We are developing a magazine-like app and we use View as each page. In each view there are text and images. The images are masked so that they can fit the layout of the page. During view trasition (slide), there are two problems:

1. The mask will displace so the images will get out of their original box. This result a non-smooth feel of page-turning

2. there is a long delay between users finish swiping and transition starts

We wonder if anybody has solutions. Thanks!

This topic has been closed for replies.

1 reply

Participating Frequently
August 18, 2011

One thing to experiment with for the second issue is the image decoding policy: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/LoaderContext.html#imageDecodingPolicy

We added this option expressly for swiping images on mobile devices. Set it to ON_LOAD. What happened (before we added the feature and currently with the default ON_DEMAND policy) is that the image sliding onto the screen was being decoded during the transition, which made things chunky. Not guaranteed to help your issue, but sounds promising.

ilshAuthor
Participating Frequently
August 18, 2011

Thanks, Joe. This looks very promising. As I am using s:Image to hold the images, I wonder how can I apply the decoding policy?

ilshAuthor
Participating Frequently
August 18, 2011

I find if I remove the actionbar, then there is no displayment of images.