8 Replies Last post: Jan 30, 2006 10:54 PM by Christopher Haupt  
priya   7 posts since
Dec 22, 2005
Currently Being Moderated

Dec 22, 2005 6:33 AM

how to start XIFF.example+actionscript

How to start XIFFExample.fla,I compile the file and i got only XIFFExample.swf

there i view only output  window like chatting output window,chat text window

and so on.What is the procedure to develop IM further.

 

In XIFFExample Roaster,room actionscript are included i go through it,What is

goinig to be the next.

Christopher Haupt Bronze 9 posts since
Jan 9, 2006
Currently Being Moderated
Jan 9, 2006 1:10 AM in response to: priya
Re: how to start XIFF.example+actionscript

I just tried this out myself. Note to test out the example and see it work, you''ll need to tweak the hardcoded settings for the account and chat room being used. For my local tests, I set up a copy of wildfire on another machine.

 

See my post in the best settings thread (http://www.jivesoftware.org/community/thread.jspa?threadID=17202&tstart=0) about your security settings. That one stumped me for a little while (newbie flash person here).

 

One you get it running, it is pretty straightforward to intercept the messages coming through the handlers and manipulate them. Watch the xml stream in the output window to make sure things are flowing. After that, the sky is the limit.

 

-c

Christopher Haupt Bronze 9 posts since
Jan 9, 2006
Currently Being Moderated
Jan 23, 2006 9:57 PM in response to: priya
Re: how to start XIFF.example+actionscript

I haven''t see a problem specifically with data not appearing...but I''m now using some of my own code. Do you specifically mean your text or incoming text from another user?

 

Have you had luck trying to use the other AS files? Try RosterTest.as (see instructions at the top of that file for what components you need). After adjusting it to use your credentials, do you see a Roster? If you are getting anything in the Flash output panel, what does it say? See my other post for some other things to check.

 

-c

 

Message was edited by:

        chaupt

Christopher Haupt Bronze 9 posts since
Jan 9, 2006
Currently Being Moderated
Jan 28, 2006 7:11 PM in response to: priya
Re: how to start XIFF.example+actionscript

Just trying to clarify, are you asking how to create a flash document that shows both a "regular" roster on screen at the same time as a "conference room" roster?

Christopher Haupt Bronze 9 posts since
Jan 9, 2006
Currently Being Moderated
Jan 30, 2006 10:54 PM in response to: priya
Re: how to start XIFF.example+actionscript

OK, I see my misunderstanding in your question. The roster in ConferenceTest.as and the roster in RosterTest.as are two different entities. In ConferenceTest.as, you see the roster of the specific mult-user chat/chat room, which only shows those users that have joined that specific group chat session. This isn''t the same as your "buddy list"/comprehensive subscription list of users that you have associated with your account. In fact it can be orthogonal to that list.

 

If you have ConferenceTest.as running, you will only see other people in that list if they join the same conference room.

 

One good way to test this is to run the sample (changing the hardcoded values) and point to an existing chat room you have set up with another client. Join that room with one account from the Flash file and yourself or a friend join that room with a different client. You should then see yourself and the other person the chat room "roster". Multiple people can join that conference, unlike other "normal" chat message sessions, which are 1:1.

 

Try this experiment out and see if you see the other user in the SWF roster, and if you see your account being used in the flash client in the other client. This will ascertain you are connecting correctly.

 

Then try the sending of text from both clients...

 

You should get an xmpp/jabber stream of XML in your output window too when running in the Flash IDE. If you don''t see anything in the client, look at that to make sure you are getting info back and forth with the server.

 

If you are still stuck, perhaps you can post a snippet of the XML stream up to when you send some text.

 

-c

More Like This

  • Retrieving data ...