signOnAnonymous() gives a 440 error

2 views
Skip to first unread message

tomeanand

unread,
Nov 4, 2008, 5:48:16 AM11/4/08
to wimas3
Hi there,

I am calling signOnAnonymous() but it gives the 440 error.
Here is my code looks like
I created the dev key also,

var devId:String = "an1-JOoTlcej3iK3";
var session:Session = new Session(this.stage, devId, "WimDevTest", ".
1")
session.addEventListener(SessionEvent.SESSION_STARTING,
onSessionStarting);
session.addEventListener(SessionEvent.SESSION_AUTHENTICATING,
sessionStateChangeEventHandler);
session.signOnAnonymous("AimDevTest");


Is that a must that you should put your app/widget on the URL, we
provide at the time of creating the dev key.
please check this url, i integrated luminicbox debuger/ if you have
flash inspector you can see the error.

Please do correct me if i am not in the right direction

Thanks,
tomeanand

tomeanand

unread,
Nov 4, 2008, 5:53:57 AM11/4/08
to wimas3

tomeanand

unread,
Nov 4, 2008, 6:33:09 AM11/4/08
to wimas3
Hi all,

Now it working.

I think i was on a wrong direction
I was following this way
Previously i had gone to http://developer.aim.com/wimReg.jsp and
registered a key.
Unfortunately that was not working

then I had gone to http://wimzi.aim.com/
created a widget
got the code and got the apiKey from the embed code.
used that api key, then it works.

I dont know is this the right way to get the key
Please correct me if i am wrong

Thanks,
tomeanand

On Nov 4, 3:53 pm, tomeanand <tomean...@gmail.com> wrote:
> putting the urlhttp://tomeanand.googlepages.com/imtest.htm

Rizwan Sattar

unread,
Nov 5, 2008, 7:40:06 PM11/5/08
to wim...@googlegroups.com
Hi tomeanand,

You are correct, and anonymous session (also known as Wimzi) requires a devId from http://wimzi.aim.com . I will make note of this in the comment block of the signOnAnonymous() function.

Also, rather than listen for SESSION_STARTING and SESSION_AUTHENTICATING separately, it is a good idea to register your session for STATE_CHANGED. Then you can query the session's "sessionState" property (it is a type of SessionState enumeration).

session.addEventListener(SessionEvent.STATE_CHANGED, onSessionStateChanged);

protected function onSessionStateChanged(evt:SessionEvent):void
{
    var sessionState:String = session.sessionState;
    switch(sessionState)
    {
        case SessionState.AUTHENTICATING:
        // logic...
        break;
       
        case SessionState.ONLINE:
        // session became online
        break;
       
        case SessionState.OFFLINE:
        // session became offline
        break;
}

Thanks,
Rizwan
Reply all
Reply to author
Forward
0 new messages