Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
FranMalaga #1
FMS3 AS2 to AS3 SharedObject Problem
Hello. I'm migrating a flash application writen with AS2 and working fine to
AS3. The flash connects to a Flash Media Server 3 but I don't think it was the
problem. I'm in a problem that I can't resolve and I don't get more information
about it.
The code I want to migrate writen is:
server-side:
application.users_so.send("msgFromServer", "messageTXT");
client-side (AS2):
users_so=SharedObject.getRemote("users_so",connect ion.uri,false);
users_so.connect(connection);
users.so.msgFromServer = function (msg) { trace(msg);};
But... how can I do that with AS3?
That line users.so.msgFromServer = function (msg) { trace(msg);}; works
perfectly using AS2 but no with AS3. I get the run-time error #2095 was unable
to invoke callback. I can't find information about resolve this with AS3 code.
Please, can anyone help me?.
Thansk!
FranMalaga Guest
-
Problem porting app from FMS2 to FMS3
Hi all, I've been trying to port a flex app from FMS2 to FMS3 and I'm having a huge issue. It is a video conferencing app and it works just fine... -
FMS3 and FCS Connection
HI I got an issue of FCS crash when FCS is connected with FMS3 and got an error of bad network data in FCS. FCS error text is given below: "Bad... -
connectionError With FMS3 Out-Of-Box VOD Example
I'm new to FMS. When I try the out-of-the-box VOD example on FMS3 I consistently receive a connectionError on the client side. The video does... -
FMS3 and MS SQL 2005
Do anyone know if there is any concern if I install FMS3 and MS SQL 2005 on the same server. many thanks for any advise. -
Access to FMS3
Hi, How can I have access to FMS3. I need urgentely to test the SIP features, ie, route incoming audio from a Flash Player to a SIP server... -
YimTszLing #2
Re: FMS3 AS2 to AS3 SharedObject Problem
hi FranMalaga, please try the below for AS3:
users_so=SharedObject.getRemote("users_so",connect ion.uri,false);
users_so.connect(connection);
users_so.client=this; // added code
your "users.so.msgFromServer" should be "users_so.msgFromServer", a typo I
think.
YimTszLing Guest
-
FranMalaga #3
Re: FMS3 AS2 to AS3 SharedObject Problem
Thanks YimTszLing. I't works!!! The result code was:
function connectStream() {
remoteUsers = SharedObject.getRemote("users_so",connection.uri,f alse);
remoteUsers.connect(connection);
remoteUsers.client=this;
}
function msgFromSrvr (msg:String)
{
trace(msg);
}
Thanks a lot!
FranMalaga Guest
-
Raju_Adobe #4
Re: FMS3 AS2 to AS3 SharedObject Problem
Hey please paste here full code .....i m also in same problem ..:(
Raju_Adobe Guest
-
FranMalaga #5
Re: FMS3 AS2 to AS3 SharedObject Problem
Hi! The code I have:
var connection = new NetConnection();
connection.client = this;
connection.connect("rtmp://192.168.1.3/chat/room", "userName");
var remoteUsers = new SharedObject();
remoteUsers = SharedObject.getRemote("users_so",connection.uri,f alse);
remoteUsers.connect(connection);
remoteUsers.client=this;
function msgFromSrvr (msg:String) { trace(msg); };
In the server-side I wrote the next code:
application.onAppStart = function () { application.users_so =
SharedObject.get("users_so",false); }
application.onConnect = function (userName) {
application.users_so.send("msgFromSrvr","message_t xt"); }
FranMalaga Guest



Reply With Quote

