Build Flex clients

Flex clients are deprecated, but they are still included in the Windows and Linux installers.

This section describes how to install the sample clients on each of these operating systems.

How-to

Build on Windows

The Flex sample client on Windows is packaged as an Adobe Flash Builder project. You could also build it using Ant, although this is not the preferred method.

Using Adobe Flash Builder

  1. Launch Adobe Flash Builder.
  2. Select File | Import Flash Builder Project from the main menu.
  3. In the Import Flash Builder Project dialog box, choose the Project Folder option.
  4. Click the Browse button and navigate to the location of the source files:
    [install_path]\SDK\Samples\Scribble\ScribbleClientFlex
  5. Add the PureWebSDK.swc file to the project’s libraries:
    1. In the Flash Builder’s file navigation panel, expand the ScribbleClientFlex project file to display the libs folder.
    2. In Windows Explorer, navigate to the location of the PureWebSDK.swc file:
      [install_path]\SDK\Redistributable\Libs\Flex
    3. Drag and drop the PureWebSDK.swc file from Windows Explorer into the libs folder for the project in Flash Builder.
  6. Change the project’s output folder:
    1. In the Flash Builder’s file navigation panel, right-click the ScribbleClientFlex project file to display the contextual menu.
    2. Select Properties.
    3. In the Properties dialog box, select the Flex Build Path option.
    4. In the Flex Build Path dialog box, replace the value in the Output folder field with the following path; you can use the Browse button to navigate to the correct location:
      [install_path]\Server\webapp
    5. Click OK. Flash Builder will close the Properties dialog box and build the project automatically.

Using Ant

  1. Open a console (command prompt) window.
  2. Navigate to the following directory:
    [install_path]\SDK\Samples\Scribble\ScribbleClientFlex
  3. Type ant to run the build.xml build script.

You should now see the files for ScribbleClient (including the .swf ) in the following folder:
[install_path]\Server\webapp


Build on Linux

The Flex sample client on Linux is built using Ant.

  1. Copy the ScribbleClientFlex directory:
    cp -r /[install_path]/SDK/Samples/Scribble/ScribbleClientFlex ~/ScribbleClientFlex
  2. Change to the new ScribbleClientFlex directory:
    cd ~/ScribbleClientFlex

  3. Build the Flex client:
    ant compile
  4. Deploy the client to the PureWeb server:
    sudo -E ant deploy

You should now see the files for ScribbleClient (including the .swf ) in the following folder:
[install_path]/Server/webapp


Launch the client

In the PureWeb server, click the Apps link.

In the applications page, click the "launch flex" button associated with the sample service application that you built earlier.
(To launch the application with the Diagnostics Panel enabled, add the &_diagnostics=true parameter at the end of the URL.)