# Loadvars + split string into array problem

**URL:** <https://forum.kirupa.com/t/loadvars-split-string-into-array-problem/53307>\
**Category:** Uncategorized\
**Created:** [June 2, 2004, 10:52am UTC](https://forum.kirupa.com/t/loadvars-split-string-into-array-problem/53307 "2004-06-02T10:52:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beforedawn](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@beforedawn](https://forum.kirupa.com/u/beforedawn)\
**Post date:** [June 2, 2004, 10:52am UTC](https://forum.kirupa.com/t/loadvars-split-string-into-array-problem/53307/1 "2004-06-02T10:52:57Z")

</div>

Hi,

can someone please teel me hwat is wrong with this:  
myLoadVars = new LoadVars();  
myLoadVars.load(“loadImages.php”);  
pic\_arr = new Array();  
myLoadVars.onLoad = function (success) {  
trace(‘loaded’);  
if (success) {  
trace(photoUrl);  
pic\_arr = this.photoUrl.split(",");  
trace('first url:’+ pic\_arr[0]);  
}  
};

the output of the php file is:

photoUrl=images/slideshow/disk.jpg,images/slideshow/candle.jpg

the last two traces provide no ouput and are undefined, can’t see the problem.

thanks

ash
