Hello peoples, if can help please.


I have image on screen inside of clip, I want split bitmap into squares, at most i can split into columns only, here code
PHP Code:
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;

var 
splits:Number 100;
var 
splitWidth:Number Math.round(imageOnScreen.width splits);
var 
splitHeight:Number Math.round(imageOnScreen.height splits);
var 
newCopy:BitmapData = new BitmapData(imageOnScreen.width,imageOnScreen.height);
newCopy.draw(imageOnScreen);

for (var 
0splitsi++)
{
    
this["bmd" i] = new BitmapData(imageOnScreen.width,imageOnScreen.height,true,0);
    
this["bmd" i].copyPixels(newCopy,new Rectangle(splitWidth,0,splitWidth,imageOnScreen.height), new Point(0,0));
    
this["bm" i] = new Bitmap(this["bmd" i]);
    
addChild(this["bm"+i]);
    
this["bm" i].* (splitWidth 1);
}
// make original image hidden to see copy
imageOnScreen.visible false
Any help is advise for me.
If you can help with making copied file transparent pixel, any help great. thank
here file too