# \[FMX04\] Dynamic ISOMETRY

**URL:** <https://forum.kirupa.com/t/fmx04-dynamic-isometry/45995>\
**Category:** flash\
**Created:** [March 19, 2004, 10:39pm UTC](https://forum.kirupa.com/t/fmx04-dynamic-isometry/45995 "2004-03-19T22:39:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cookie](https://avatars.discourse-cdn.com/v4/letter/c/d26b3c/32.png) [@cookie](https://forum.kirupa.com/u/cookie)\
**Post date:** [March 19, 2004, 10:39pm UTC](https://forum.kirupa.com/t/fmx04-dynamic-isometry/45995/1 "2004-03-19T22:39:36Z")

</div>

OK I have followed Sen’s iso dynamic grid creation tutorial and basic iso movement, but know I’m trying to combine the two making the placement of the object which will be controlled on the grid also dynamically through AS.

This is the code for the dynamic grid creation:

[AS]  
spacing=10;  
depth=0;  
this.createEmptyMovieClip(“isoPlane”,0);  
for(x=0;x\<5;x++){  
for(y=0;y\<5;y++){  
isoTile=isoPlane.attachMovie(“isoTile”,“isoTile”+depth,depth++);  
isoTile.\_x=spacing\*(x+y);  
isoTile.\_y=spacing/2\*(x-y);  
isoTile.x=x;  
isoTile.y=y;  
}  
}  
[/AS]  
OK now I want to add a library item with linkage ID isoObject to isoPlane so that I can later write the code for the movement along the plane.

[AS]  
//dynamic grid creation  
spacing=10;  
depth=0;  
this.createEmptyMovieClip(“isoPlane”,0);  
for(x=0;x\<5;x++){  
for(y=0;y\<5;y++){  
isoTile=isoPlane.attachMovie(“isoTile”,“isoTile”+depth,depth++);  
isoTile.\_x=spacing\*(x+y);  
isoTile.\_y=spacing/2\*(x-y);  
isoTile.x=x;  
isoTile.y=y;  
}  
}

//isoObject attached to isoPlane  
isoPlane.attachMovie(“isoObject”,“isoObject”+depth,depth++);  
[/AS]

Ok it does attach to isoPlane, but I don’t know how to reference to the isoObject in my movement script!

In Sen’s tutorial on iso movement this is the setup using MC:

STAGE  
isoPlane  
isoObject  
actionscript

IE: the isoObject is within the isoPlane, and so is the AS controlling the movement!

Is my approach correct using AS to place the MC from the library?

=)
