powered by Jive Software

Trying to test XIFF, need so advices

Hi,

I’'m just curious to try this. So, what exactly do i have to edit to be able to connect to my

local JM server? I’‘m trying to edit xmpp example.fla, but getting errors while publishing swf. I can post this errors, but maybe i’'m just doing something wrong.

And Barry have promised to put link to crossdomain.xml here:)

Wroot - so, running flash from the browser requires you to use the same servername as the name of server…so that was too confusing. Here’'s an example of my configuration:

Jive Messenger server name: Barry

My Computer Name: Barry

In my browser, i use the following URL: http://barry/flashclient/xmppexample.html

if you use http://localhost/flashclient/xmppexample.html it won’'t work because of a flash sandbox security issue. It thinks that it has to cross domains and therefore to get around that, you need the a crossdomain.xml:

Create a “crossdomain.xml” file with the following code;

<?xml version="1.0"?>

( wildcard just for testing)

Place the file in “your.domain.com” directory

Then adding this load reference to the fla:

load(“http://your.domain.com/crossdomain.xml”);

Please refer to this technote from Macromedia: http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=Flash_MX_2004&file=00001097.html

If after you have done all that and it still doesn’'t work, please post the errors. Also, please validate the classpath directory for your Flash implementation.

If you’'re getting errors during publishing right off the bat, most likely the classes are not in the classpath. So I would check to see that you have put the classes in the proper location.

On Windows the system-wide classpath is something like C:\Documents and Settings[username]\Local Settings\Application DataMacromedia\Flash MX 2004\en\Configuration\Classes…

But, you can also set the local classpath or even the classpath for a specific FLA (in case you just want to put the classes in the same directory as your FLA). Here’'s more info on that: http://www.kirupa.com/developer/oop2/AS2OOPClassFileManage2.htm

The “Yet Another Flash Example” is not yet another example. It is the same one

from voisen web site, which is nightmare for beginners and should be used at all.

The one line which is missing which is required is the “flash” attribute needs to be added to the connection object or the connection to the server will not work.

connection.connect(“flash”);

thanks for advices and so, i will try soon i think. Just dont have free time now. Maybe on this weekend.