Hi all,

I have a (complex) problem with arrays (or perhaps the object itself) in
custom objects loaded from an external swf file. Has anyone ever seen the
following (this is just an example):

I have a clip 'lib' that contains many library objects as swf files 'square',
'triangle' and 'circle' which are set to export for actionscript with the same
name. Each library object has an instance inside it of a custom object which I
will call 'shape_properties', which has an array as one of its properties to
store the length of each side. so lib.square.shape_properties.sides is an
array. There are NO objects on the stage of the lib clip.

The first frame of each clip in 'lib' (like 'square', 'triangle' etc) is like
so:
// First frame of square
this.shape_properties = new classes.shape_property();
shape_properties.push(20,20,20,20);
stop();
// First frame of triangle
this.shape_properties = new classes.shape_property();
shape_properties.push(30,40,30);
stop();

The problem occurs when clip 'lib' is loaded in to another clip (A is a
placeholder):
_root.A.loadMovie('lib.swf');
Now when I use attachMovie to create shapes like this:
_root.A.attachMovie('triangle','newTriangle',100);
_root.A.attachMovie('square','newSquare',101);
And then do a
trace(A.newSquare.shape_properties.sides);
The trace shows that the newSquare.shape_properties.sides array also has the
values of the sides array for the triangle, and visa versa.i.e:
30,40,30,20,20,20,20

Has anybody ever seen this before? I have made sure that the shpae_properties
object is local to each clip in lib, and when I place a square and triangle on
the stage of 'lib' they are fine.

Cheers,
Peter