View Full Version : Dynamic text disappears in localhost

04-17-2009, 09:57 PM
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:

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
_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,


04-19-2009, 09:32 PM
If you are on a localhost, then try putting http://localhost/phpfile.php instead of relative. It has something to do with the file's location, possibly not in the root folder.