# Please please help! urgent deadline

**URL:** <https://forum.kirupa.com/t/please-please-help-urgent-deadline/221647>\
**Category:** Uncategorized\
**Created:** [April 5, 2007, 11:01pm UTC](https://forum.kirupa.com/t/please-please-help-urgent-deadline/221647 "2007-04-05T23:01:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![italicfountain](https://avatars.discourse-cdn.com/v4/letter/i/8491ac/32.png) [@italicfountain](https://forum.kirupa.com/u/italicfountain)\
**Post date:** [April 5, 2007, 11:01pm UTC](https://forum.kirupa.com/t/please-please-help-urgent-deadline/221647/1 "2007-04-05T23:01:45Z")

</div>

I have been trying to solve the following problem for ages and I just can’t get my code work. Any help is much appreciated!

I have the following LoadVars…

identifier = new LoadVars();  
var aIdentifier:Array = new Array;  
identifier.onLoad = function() {  
aIdentifier.push([this.pin\_type, this.pin\_title, this.pin\_x, this.pin\_y, this.pin\_link]);  
for(var i:Number = 0; i \< aIdentifier.length; i++) {  
trace(aIdentifier\*[0]);  
trace(aIdentifier\*[1]);  
trace(aIdentifier\*[2]);  
trace(aIdentifier\*[3]);  
trace(aIdentifier\*[4]);  
}  
}  
identifier.load(“getValues.php?name=value”); //The URL is defined elsewhere in the script

This all works fine i.e. each trace() outputs the code I’m expecting. The problem is that I need to access the values in the array aIdentifier inside another movieclip. When I try a trace() ouside the function I get ‘undefined’.

In the other movieclip I have the following code that needs the values from aIdentifier …

for(var i:Number = 0; i \< aIdentifier.length; i++) {  
var nextDepth:Number = \_root.getNextHighestDepth();  
\_root.attachMovie(“pinAreaOriginal”, “pin”+aIdentifier\*[0]+i, nextDepth);  
\_root.pinArea.\_x = trace(aIdentifier\*[3]);  
\_root.pinArea.\_y = trace(aIdentifier\*[4]);  
}

Thank you in advance.
