Hi,
Windows XP
standalone DEBUG flash player 9.0 r115 ---> ERROR
standalone DEBUG flash player 9.0 r151 ---> ERROR
standalone DEBUG flash player 10.0 r12 ---> ERROR
standalone flash player 10.0 r12 ---> ERROR
standalone flash player 9.0 r115 ---> ERROR
i am using COCOMO SWC for flash player 9
here is the code that i use:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"layout="absolute" applicationComplete="init()">
<mx:Script>
<![CDATA[
import com.adobe.rtc.authentication.AdobeHSAuthenticator;
import com.adobe.rtc.events.SessionEvent;
import com.adobe.rtc.pods.simpleChatClasses.SimpleChatModel;
import com.adobe.rtc.session.ConnectSession;
private var _auth : AdobeHSAuthenticator;
private var _session : ConnectSession;
private function init():void{
_auth = new AdobeHSAuthenticator;
_auth.userName = "user_name";
_auth.password = "password";
_session = new ConnectSession;
_session.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE,
syncChange);
_session.addEventListener(SessionEvent.ERROR, sessionError);
_session.authenticator = _auth;
_session.roomURL = "room_url";
info.text+="start cocomo\n";
_session.login();
}
private function sessionError(e : SessionEvent) : void {
info.text+="SESSION ERROR >
"+_session.isSynchronized+"\n";
}
private function syncChange(e : SessionEvent) : void {
info.text+="sync change > "+_session.isSynchronized+"\n";
}
]]>
</mx:Script>
<mx:TextArea x="10" y="10" width="480" height="480"
id="info"/>
</mx:Application>
I compile this code with Flex Builder 3.0.194161
once built, if I run the SWF directly, I get an error
(SessionEvent.ERROR)
the HTML version works properly (ConnectSession syncronized)
when i build an AIR application (air 1.5) with the same code,
application is working correctly inside AIR environement...
best regards
oxmo456