# Dynamic banner-Actionscript+PHP?!

**URL:** https://forum.kirupa.com/t/dynamic-banner-actionscript-php/198586
**Category:** flash
**Created:** [August 26, 2006, 12:37pm UTC](https://forum.kirupa.com/t/dynamic-banner-actionscript-php/198586 "2006-08-26T12:37:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![meve](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@meve](https://forum.kirupa.com/u/meve)
#### Post date: [August 26, 2006, 12:37pm UTC](https://forum.kirupa.com/t/dynamic-banner-actionscript-php/198586/1 "2006-08-26T12:37:13Z")

</div>

Ok I’m not good with action script and I need serious help real fast. Basically what I need to do is build a banner that dynamically recieves its content from the php shown below. I have the actionscript but don’t know how to go about implimenting it. I need to be able to animate things like the title which would be displayed on buttons.

PHP reads something like this:

> 

title1=New+Web+Site&summary1=Welcome+to+our+new+web+site%21+%21&url1=http%3A%2F%[2Fwww.something.com](http://2Fwww.something.com)%2Fnews.php&imgurl1=http%3A%2F%2Fwww.funpic.hu%2Ffiles%2Fpics%2F00029%2F00029651.jpg&title2=Online&summary2=summary+blah+blah+…&url2=http%3A%2F%[2Fwww.something.com](http://2Fwww.something.com)%2Fcms%2Findex.php%3Fid%3D705&imgurl2=https%3A%2F%2Fsecuresomething.com.php&title3=yadda+yadda&summary3=blah+blah+blah±&url3=http%3A%2F%[2Fwww.something.com](http://2Fwww.something.com)%2Fcms%2Findex.php%3Fid%3D700&imgurl3=https%3A%2F%2Fsecure.somewhere.php&title4=Security&summary4=blah+blah+blah…&url4=http%3A%2F%[2Fwww.something.com](http://2Fwww.something.com)%2Fcms%2Findex.php%3Fid%3D700&imgurl4=https%3A%2F%2Fsomething.php

Actionscript:

> 

/\* first create a new instance of the LoadVars object \*/  
myVars = new LoadVars();  
// call the load method to load my php page  
myVars.load(“[http://thephp.php](http://www.centenarycollege.edu/flash_movie_data.php)”);  
// load the variables  
myVars.onLoad = function( success ){  
// we successfully loaded the variables  
if(success){  
// assign our object’s values to global variables  
title1 = myVars.title1;  
summary1 = myVars.summary1;  
url1 = “\<a href="” + myVars.url1 + “"\>More\</a\>”;  
imgurl1 = myVars.imgurl2;  
title2 = myVars.title2;  
summary2 = myVars.summary2;  
url2 = myVars.url2;  
imgurl2 = myVars.imgurl2;  
title3 = myVars.title3;  
summary3 = myVars.summary3;  
url3 = myVars.url3;  
imgurl3 = myVars.imgurl3;  
title4 = myVars.title4;  
summary4 = myVars.summary4;  
url4 = myVars.url4;  
imgurl4 = myVars.imgurl4;  
// debugging info  
//for( var prop in this ) {  
// trace (" key " + prop + " = " + this[prop]);  
//}  
// damn! our variables didn’t load! display an error!  
} else {  
trace(“Error loading page”);  
}  
}
