How to trace coordinates of attached movieClip?

[CS3/AS2]

Hi.

If I attach a movieClip this way:


_root.attachMovie("object"+i,"object"+i,i,{_x:_root.objectx*, _y:_root.objecty*});

How do I trace its x and y coordinates?

I tried (and many other ways):


trace(_root["object"+i]._x);

It doesn’t show any error but the result is undefined.

The important part of the whole code is this:


for (i=0; i<_root.objects.length; i++) {
    if (_root.objects* == 0) {
        if (_root.objectsframe* == _root._currentframe) {
           _root.objects* = 1;
           _root.attachMovie("object"+i,"object"+i,i,{_x:_root.objectx*, _y:_root.objecty*});
           trace("puts object "+i);
           trace("at frame "+_root._currentframe);
        }
    }
}

Thanks for any help.