Issues with with() block

In the code I’m writing, I use a with block to reference a newly created object thus:

with ( ArrowL.duplicateMovieClip ( "ArrowL" + i , -500 + i , ArrowL ) )

The with command works great, and I set its _x, its _y and stuff. Then I parse an XML object and put the result into a variable (still in the with block). The variable (xot), however, isn’t registering as part of the newly created object, but instead settles down under _root!

I tried doing this.xot, xot, and other stuff, but it just keeps sliding under _root.xot instead of ArrowL##.xot.

Heeeelp?

Thanks!

try this instead:

Object = ArrowL.duplicateMovieClip(parameters, blablablablabla);
Object.xot = new XML();
Object.xot.load(“xml file”);
Object._x = 0; // whatever
Object._y = 0; // whatever

works better then the With stuff… but if you really want to use the With:

With(object){
this.xot = new XML();
this.xot.load(“xmlfile”);
}

Yeah, that’s exactly my problem… when I write the above code, it doesn’t create the xot XML data under object, instead it creates it under _root.

It would be very difficult at this stage to change the with tags, so do you have any other suggestions? Thanks.