# Perspective resize movieclip

**URL:** https://forum.kirupa.com/t/perspective-resize-movieclip/165677
**Category:** Uncategorized
**Created:** [October 13, 2005, 2:30am UTC](https://forum.kirupa.com/t/perspective-resize-movieclip/165677 "2005-10-13T02:30:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ibliz](https://avatars.discourse-cdn.com/v4/letter/i/85e7bf/32.png) [@ibliz](https://forum.kirupa.com/u/ibliz)
#### Post date: [October 13, 2005, 2:30am UTC](https://forum.kirupa.com/t/perspective-resize-movieclip/165677/1 "2005-10-13T02:30:52Z")

</div>

hi dudes,  
i made flash application interior simulation  
i used tile duplicated background for the floor movieclip  
but now the floor looks flat i need to resize it perspectively using actionscript  
anyone knows how to do it?

here is the action:

getbigPhoto=function(sname){

if(deep!=undefined){  
for (i=0; i\<deep; i++){  
\_root.photo[“bg”+deep].removeMovieClip();  
}  
}

childWidth = 38;  
childheight = 38;

MaxRow = math.round(450/childWidth);[//Math.round](https://Math.round)(\_root.photo.\_width/childWidth);  
MaxCol = math.round(191/childheight);[//Math.round](https://Math.round)(\_root.photo.\_height/childheight);  
deep=0;  
for (x=0; x\<MaxRow; x++) {  
for (y=0; y\<MaxCol; y++) {  
bg = \_root.photo.createEmptyMovieClip(“bg”+deep,deep);  
bg.loadMovie(pathThumb+sname);  
bg.\_x = childWidth_x;  
bg.\_y = childheight_y;  
deep++;  
}  
}  
}  
getbigPhoto(“floor1.jpg”)
