Out of memory

I was attempting to have 3d rotating shapes in my clip but i encountered a lack of memory problem.

One shape had 17 points ( all arrays containing 5 values, mainly x, y, z, sx, sy )
While trying to rotate this shape in 3D, i get an error saying that the script has a problem regarding memory.
So i downsize little by little until it works and i only have 4 points left for my shape, just that one shape…
I wonder if using arrays is part of the problem or is flash just not strong enough. Or maybe…

jtax