If you are using Flash 8+ you could use the Bitmapdata datatype to copy it to a new movieclip and scale it to thumbnail size I think.
On 8/23/07, Alan MacDougall <[EMAIL PROTECTED]> wrote: > > julian atienza wrote: > > To avoid loading twice times the image (first in 100% and second in > > "thumbnail" navigation image) ... how could i copy content of first > > movieclip to second one with fixed size > I did something similar to this while trying to implement my own > Bitmap-based magnifying glass (following this example by Grant Skinner: > http://www.gskinner.com/blog/archives/2005/09/flash_8_bluepri.html). You > can use a single MovieClip as the source for as many individual bitmaps > as you want, limited only by your CPU power. Look up the basics of > attaching bitmaps and using BitmapData.draw -- that's all readily > available in the manuals and tutorials. Then just create two bitmaps > attached to two movieclips, and do this: > > // assume that source is the MovieClip containing the original image > var matrix:Matrix; > var normalScale:Number = 1.0; > var thumbScale:Number = 0.25; > > // draw to the bitmap at the normal scale > matrix = source.transform.matrix; > matrix.scale(normalScale, normalScale); > normalBitmap.draw(source, matrix); > > // draw to the bitmap at the thumbnail scale > matrix = source.transform.matrix; > matrix.scale(thumbScale, thumbScale); > thumbBitmap.draw(source, matrix); > > Now the normalBitmap (a BitmapData object) has your image at full size, > and thumbBitmap has the image at 1/4 size. > > _______________________________________________ > [email protected] > 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 > _______________________________________________ [email protected] 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

