Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Thanked 0 Times in 0 Posts

    Dynamic text disappears in localhost

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

    Last edited by abhishek_c2; 04-17-2009 at 09:59 PM. Reason: Spelling mistake in title

  2. #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Thanked 238 Times in 229 Posts
    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.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts