I am trying to make a frame arround a pickture that the user uploads useing only 1 image repeating it and scaling it accordingly so that it is as big as it should be in reality arround that picture. My problem is that when I scale the result until some point all is well and than it smears somehow. I’ve been trying to fix this for 6 days now and I am desperate. I am posting the code that I use tho create the frame parts and a picture of the result after I scale it with [COLOR=“Red”]scaleX[/COLOR] and [COLOR="#ff0000"]scaleY[/COLOR].
public class frame_part extends MovieClip {
public function frame_part(duplicationBitmap_org:Bitmap, neede_pcs_num_height:Number, order:String, rotation_num:int) {
super();
for(var i:int = 0; i < neede_pcs_num_height; i++) {
var pc3:Sprite = new Sprite();
var duplicationBitmap_org1:Bitmap = new Bitmap(uplicationBitmap_org.bitmapData);
pc3.addChild(duplicationBitmap_org1);
switch(order) {
case("X"):
pc3.x = i * pc3.height;
break;
case("Y"):
pc3.y = i * pc3.width;
break;
}
pc3.rotation = rotation_num;
}
}
}
If you look at the left of the attached pickture you will see what I mean. Can anyone please help?
P.S. The image that I use for the frame is 400x500 px and is duplicated 208 times.