# Array transform

**URL:** https://forum.kirupa.com/t/array-transform/178604
**Category:** Uncategorized
**Created:** [February 12, 2006, 2:20pm UTC](https://forum.kirupa.com/t/array-transform/178604 "2006-02-12T14:20:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![musashi9](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@musashi9](https://forum.kirupa.com/u/musashi9)
#### Post date: [February 12, 2006, 2:20pm UTC](https://forum.kirupa.com/t/array-transform/178604/1 "2006-02-12T14:20:31Z")

</div>

Hi  
i need help with my 3d project  
[http://www.mn001c7645.pwp.blueyonder.co.uk/glenz.html](http://www.mn001c7645.pwp.blueyonder.co.uk/glenz.html)  
as you can see one shap morphs into the other  
i do this by moving each point on its own X,Y,Z individually

if ( pointsArray[5].y \>= -10)  
{  
pointsArray[5].y-=speed2;  
}

ect… for every point ☹

what im asking is would it be possible to use actionscript  
to move all the points at once from one shape to the other in one go

//Shape 1 (x,y,z)  
pointsArray = [  
make3DPoint(0,0,-50), …point[0] shape1  
make3DPoint(0,-20,0),  
make3DPoint(-60,0,-20),  
make3DPoint(0,20,0),  
make3DPoint(0,0,90),  
make3DPoint(60,0,-20),  
make3DPoint(-30,-20,-50),  
make3DPoint(30,-20,-50),  
make3DPoint(30,-20,50),  
make3DPoint(-30,-20,50),  
make3DPoint(-30,20,-50),  
make3DPoint(30,20,-50),  
make3DPoint(30,20,50),  
make3DPoint(-30,20,50)  
];

//Shape 2 (x,y,z)  
pointsArray = [  
make3DPoint(0,0,-90),…point[0] shape2  
make3DPoint(0,-90,0),  
make3DPoint(-90,0,0),  
make3DPoint(0,90,0),  
make3DPoint(0,0,90),  
make3DPoint(90,0,0),  
make3DPoint(-50,-50,-50),  
make3DPoint(50,-50,-50),  
make3DPoint(50,-50,50),  
make3DPoint(-50,-50,50),  
make3DPoint(-50,50,-50),  
make3DPoint(50,50,-50),  
make3DPoint(50,50,50),  
make3DPoint(-50,50,50)  
];

for example i want …point[0] in shape1 to ++ or – whichever it needs to get to the values in …point[0] in shape2  
and so on for the rest of the points…
