# Flash + PHP LoadVars Array

**URL:** https://forum.kirupa.com/t/flash-php-loadvars-array/73552
**Category:** flash
**Created:** [December 17, 2004, 4:18pm UTC](https://forum.kirupa.com/t/flash-php-loadvars-array/73552 "2004-12-17T16:18:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nixon](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nixon](https://forum.kirupa.com/u/nixon)
#### Post date: [December 17, 2004, 4:18pm UTC](https://forum.kirupa.com/t/flash-php-loadvars-array/73552/1 "2004-12-17T16:18:32Z")

</div>

Hi everyone one…I’m stuck. I want to load headlines that are linked to URL(s) into my flash movie where the dynamic txt box(tickertxt) is here:

\_root.scroll.scrollbox.tickertxt

I am working along with my programmer and he built php page that says:

num=1&url1=ticker.php%3Fid%3D1&headline1=Test

here is my actionscript. I cannot get it work:

newsItems=new Array();  
myVars = new LoadVars();  
myVars.load(“ticker.php?flash”);  
function () {  
for (x=1; x\<total;x++){  
newsItems[x]=new Array();  
var what=“url”+x;  
newsItems[x][0]=myVars.what;  
what=“headline”+x;  
newsItems[x][0]=myVars.what;  
}  
for(x=1;x\<total;x++){  
newsItems[x][1]+"\<a href=""+newsItems[x][0]+ “”\>Click here for more\</a\>";  
}  
}

What is wrong?? Flash shows no errors. Frustrated.

Any help??
