Wow! Lot's to look into. I never considered using BitmapData for this at all. I will need to investigate. Thanks!
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Buff Sent: 11 October 2006 13:29 To: Flashcoders mailing list Subject: Re: [Flashcoders] CacheAsBitmap advice With BitmapData, you can build a BitmapData of your picture, for exemple 1000x600 witch will stay in memory, and will not be displayed. After that, you create another BitmapData witch is only 500x300 for exemple, the size you need for display. Then you draw the first BitmapData in the second with the draw() method, according to a geom.matrix witch describe the translation you need for scroll, and also the zoom. Doing this, your scroll and zoom will be faster. Remember that the cacheAsBitmap property is true by default. May be there isn't difference in you're test because you didn't try to define cacheAsBitmap as false (and only compare default and true, witch is the same thing). I went to your site. It seem's that when we zoom in a picture, this picture is first reduced like 20% and when you zoom, you increase to 100% with a mask. Am'I wrong? In this case, and also for the scroll, you will not realy increase the speed with cacheAsBitmap. But I think you can do much better using BitmapData, scroll(), draw() and flash.geom.matrix in the draw() method. always sorry for my english David Buff ----- Original Message ----- From: "Jason Ross" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Wednesday, October 11, 2006 1:36 PM Subject: RE: [Flashcoders] CacheAsBitmap advice Hi - thank you to both Ian and Ramon. And yes, the pictures are scrolling, but they are contained in movieclips that contain vector data (i.e. to artwork around the photos). See what I mean? Though I take your point as through my experimentation I get the same results whether CacheAsBitmap is turned on or not. Great idea to unload / reload as they come on / off the screen! Will do that one right away. Thank again. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ramon Miguel M. Tayag Sent: 11 October 2006 12:21 To: Flashcoders mailing list Subject: Re: [Flashcoders] CacheAsBitmap advice If you're scrolling pictures, you don't really need to cache as bitmap. It would be best to use it when there's a lot of vector data that bogs the system down when animating. One thing you could do to optimize things is whent he pictures go offscreen, unload them. On 10/11/06, Jason Ross <[EMAIL PROTECTED]> wrote: > Hi, > > I have a photo sharing site that was coded in Flash 6.0 using AS 1.0 of > course. I am in the process of updating all code to AS 2.0 and was > hoping to use CacheAsBitmap to improve the performance. This link > demonstrates a folder on the site with many images: > > http://www.fotoko.com/?str=1N%3D%2A%5C%3BKLP6R%3DT3%5BB%2E1R%0Ast%15 > > Ideally, I would like to speed up things like (which, on a slow PC these > things can run pretty poorly): > > * Scrolling (using the slider on the bottom of the screen) > * Image inflates (when you click an image) > * Animations (when you click 'NEXT / PREVIOUS') > > I know that CacheAsBitmap should be used carefully, which is what I am > struggling on. The site is coded quite well with many nested movie > clips. This is where I struggle to understand where / if I should apply > a CacheAsBitmap command. > > Stage > | > -- ScrollerMC > | > -- Thumbnail > | | > | -- ImageLoaderMC > | | > | -- thumbImageLoaderMC > | -- mainImageLoaderMC > | > -- Thumbnail > | > -- ImageLoaderMC > | > -- thumbImageLoaderMC > -- mainImageLoaderMC > > Any help would be greatly appreciated. > > Jason. > > Legal Disclaimer: > This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. > > Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore "View" does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. > > Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by "View" for any loss or damage in any way arising from its use. > > Any views expressed by the sender of this message are not necessarily those of "View". > _____________________________________________________________________ > This message from View has been checked for all known viruses by the > MessageLabs Virus Control Centre. > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- Ramon Miguel M. Tayag _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _____________________________________________________________________ This incoming message has been checked for all known viruses by the MessageLabs Virus Control Centre. Legal Disclaimer: This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore "View" does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by "View" for any loss or damage in any way arising from its use. Any views expressed by the sender of this message are not necessarily those of "View". _____________________________________________________________________ This message from View has been checked for all known viruses by the MessageLabs Virus Control Centre. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _____________________________________________________________________ This incoming message has been checked for all known viruses by the MessageLabs Virus Control Centre. Legal Disclaimer: This email message (including any attachments) is strictly confidential and is intended only for the person(s) or organisation(s) named above. The unauthorised use, disclosure, distribution and/or copying of the email message, or any information it contains (including any attachments), is strictly prohibited and could in certain circumstances constitute a legal offence. If you are not an intended recipient, please contact the sender immediately by return email and delete the email from your system. Internet email communications are not always secure and may be susceptible to data corruption, interception and unauthorised amendment, and therefore "View" does not accept legal responsibility for the contents of this message for any such corruption, interception or amendment or the consequences thereof nor any delay in its receipt. Although this email message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free. No responsibility is accepted by "View" for any loss or damage in any way arising from its use. Any views expressed by the sender of this message are not necessarily those of "View". _____________________________________________________________________ This message from View has been checked for all known viruses by the MessageLabs Virus Control Centre. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com