PDA

View Full Version : break apart an image and or movie clip into pieces



wuzzi2ya
December 9th, 2008, 01:00 PM
I am looking for an effect such as in this link. I would deconstruct this one, yet I cant unzip it... Any help is appreciated. If someone knows of a better way to achieve this effect, I would be very interested...

http://www.lemlinh.com/flash-source-image-explode/

It is to resemble a concrete wall falling on CLICK...

Thanks again...

wuzzi2ya
December 9th, 2008, 02:20 PM
Nobody?

creatify
December 9th, 2008, 04:05 PM
If you have an image, you can "cut" parts of that image and draw them to other sprites or movieclips you create. Look into bitmap (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Bitmap.html) and bitmapdata (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html) - both words link to appropriate livedocs pages.

It's going to get trickier if you want irregular shapes. You'd then have to draw masks or shapes using the drawing API and fill portions of your image using beginBitmapFill() (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Graphics.html#beginBitmapFill());

user sekasi has posted a similar effect on his blog - see here (http://www.erikhallander.com/blog/2008/bitmapvector-into-firefly-particles-as30.html)

wuzzi2ya
December 9th, 2008, 05:58 PM
Hmmm... I was afraid that may end up being the case. Okay, well thanks for the hints and links.