# Shouldn't this be working?

**URL:** <https://forum.kirupa.com/t/shouldnt-this-be-working/223206>\
**Category:** flash\
**Created:** [April 20, 2007, 9:21am UTC](https://forum.kirupa.com/t/shouldnt-this-be-working/223206 "2007-04-20T09:21:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [April 20, 2007, 9:21am UTC](https://forum.kirupa.com/t/shouldnt-this-be-working/223206/1 "2007-04-20T09:21:26Z")

</div>

I’m using this script by referring to Scotty’s freesource, anyways, here’s the script:

[AS]  
var cur1;  
var lArray = new Array();  
var stringer:String = lArray[picl];  
MovieClip.prototype.getlink = function(pic1) {  
pic1 = cur1;  
getURL(stringer, “\_new”);  
};  
btn2.onPress = function() {  
getlink(2);  
};  
var gallery\_xml = new XML();  
gallery\_xml.ignoreWhite = true;  
gallery\_xml.onLoad = function(success) {  
if (success) {  
var gallery = this.firstChild;  
trace(gallery.childNodes.length);  
for (var i = 0; i\<gallery.childNodes.length; i++) {  
lArray.push(gallery.childNodes\*.attributes.link);  
}  
containerMC.getlink(0);  
} else {  
title\_txt.text = “Error!”;  
}  
};  
[/AS]

shouldn’t it be working?

help plsss
