This is an archive of a live discussion that I presented on Flash Communication Server best practices. Programming Flash Communication Server applications is not an easy task, but after you have built a few (or a few dozen), some patterns start to emerge. Learn these patterns and get a peek at the best practices that I use to build Breeze Meeting using Flash Communication Server.
In this session I will build a very simple shared text application, which uses a Remote Shared Objects to share the text amongst all the users connected to it. Using as many best practices as possible when building even a small application like this one will help you when it’s time to expand it and maintain its code six months later.
I thought it would be useful to give you a timeline showing some of the topics in this hour-long presentation. Here's an outline of what I covered, and the approximate time in the archive where it's covered:
myTrace (14:15)p_, m_, and k_ prefixes (21:00)onAppStart (26:00)onConnect and onDisconnect best practices (31:00)setUserID right after acceptConnection (33:40)setUserID as your "ready-to-go" point (instead of NetConnection.Connect.Success) (34:30)Client.prototype.someFunc versus client.someFunc (37:30).send() to accommodate for people who come in late (41:00)tID to emulate a success (56:45)To complete this tutorial you will need to install the following software and files:
Note: You can also find the source code within the presentation at 1:00:00.
Figure 1. Extending MovieClip versus extending Object
Macromedia offers live, in-depth product presentations called Macrochats—technical discussions led by product engineers, technical support engineers, and customer leaders. Macrochat content varies across all Macromedia products and technical levels.
Macrochats are recorded online utilizing Macromedia Breeze Live. There is no charge to participate. While you are viewing, please keep in mind that these presentations were delivered to a live audience.
For a list of upcoming Macrochats, view the Macrochat schedule. For a list of past Macrochats, visit the Recorded Macrochats page.