PDA

View Full Version : split photo into movieclips



rafnews
January 29th, 2008, 02:45 AM
Hi,

i have a photo (jpeg, png, gif, ...) and i would like to split it into "cubes".
each cube will be a movieclip and should have a pre-defined size (e.g. 50 x 50 px).

i already know how to do the array and how to use the movieclips later on, but i do not know :

how to split the photo and store the region into a movieclip.

thanks a lot for your help,

A.

ajcates
January 29th, 2008, 02:56 AM
Look into the bitmapdata class.

rafnews
January 29th, 2008, 07:45 AM
as my photos are stored into Flash file as movieclips (1 phot = 1 movieclip)... maybe there is a easy way to split the movieclip into several movieclips ?