Set Up Your Development Environment
In this procedure, you will learn how to set up your Flash development environment to develop Kaazing Flash clients.
Before You Begin
This procedure is part of Checklist: Build Flash Clients Using Kaazing WebSocket Gateway:
- Set Up Your Development Environment
- Interact with Kaazing WebSocket Gateway Using the WebSocket API
- Interact with Kaazing WebSocket Gateway Using the EventSource API
- Secure Your Flash Client
- Display Logs for the Flash Client
- Troubleshoot Your Flash Client
Note: Learn about supported browsers, operating systems, and platform versions in the Release Notes.
To Set Up Your Development Environment
- Download and install Kaazing WebSocket Gateway as described in Setting Up Kaazing WebSocket Gateway.
- In this how-to, you will use Adobe Flash Builder (formerly known as Adobe Flex Builder) to build a Flash client. You can download Adobe Flash Builder from http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK.
- Take a look at the out of the box demo built with the Flash client API, which is part of the Kaazing WebSocket Gateway bundle.
- Start the Gateway as described in Setting Up Kaazing WebSocket Gateway.
- In a browser, navigate to the out of the box demos at http://localhost:8001/demo/.
- Click Flash & Flex Demos. To run the out of the box Flash & Flex Client demos, you must have Flash Player 10 or higher installed in your browser.
- Build a simple Flex project to use with the Kaazing libraries.
- In Flash Builder, create a Flash project by choosing File > New > Flex Project.
- In the Project Name field, type a name for your project.
- Choose a location for the project.
- Under Application Type, choose Web.
- Under Flex SDK version, choose the Flex SDK version you wish to use. Kaazing's Flash client libraries support Flex SDK 3.5 and higher.
- Click Next, then click Next.
- On the Build Paths page, ensure the Library path is active. Here, you will add the SWC library from Kaazing WebSocket Gateway.
- Next to Component set, ensure MX only is selected.
- Click Add SWC..., then click Browse.
- Navigate to GATEWAY_HOME/lib/client/flash, then choose com.kaazing.gateway.client.swc.
- Click Open, then click OK.
- Click Finish. The project files display in the Package Explorer. Now your project is created and you can start building Flash clients.
Using the Kaazing WebSocket Gateway Flash Client Library
A Flash client is an application or process that creates and sends and/or receives messages. For your Flash application to use WebSocket when communicating with your back-end server through the Gateway, you'll need to use the Flash client API to build a Flash client that you can then add to your Flash application.
Next Step
Interact with Kaazing WebSocket Gateway Using the WebSocket API