Hi everybody, I ran into really strange problem.

Few weeks ago I was playing around with Service+AMFPHP after a short time I could make it work and pull some data from my drupal db to the flash.
Then I lived that job for a while, because was busy with another work.

And now I'm opening this fla again, and I'm getting "Error opening URL "http://localhost/furniture/services/amfphp". Service, AMFPHP, Views, views service, node service are enabled in modules page.

If I'll go to the Error opening URL "http://localhost/furniture/services/amfphp inside of my browser it says that "amfphp and this gateway are installed correctly. You may now connect to this gateway from Flash."

Here is the code I'm using in the flash

import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
import mx.utils.Delegate;
var gatewayUrl:String = "http://localhost/furniture/services/amfphp";
NetDebug.initialize();

// create, position, and set params on three dynamic text fields: status, node-title, and node-body
var tf:TextField = this.createTextField("status", 10, 0, 0, 2000, 2000);
tf.multiline = true;
tf.html = true;

var views:Service = new Service(gatewayUrl, null, 'views', null, null);
var pc:PendingCall = views.getView('promoted');
pc.responder = new RelayResponder(this, "handleGetPromoted", "handleError");

function handleGetPromoted(re:ResultEvent)
{
    var rs:Object = re.result;
    var nCount = rs.length;
    while (nCount--)
    {
        tf.htmlText += rs[nCount].title + "<br/>";
        tf.htmlText += rs[nCount].field_pictures[0].filepath + "<br/><br/>";
    }
}

Comments

jody lynn’s picture

Status: Active » Closed (fixed)

Closed this support request due to its age.

somes’s picture

I have the same issue - there is a compatibility issues some where here - Im on a vista box running XAMMP - php 5.5.6

I been on this for 2 days And cant find the problem - clean installs - clean cache still the same problem not working