all groups > flash data integration > july 2005 >
You're in the

flash data integration

group:

flash + php notice board


Re: flash + php notice board LuigiL
7/30/2005 12:00:00 AM
flash data integration: Here is a generic example which you can tweak to your needs.



// results returned from PHP
n=2&item0="<a href='url'>First News</a>"&item1="<a href='url'>Second News</a>"

// ActionScript
//myText is a dynamic textfield on the stage
myText.html=true;

var myNews:LoadVars=new LoadVars();
myNews.onLoad=function(success:Boolean){
if(success){
//clear previous news
myText.htmlText="";
for(var i=0; i<this.n; i++){ // here we use n (this.n) coming from PHP to
limit the loop
myText.htmlText+=this["item"+i] + newline; // all news items on new lines
}
} else {
myText.text="Unable to load the news."
}
};
myNews.load("urltoyourphpfile");
flash + php notice board lwq
7/30/2005 9:05:34 AM
I want to make a small notice board using flash and php where i can display a
certain number of news on my website.. i have not much of problem with the php
+sql end but i not very good at the flash end... can anyone help?
Re: flash + php notice board LuigiL
7/30/2005 9:44:52 AM
Re: flash + php notice board lwq
7/30/2005 12:31:39 PM
AddThis Social Bookmark Button