Skip to main content
Inspiring
February 9, 2010
Question

How to create a single large bitmap data at run time?

  • February 9, 2010
  • 2 replies
  • 786 views

Hi All,


Please help me in overcoming the issue that is mentioned below.


Requirement:   Create single very large bitmap data which contain some 30 PNG images loaded and for each image it should have some text.  Images and text are loaded dynamically (AS2 code. Images are stored in a remote server). The bitmap data display should show 8 images at a time and corresponding text. We can see rest content by scrolling (kinetic scroll is implemented). How can I go for it?


Some questions:

· Is there any limit for size of bitmap data ( As per link there is restriction on the height of the bitmap we can create in AS2 (max value is 2880 which is not enough for some 30 element list http://help.adobe.com/en_US/FlashLite/2.0_FlashLiteAPIReference2/WS84235ED5-9394-4a52-A098-EED216C18A66.html ) How to overcome this limitation?


· If we create individual bitmap data for 30 individual PNG files, we find some jerks in scroll. How can we have smooth scrolling?



Thanks and Regards,

Manjunath

This topic has been closed for replies.

2 replies

M_S_HAuthor
Inspiring
February 9, 2010

The server sends a notification along with the number of bitmaps to be loaded every minute and the list is refreshed... the bitmaps at the server are named in a predefined format and same for the text too.. we just use the index for both bitmap and text....

thanks

kglad
Community Expert
Community Expert
February 9, 2010

ok.

load and display per my above message 1.

kglad
Community Expert
Community Expert
February 9, 2010

why aren't you simply loading your images into 30 target movieclips each of which is a child of the same parent?

M_S_HAuthor
Inspiring
February 9, 2010

Thank you very much for the reply.

The number of bitmaps are not 30 always. It can vary in real time and since all PNG files are stored in a remote server which are also vary during runtime; so we can not predefine the number of child movieclips. It could be 10 at some duration and may be 20 at some other time.

Any help?

kglad
Community Expert
Community Expert
February 9, 2010

that wouldn't make any difference.

but, how do you determine, at run-time, what bitmaps to load?