Help with Undefined Variable problem!

Hi!

I’m working on a photogallery and I’m using xml to load names, images…
the problem is: I want a button to open a new browser window but something is wrong with the variable, I think it is because of the function, but still don’t know how to solve it…

Would appreciate very much any comment or help :smiley:
Here’s where I think the problem is:

[AS]
this.onEnterFrame = function() {
var bytes_loaded = holder.boton.getBytesLoaded();
var bytes_total = holder.boton.getBytesTotal();
var percent_loaded = Math.round((bytes_loaded/bytes_total)*100);
_root.txt_mc.name.text = percent_loaded+" %";
if (percent_loaded == 100) {
holder._alpha += 10;
if (holder._alpha>=98) {
holder._alpha = 100;
_root.txt_mc.name.text = this.title;
trace (this.link) /////when I trace this.link it works////
_root.txt_mc.onRelease = function() {
getURL(_root.link, “_blank”);
};
holder.onRelease = unloadImage;
delete this.onEnterFrame;
}
}
};
[/AS]
Thanks in Advanced!