# XML and Flash doubt : getURL from Array

**URL:** <https://forum.kirupa.com/t/xml-and-flash-doubt-geturl-from-array/203596>\
**Category:** flash\
**Created:** [October 12, 2006, 10:58am UTC](https://forum.kirupa.com/t/xml-and-flash-doubt-geturl-from-array/203596 "2006-10-12T10:58:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parchow](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@parchow](https://forum.kirupa.com/u/parchow)\
**Post date:** [October 12, 2006, 10:58am UTC](https://forum.kirupa.com/t/xml-and-flash-doubt-geturl-from-array/203596/1 "2006-10-12T10:58:51Z")

</div>

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?
