views:

135

answers:

1

Hi, I'm using this code to connect Flash CS5 to WebORB:

import flash.display.*;
import fl.events.*;
import flash.events.NetStatusEvent;
import flash.net.*;
import flash.utils.*;
import fl.transitions.*;
//
var connection:NetConnection;
//
function initORB(){
var gateway:String = "http://www.domain.com/weborb30/console/weborb.aspx";
connection=new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.connect(gateway);
}
//
function netStatusHandler(e:NetStatusEvent)
{
    trace("status entered");
}
initORB();

The strange thing is that:

  1. the netStatusHandler function NEVER gets called;
  2. but I can call any orb exposed method (that's not possible if Flash and WebORB are not connected);

The fact is that I want to know if the client is connected too.

Regards, Loto

A: 

Hi, I discovered what it was: this API only works with Flash Media Server over RTMP, not HTTP. So, being Flash Remoting over HTTP it does not. Anyway, I think Adobe docs are very confusing here...

Loto