Search found 41 matches

by Devon
10 Jul 2012, 05:20
Forum: SFS2X ActionScript 3 API
Topic: how to write a simple chat program using Java API
Replies: 1
Views: 4642

Re: how to write a simple chat program using Java API

The API is very similar to the ActionScript 3 API, download the AS3 examples and use it as a reference for creating your Java chat. Between the ActionScript 3 example and the JavaDoc, you shouldn't have any problems! http://docs2x.smartfoxserver.com/ExamplesFlash/introduction http://docs2x.smartfoxs...
by Devon
09 Jul 2012, 07:32
Forum: SFS2X ActionScript 3 API
Topic: ActionScript Event Management...
Replies: 5
Views: 8359

ActionScript Event Management...

I'm still new to AS3 and have been doing a lot of reading on common practices and the best way to tackle certain problems. One of particular interest is the Event system and the fact that Events will only bubble through the DisplayList. While looking at the CannonCombat Flex example, I noticed that ...
by Devon
10 Aug 2011, 00:33
Forum: SFS2X Questions
Topic: Number in room needed for web site
Replies: 1
Views: 3784

I'm by no means an expert but I can think of two ways of doing it.

1) Use JavaScript to communicate with a Flash object which connects to the server and gathers the information.

2) Store the numbers in a database and query the database with your preferred language, PHP, ASP, ect...
by Devon
20 Apr 2011, 08:30
Forum: SFS2X Questions
Topic: Flex 4 Chat Window?
Replies: 0
Views: 3213

Flex 4 Chat Window?

In Flex 4's new spark components, we no longer have use of htmlText and instead have to use the TextConverter... With this being done, we have to first export the existing chat, append the new message, then import everything back into the textFlow... This is not something that works very well when t...
by Devon
16 Apr 2011, 02:40
Forum: SFS2X Questions
Topic: Need help with datagrids...
Replies: 1
Views: 3410

Need help with datagrids...

I'm trying to make a room list using a datagrid. With the exmaple code, I've manages to almost get it working but I'm new to Flex/AS. I'm kinda stuck and I'd appreciate some guidance. Thanks :) ---------------------------- The problem: It's successfully adding the proper number of new rows as I can ...
by Devon
12 Apr 2011, 22:46
Forum: SFS2X Questions
Topic: Zone does not exist...
Replies: 4
Views: 7993

Bax, I restarted the server and the project I made from the tutorial is working fine. However, the simple and advanced chat examples bring up the progress bar and says "Connecting" but does nothing further. Additionally, nothing appears in the server console when trying to connect with the...
by Devon
12 Apr 2011, 22:05
Forum: SFS2X Questions
Topic: Zone does not exist...
Replies: 4
Views: 7993

Zone does not exist...

I feel really dumb for asking but I simply cannot figure out what is going wrong. None of the examples will successfully login so I just began following the tutorials to make the simplechat. I created the zone "MyNewZone" in the admin tool and then created 'The Lobby" as a room within...
by Devon
12 Apr 2011, 19:32
Forum: SFS2X ActionScript 3 API
Topic: No error on a failed connection?
Replies: 9
Views: 14458

I was meaning to prevent a false negative... If there is a current connection attempt and my setTimeout expires, I'll be displaying a message saying the connection could not be established. However, 1 second later, the connection may finally get through and connect. I want to be able to cancel the c...
by Devon
12 Apr 2011, 19:24
Forum: SFS2X ActionScript 3 API
Topic: No error on a failed connection?
Replies: 9
Views: 14458

Yea, I was thinking I'd just create a global bool "connected" and do a setTimeout to call a function after x seconds. If the connection is made, I'd set "connected" to true. Otherwise, when the timeout expires and calls the function it would check the bool and if still false (not...
by Devon
12 Apr 2011, 17:26
Forum: SFS2X ActionScript 3 API
Topic: No error on a failed connection?
Replies: 9
Views: 14458

Well, I kept the window open for several minutes and never received an error. :-/

Is there a way to set a timeout?
by Devon
12 Apr 2011, 16:27
Forum: SFS2X ActionScript 3 API
Topic: No error on a failed connection?
Replies: 9
Views: 14458

No error on a failed connection?

I'm trying to figure out why this script won't produce an error when the connection attempt should fail... Basically, I have intentionally entered the wrong IP and have the following code: private function onConnection(evt:SFSEvent):void { if (evt.params.success) { strCurre...

Go to advanced search