Creating a Flash document to connect to the server
Let's try to connect to the SmartFoxServer that we've set up and play around some basic connection functions.
- Create a new Flash document with ActionScript 3.0 supports and save it to the disk.
- We need to set the class path for the API client of the SmartFoxServer.
- Click on File | Publish Setting | Flash | Script: ActionScript 3.0 | Settings....
- Click on the "+" and input the path of the Flash API client. It is located in the SmartFoxServer installation directory | Flash API | ActionScript 3.0.
- In the same setting dialog, we also assigned the Document Class to
Ch03_01
for our first example in Chapter ...
Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.