Isometric Grid Help

I’m trying to dynamically draw out an isometric grid but I’m hitting a few problems, currently I’m using a matrix transformation to get the grid to look more isometric that tile based but it has it’s problems so I want to add the grid with out using the matrix transformations.

currently I have…


for (var X = 0; X < gridWidth; X ++)
{
for (var Y = 0; Y < gridHeight; Y ++)
{
var cell:MovieClip = new MovieClip(X, Y, gridWidth, gridHeight);
}
}

I tried to draw it out using Sin ,Cos and Tan functions to try to set the coordinates but it didn’t behave like I had expected,

Thanks alot