localToGlobal problem

I have a litlle problem with localToGlobal command.
I want to convert coordinates of movie clip inside another movie clip to global coordinates, but it seems it doesn’t work.
What am I doing wrong?

[AS]
for (n=0; n<node2.length; n++) {
refposit++;
clip = cont2.attachMovie(“refItem”, “refItem”+n, n+200);
refText = node2[n].attributes.referenca;
if (refText.length>8) {
reference2.refLabel._height = reference2.refLabel._height3;
}
reference2.refLabel.text = refText;
clip._x = 558;
clip._y = n
pomicanje;
clip.onPress=function(){
point = new Object();
point.y=this._y;
localToGlobal(point);
updateAfterEvent;
trace(point.y);
myFunction(point.y);
}[/AS]

:-\ :-\


for (n=0; n<node2.length; n++) {
        refposit++;
        clip = cont2.attachMovie("refItem", "refItem"+n, n+200);
        refText = node2[n].attributes.referenca;
        if (refText.length>8) {
                reference2.refLabel._height = reference2.refLabel._height*3;
        }
        reference2.refLabel.text = refText;
        clip._x = 558;
        clip._y = n*pomicanje;
        clip.onPress=function(){
                point = new Object();
                point.y=this._y;
                localToGlobal(point);
                updateAfterEvent;
                trace(point.y);
                myFunction(point.y);
        }
}

is clip just a movieclip by any chance?

Yes clip is variable containing the name of the movie clip.