{NEW} AS3 Flash/Flex Examples
{NEW} AS3 Flash/Flex Examples
Hello,
we have just finished porting some of the AS2 tutorials for Flash CS3 and Flex in Actionscript 3.
Each example comes with fully commented source code:
* Avatar Chat tutorial for Flash CS3 (or higher)
* Avatar Chat tutorial for Flex 2 (or higher)
* Realtime Maze tutorial for Flash CS3 (or higher)
* Realtime Maze tutorial for Flex 2 (or higher)
The related original AS2 tutorials are found here:
http://www.smartfoxserver.com/docs/docP ... vatarChat/
http://www.smartfoxserver.com/docs/docP ... ltimeMaze/
Download the tutorials
Last edited by Lapo on 25 Jan 2010, 22:50, edited 1 time in total.
Awesome!
Please also correct these AS3 errors in the docs...
http://forums.smartfoxserver.com/viewtopic.php?t=6483
Please also correct these AS3 errors in the docs...
http://forums.smartfoxserver.com/viewtopic.php?t=6483
hi
first of all, thank you for posting up the AS3 version!
you really save my day!
by the way, in either one of the Flex project, i noticed that in the FLA's library have the Flex component.
I do know it's possible to install the Flex Component Kit for Flash CS4. but how do you make that movieclips in the Library into a proper SWC?
first of all, thank you for posting up the AS3 version!
you really save my day!
by the way, in either one of the Flex project, i noticed that in the FLA's library have the Flex component.
I do know it's possible to install the Flex Component Kit for Flash CS4. but how do you make that movieclips in the Library into a proper SWC?
When you in install the Flex Component Kit in Flash, the "Export SWC" in the FLA properties is checked. When you publish the FLA, also the SWC file is created.danielfck wrote:I do know it's possible to install the Flex Component Kit for Flash CS4. but how do you make that movieclips in the Library into a proper SWC?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Where is the tutorial? When I download this I just get a single fla file and a globals.as file. When I compile the fla and enter a username, I get this:
If this is a tutorial shouldn't there be some instructions?Internal error:
The room list is empty!
The client API cannot function properly until the room list is populated.
Please consult the documentation for more infos.
Didn't you notice this in the 1st post?
Which of the examples is giving you the error?The related original AS2 tutorials are found here:
http://www.smartfoxserver.com/docs/docP ... vatarChat/
http://www.smartfoxserver.com/docs/docP ... ltimeMaze/
Thanks, that helps!
I get the "room list empty" error on the Maze game, but only the first time I run it. After that it works ok. I can open two different copies of the swf and see the two different players moving. The next step would be to see if I could get this example up on a real server and get two different computers to log in and play. Are there instructions on how to do that somewhere?
I get the "room list empty" error on the Maze game, but only the first time I run it. After that it works ok. I can open two different copies of the swf and see the two different players moving. The next step would be to see if I could get this example up on a real server and get two different computers to log in and play. Are there instructions on how to do that somewhere?
These two tutorials are avatarChat and realtimeMaze.
They both contain a <tutorial name>.fla and a global.as. It looks like the ip address is set in the connector component. I change it and save, but it still tries to connect to 127.0.0.1. Is there someplace else I should change it?
(I should say, yes I am recompiling)
They both contain a <tutorial name>.fla and a global.as. It looks like the ip address is set in the connector component. I change it and save, but it still tries to connect to 127.0.0.1. Is there someplace else I should change it?
(I should say, yes I am recompiling)