Avatar Chat AS3

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Avatar Chat AS3

Postby menachemt » 01 Aug 2012, 18:56

Hello. I saw this thread: http://www.smartfoxserver.com/forums/vi ... +flash+cs3 and I want to take a look at it because it had avatar chat for as3 instead of me switching the whole code. The links are broken. Does anyone have new download links? Are there newer versions of avatar chat as3? Any help would be great. :)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar Chat AS3

Postby rjgtav » 01 Aug 2012, 19:07

Hi.
Those examples are now also shipped with SFS.
You can find them under [SFS Installation folder]\Examples\AS3\flash or \flex folders.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Avatar Chat AS3

Postby menachemt » 01 Aug 2012, 19:14

Which SFS are you talking about? I was hoping it was for the PRO version. Is there one for SFS Pro? Thanks in advance! :)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar Chat AS3

Postby rjgtav » 01 Aug 2012, 19:54

Yes, I was referring to SFS Pro.
Hmm... Just remembered the following... Have you applied the 1.6.9 SFS Pro patch? I think that those examples came with 1.6.9...
You can download it from:
http://www.smartfoxserver.com/download/sfsPro#p=updates
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Avatar Chat AS3

Postby menachemt » 02 Aug 2012, 14:22

Ok. Thank you I got it. :) Just one problem: How do I make it connected? I don't really know how to get started. Is there a tutorial? Thanks in advance! :)
EDIT: When I run it, I get "Connection Failed". This is in my log: [ Send ]: sfsHttp=connect
Error opening URL 'http://127.0.0.1:8080/BlueBox/HttpBox.do'
HttpError
Can anyone tell me what I need to change to make it run on my computer and what I change it to? Thanks again! :)
EDIT 2: I assumed since in the as2 version, you have to target the flash as2 api and the redbox client as2, I did the same thing for this file, except with the as3 ones. I used the new as3 one. I get these errors:
Scene 1, Layer '{ code }', Frame 9, Line 53 1120: Access of undefined property Globals.
Scene 1, Layer '{ code }', Frame 9, Line 72 1120: Access of undefined property Globals.
Scene 1, Layer '{ code }', Frame 9, Line 23 1120: Access of undefined property Globals.
Was I supposed to target them? I am not sure how to get the file to connect. May someone help me. :( Thanks! :)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar Chat AS3

Postby rjgtav » 03 Aug 2012, 12:24

EDIT: When I run it, I get "Connection Failed". This is in my log: [ Send ]: sfsHttp=connect
Error opening URL 'http://127.0.0.1:8080/BlueBox/HttpBox.do'
HttpError

Are you sure that you have the server running? Can you check on the console if there were any errors during the boot?
EDIT 2: I assumed since in the as2 version, you have to target the flash as2 api and the redbox client as2, I did the same thing for this file, except with the as3 ones. I used the new as3 one. I get these errors:
Scene 1, Layer '{ code }', Frame 9, Line 53 1120: Access of undefined property Globals.
Scene 1, Layer '{ code }', Frame 9, Line 72 1120: Access of undefined property Globals.
Scene 1, Layer '{ code }', Frame 9, Line 23 1120: Access of undefined property Globals.

Are you sure that on your AS3\flash\avatarChat folder you have the following files:
avatarChat.fla
avatarChat.swf
Globals.as

If so, maybe you're dealing with some file access permission problems.. Please make sure that you installed SFS Pro on a folder which isn't inside the Program Files folder and that the folder where SFS is doesn't need any special administrator privileges to be accessed.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Avatar Chat AS3

Postby menachemt » 03 Aug 2012, 13:57

First of all, what server do I need running? The original server I used? I forgot to run that. Secondly, I'm using a mac, therefore I don't have Program Files, and I do have all 3 files in one folder, along with the html version of avatarChat I made. The file is still called Globals.as. Does mac have any special access blocking thing to like in windows? Thanks! :)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar Chat AS3

Postby rjgtav » 03 Aug 2012, 14:15

Yes, you need to start SFS Pro before running the example, otherwise of course it will never be able to connect...
Well, I never worked with MAC, so I don't know if it also needs some special privileges. try copying the avatarChat example to somewhere else, like the Desktop or some Documents folder.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Avatar Chat AS3

Postby menachemt » 03 Aug 2012, 14:21

I moved the avatarChat folder to my applications folder and it still doesn't work. :( Is there something I'm forgetting to do? The only way to fix the errors I got is by getting the file the right privileges or is there another way? Thanks! :)
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar Chat AS3

Postby rjgtav » 03 Aug 2012, 14:25

Well, I think yes, because here on my PC the example works with no problems. I just opened the fla, hit Ctrl+Enter and it compiled and connected with no problems.
Can't you move that folder to a folder like the documents folder, and open the fla from there?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Avatar Chat AS3

Postby menachemt » 03 Aug 2012, 14:30

Well, I moved the file to documents and ran it. I still get those errors. Should I just uninstall the patch and reinstall it? Also, all my fla file is supposed to target is the flash api as3 folder and the redbox as3 folder, right? Thanks! :)
EDIT: I uninstalled and reinstalled. The problem always seems to occur right after I target the flash as3 api. When I test it before I target it, I don't get those errors. After I target it, I do. Also, when I wanted you to look at my smartfoxserver server log. The reason I want you to look at it for a couple reasons: first reason is because it says stuff like connection refused right after the line where it says serverReady, so I was wondering how I could fix it. Second reason is because it could be the answer to my problem. How can I fix the connection refused problem and the other problems I get in my log? Also, could the problem be because I didn't apply the patch correctly or is the only solution because it doesn't read the Global.as file? Thanks in advance! :)
EDIT 2: I got rid of those errors by using * instead of my local ip address in the config.xml file. My original problem still occurs.

*sys-package-mgr*: processing modified jar, '/Applications/SmartFoxServer PRO 1.6.6/Server/lib/jysfs.jar'
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
| |
| ...::: SmartFoxServer :::... |
| Multiplayer Socket Server |
| version 1.6.9 |
| --- |
| (c) 2004 - 2010 gotoAndPlay() |
| http://www.smartfoxserver.com |
| http://www.gotoandplay.it |
| |
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|

::::::::::: { BlueBox INITED } ::::::::::::
: :
: Version 1.0.5 -- (c) 2008 gotoAndPlay() :
: :
:::::::::::::::::::::::::::::::::::::::::::
11:20:45.694 - [ INFO ] > Starting h2 engine...


--- [ System Info ] ------------------------------------------

System CPU(s): 2
VM Max memory: 129 MB

os.name: Mac OS X
os.arch: x86_64
os.version: 10.6.8
java.version: 1.6.0_33
java.vendor: Apple Inc.
java.vendor.url: http://www.apple.com/
java.vm.specification.version: 1.0
java.vm.version: 20.8-b03-424
java.vm.vendor: Apple Inc.
java.vm.name: Java HotSpot(TM) 64-Bit Server VM


--- [ Network Cards ] -----------------------------------------

Card:en1
-> fe80:0:0:0:7aca:39ff:feba:de83%5
-> 192.168.1.121
Card:lo0
-> fe80:0:0:0:0:0:0:1%1
-> 0:0:0:0:0:0:0:1
-> 127.0.0.1


--- [ Licence Loaded ] ------------------------------------

License Type -> PRO
License Owner -> --== Free Demo Licence ==--
Max. Clients -> 20
BlueBox Type -> Demo Version

--- [ Zones & Rooms ] -------------------------------------

11:20:47.309 - [ INFO ] > Default Buddy List Persister <INITED>
Zone: simpleChat

The Hall (id: 1, max: 50, pass:N)
The Kitchen (id: 2, max: 50, pass:N)
The Garden (id: 3, max: 50, pass:N)
The Bathroom (id: 4, max: 50, pass:N)
The Garage (id: 5, max: 50, pass:N)
The Living Room (id: 6, max: 50, pass:Y)
11:20:48.006 - [ INFO ] > Zone Extension [ json ] created, for zone:simpleChat
[jsonSample.as]: JSON Example initialized

11:20:48.033 - [ INFO ] > Default Buddy List Persister <INITED>
DB Manager Activated ( org.gjt.mm.mysql.Driver )
Zone: dbZone

MainRoom (id: 7, max: 10, pass:N)
11:20:51.665 - [ INFO ] > Zone Extension [ dbTest ] created, for zone:dbZone
[dbExtension.as]: Initing dbExtension
11:20:52.640 - [ INFO ] > Zone Extension [ dbTestAdv ] created, for zone:dbZone
11:20:52.806 - [ INFO ] > Zone Extension [ simpleExt ] created, for zone:dbZone
[simpleExt.as]: Hello from the Simple Extension Example!

Zone: sftris

The Entrance (id: 8, max: 50, pass:N)

Zone: mazeGame

The Entrance (id: 9, max: 50, pass:N)

Zone: loginZone

The Hall (id: 10, max: 50, pass:N)
11:20:53.015 - [ INFO ] > Zone Extension [ loginEx ] created, for zone:loginZone

Zone: multiChat

Main Lobby (id: 11, max: 50, pass:N)

Zone: yahtzee

The Entrance (id: 12, max: 50, pass:N)

Zone: slogin

The Lobby (id: 13, max: 50, pass:N)
The Garden (id: 14, max: 50, pass:N)
The Swimming Pool (id: 15, max: 50, pass:N)
11:20:54.211 - [ INFO ] > Zone Extension [ slogin ] created, for zone:slogin

Zone: pixel

The Basement (id: 16, max: 4, pass:N)
11:20:54.426 - [ INFO ] > Zone Extension [ pixel ] created, for zone:pixel
[pixelGame.as]: PixelGame extension started!

Zone: letters

Main (id: 17, max: 50, pass:N)
11:20:54.971 - [ INFO ] > Zone Extension [ Letters ] created, for zone:letters
[Letters.as]: Letters script running.

11:20:55.079 - [ INFO ] > Default Buddy List Persister <INITED>
Zone: messenger

Main (id: 18, max: 40, pass:N)
11:20:55.990 - [ INFO ] > Zone Extension [ smsg ] created, for zone:messenger

Zone: imgMan

MainLobby (id: 19, max: 50, pass:N)
11:20:57.949 - [ INFO ] > Zone Extension [ imgman ] created, for zone:imgMan
[imageManager.as]: Image Manager extension starts...

Zone: bomberman

Lobby (id: 20, max: 50, pass:N)

DB Manager Activated ( org.h2.Driver )
Zone: h2dbzone

Lobby (id: 21, max: 10, pass:N)
11:20:58.798 - [ INFO ] > Zone Extension [ h2db_ext ] created, for zone:h2dbzone
[internalDbDemo.as]: Initing dbExtension

Zone: advBuddyList

Lobby (id: 22, max: 10000, pass:N)

Zone: sloader

Lobby (id: 23, max: 10000, pass:N)
11:21:00.602 - [ INFO ] > Zone Extension [ loader ] created, for zone:sloader
[ it.gotoandplay.extensions.examples.SocketFileLoader ]: Socket File Loader -- Started!

Zone: SmartVideoClipPlayer

The Lobby (id: 24, max: 50, pass:N)
11:21:00.737 - [ INFO ] > Zone Extension [ __$RedBox$__ ] created, for zone:SmartVideoClipPlayer
11:21:01.827 - [ INFO ] > [RedBox] RedBox's AVChatManager initialized
11:21:01.952 - [ INFO ] > [RedBox] RedBox's AVClipManager initialized and a/v clips list created (4 clips found)
11:21:01.962 - [ INFO ] > [RedBox] Extension initialized

11:21:01.984 - [ INFO ] > Default Buddy List Persister <INITED>
Zone: SmartMessengerAV

Main (id: 25, max: 40, pass:N)
11:21:02.011 - [ INFO ] > Zone Extension [ smsg ] created, for zone:SmartMessengerAV
11:21:02.015 - [ INFO ] > Zone Extension [ __$RedBox$__ ] created, for zone:SmartMessengerAV
11:21:02.020 - [ INFO ] > [RedBox] RedBox's AVChatManager initialized
11:21:02.024 - [ INFO ] > [RedBox] RedBox's AVClipManager initialized and a/v clips list created (0 clips found)
11:21:02.024 - [ INFO ] > [RedBox] Extension initialized

Zone: SmartChatAV

The Hall (id: 26, max: 50, pass:N)
The Kitchen (id: 27, max: 50, pass:N)
The Garden (id: 28, max: 50, pass:N)
The Bathroom (id: 29, max: 50, pass:N)
The Garage (id: 30, max: 50, pass:N)
11:21:02.027 - [ INFO ] > Zone Extension [ __$RedBox$__ ] created, for zone:SmartChatAV
11:21:02.031 - [ INFO ] > [RedBox] RedBox's AVChatManager initialized
11:21:02.036 - [ INFO ] > [RedBox] RedBox's AVClipManager initialized and a/v clips list created (0 clips found)
11:21:02.036 - [ INFO ] > [RedBox] Extension initialized

Zone: SmartVideoConference

Conference hall 1 (id: 31, max: 10, pass:N)
Conference hall 2 (id: 32, max: 10, pass:N)
Conference hall 3 (id: 33, max: 10, pass:N)

Zone: openspace

Ranch (inside) (id: 34, max: 50, pass:N)
Ranch (outside) (id: 35, max: 50, pass:N)
Slopes area (id: 36, max: 50, pass:N)



--- [ Server Starting ] ---------------------------------

Server address: 192.168.1.121
Server port : 9339

11:21:02.054 - [ INFO ] > [TaskScheduler] ... started ::
11:21:02.055 - [ INFO ] > [BlueBoxHandler]... started ::
11:21:02.055 - [ INFO ] > [EventWriter] ..... started :: 1 thread(s)
11:21:02.055 - [ INFO ] > [SystemHandler] ... started :: 1 thread(s)
11:21:02.056 - [ INFO ] > [ExtensionHandler]. started :: 1 thread(s)
11:21:02.056 - [ INFO ] > [DeadChannelsPolicy: strict]
11:21:02.057 - [ INFO ] > Server is up and running!
[dbExtension.as]: Event received: serverReady
[simpleExt.as]: Event received: serverReady
11:21:02.093 - [ INFO ] > [RedBox] Internal event received: serverReady
11:21:02.099 - [ INFO ] > [RedBox] Internal event received: serverReady
11:21:02.100 - [ INFO ] > [RedBox] Internal event received: serverReady
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:532)
at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:81)
at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:65)
at org.xsocket.stream.io.impl.IoProvider.openSocket(IoProvider.java:346)
at org.xsocket.stream.io.impl.IoProvider.createClientIoHandler(IoProvider.java:209)
at org.xsocket.stream.Connection.<init>(Connection.java:160)
at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:394)
at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:209)
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:54)
at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:29)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
Invalid connection = null
java.lang.NullPointerException
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.send(XMLSocket.java:93)
at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:30)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:532)
at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:81)
at sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:65)
at org.xsocket.stream.io.impl.IoProvider.openSocket(IoProvider.java:346)
at org.xsocket.stream.io.impl.IoProvider.createClientIoHandler(IoProvider.java:209)
at org.xsocket.stream.Connection.<init>(Connection.java:160)
at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:394)
at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:209)
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:54)
at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:29)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
Invalid connection = null
java.lang.NullPointerException
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.send(XMLSocket.java:93)
at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:30)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Avatar Chat AS3

Postby menachemt » 05 Aug 2012, 02:24

Hello. I just targeted the avatarChat file in my fla file and it works now. I don't get the errors. :D Thanks for your help!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Avatar Chat AS3

Postby rjgtav » 07 Aug 2012, 10:09

Good!
Can you please post what exactly was the solution?

Thanks
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Weoncelaughed
Posts: 2
Joined: 24 Aug 2018, 05:32

Re: Avatar Chat AS3

Postby Weoncelaughed » 24 Aug 2018, 06:02

I get the same error right after I change the ip and port to my own. I can only connect to avatarchat(as3) when ip is 127.0.0.1 port:9339. I installed the patch by moving the 3 files in the patch/server folder and targeting the folder my .fla file is in to fix the undefined Globals. I notice that the avatarchat.fla doesn't have a config.xml to put a ip and port number. Im I suppose to write it in on the smartfoxclient.as in the patch/API/AS3/it/goto.and.play/smartfoxserver? Can you explain how your able to connect? You have explained that you don't have to target the folder that the Avatarchat(as3).fla is in to fix the undefined globals.. so in you Avatarchat.fla file you just target the patch api as3 folder? run the server with your own port and ip and it connects?
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Avatar Chat AS3

Postby Lapo » 26 Aug 2018, 10:17

Weoncelaughed wrote:I get the same error right after I change the ip and port to my own. I can only connect to avatarchat(as3) when ip is 127.0.0.1 port:9339.


You should probably start a new thread, because this is literally 6 years old :shock:
In any case, if you can connect when you use address 127.0.0.1 but you can't when you use another address you should check a couple of things.

1) That you've changed the binding address of the server from 127.0.0.1 to whatever private IP your server uses
2) That the traffic is allowed for port 9933 on both client and server. In other words if you have firewalls on either machine you must make sure they are not blocking TCP port 9933

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 32 guests