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:
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;
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…
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.