abhishek_c2
04-17-2009, 08:57 PM
Hi,
I have a rather strange issue here. My flash contains a dynamic text field, which is populated from a PHP file using LoadVars. Here is how my ActionScript looks like:
//=================================
// INIT
//=================================
path = "";//declare path to php files
lvOut = new LoadVars();//create lv object
lvIn = new LoadVars();//create lv object
lvIn.onLoad = function(success) {
if (success) {
//PHP variable value to textbox
//trace("success");
_level0.menu1.menu1 = "<a href='" + lvIn.url1 + "'>" + lvIn.title1 + "</a>";
}
};
//get results returned to lvIn
lvOut.sendAndLoad(path + "createMenu.php",lvIn,"POST");
When I publish this flash and keep the php file at the same location as the swf, everything works fine. However the moment I add this flash to the website that I am developing in my localhost, the text disappears, although the background animation works fine. I doubly checked the location of the php file and its path in flash, but with no luck.
Any help would be fantastic :)
Thanks in advance,
Abi.
I have a rather strange issue here. My flash contains a dynamic text field, which is populated from a PHP file using LoadVars. Here is how my ActionScript looks like:
//=================================
// INIT
//=================================
path = "";//declare path to php files
lvOut = new LoadVars();//create lv object
lvIn = new LoadVars();//create lv object
lvIn.onLoad = function(success) {
if (success) {
//PHP variable value to textbox
//trace("success");
_level0.menu1.menu1 = "<a href='" + lvIn.url1 + "'>" + lvIn.title1 + "</a>";
}
};
//get results returned to lvIn
lvOut.sendAndLoad(path + "createMenu.php",lvIn,"POST");
When I publish this flash and keep the php file at the same location as the swf, everything works fine. However the moment I add this flash to the website that I am developing in my localhost, the text disappears, although the background animation works fine. I doubly checked the location of the php file and its path in flash, but with no luck.
Any help would be fantastic :)
Thanks in advance,
Abi.