Breaking apart a jpeg image

hi everyone
here is a challenge for all of you since i can’t figure out a way to do this…

The thing is:

1-I have a jpeg image that i’ve imported to flash
2- I break it apart using CTRL-B twice
3-I want to cut that image in several pieces and convert those pieces into to movieclips so that i can animate each one alone
4-I make this manually using the selection tool and going thru the process of pressing F8 each time in each piece

5- What i 'd like to know is if is there anyway to do this using actionscript?

so can i,turn a jpeg image to a shape,divide it into several pieces and convert each piece to a movieclip using actionscript?

if anyone can help i’d appreciate that

I have been trying to figure this out myself but not found anything to suggest its possible yet…

What i have had to do where i needed to do this was load the image and use a mask to select the top left square say…
Then make that a movie clip and use actionscript to duplicate it for however many squares needed. Inside the actionscript when duplicating you can then move the mask around depending on the number of the square… Its very processor intensive though and not really recommended. If you were only going to do it for one image i would suggest that you do it manually, if you are going to to do it for lots of images then its still probably only recommended for smaller images, because flash just eats ur CPU…

If you do find any additional information or methods of doing this i would like to hear, so please poist them on this thread…

Thanks,

Dravos

see this

http://24.141.60.208/tutorial3.swf

the image was a single jpeg and i chopped it using actionscript. it’s pretty simple with dynamic masks. look up ‘MovieClip.setMask()’ in your AS dictionary… :slight_smile:

here’s the source file, although it’s kind of messy and uncommented

http://24.141.60.208/tutorial3.fla