XML and Flash doubt : getURL from Array

myClip.[COLOR=RoyalBlue]onRelease[/COLOR] = [COLOR=RoyalBlue]function/COLOR {
[COLOR=RoyalBlue] getURL/COLOR
};

trace (gArray[cur]) returns “mycurrentpicture.jpg”

** gArray** defines the colection of picture paths loaded from a XML file
** cur** defines the current loaded picture path from the thumbArray
** “javascript:Open”** opens a PopUp html window with predefined size.

I want the popUp to show “mycurrentpicture.jpg” but it doesn´t It tries to open “gArray[cur]”

How do I get this to work? Can anyone please help me?