9 Replies Latest reply on Jun 29, 2012 1:30 PM by lingogirl

    URLLoader breaks with an absolute path


      I call a php program from my Flash AS3 movie. So long as I use a relative path it works fine. If I change it to an absolute path, it breaks. This Flash file is destined to be an app, so I know have to use an absolute path. Any thoughts? Here's my code, below with the relative path shown in red. If I change that to a full path it breaks. Full path is http://www.parallaxdesigngroup.com/gg/dictTestDropDown/php/controlpanel.php


      function processLogin ():void


      var phpVars:URLVariables = new URLVariables();

      var phpFileRequest:URLRequest = new URLRequest("php/controlpanel.php");


      phpFileRequest.method = URLRequestMethod.POST;

      phpFileRequest.data = phpVars;

      var phpLoader:URLLoader = new URLLoader();

      phpLoader.dataFormat = URLLoaderDataFormat.VARIABLES;  

      phpLoader.addEventListener(Event.COMPLETE, showResult);


      phpVars.systemCall = "checkLogin";

      phpVars.term     = term.text;