Adobe Flex Clients


Note:

The samples featured on this page work only for Oracle Beehive Release 2 (2.0.1.0)


Adobe Flex is a cross-platform, open source framework for building rich Internet applications. For more information about Flex, refer to the Adobe Flex 3 product page:

http://www.adobe.com/products/flex/

This page covers the following topics:

Adobe Flex Programming Tips

The following describes programming tips for creating BDK clients with Adobe Flex.

HTTPService Class and Calling POST Method

If you specify POST as the HTTP method in the HTTPService.method property, you must specify CONTENT_TYPE_XML for the HTTPService.contentType property. Use the HTTPService.send method to execute HTTP service requests; specify the contentType (as CONTENT_TYPE_XML) in the method's parameter.

Refer to the following for more information:

HTTP Status 201 and Internet Explorer 7

On Internet Explorer 7, HTTPService returns a fault when a POST request returns an HTTP status 201. However, this status is typically returned when an Oracle Beehive object is created, and Flex does not give you access to the body of the HTTP response after a fault. Consequently, to access an object you just created, you must perform a full refresh of the object list.

For example, follow these steps to access a newly created Conference:

  1. Create a conference. You receive an HTTP status 201 from Internet Explorer 7 and a fault from Flex.

  2. Call the /comb/v1/d/owchs/ resource to retrieve all resources.

Refer to the following for more information:

Adobe Flex Samples

This section covers the following topics:

ExampleClient Flex Sample

The ExampleClient Flex sample consists of a user interface from which you may run one of the following examples:

  • Example 1: Authenticating (this is demonstrated by the login screen, which appears when you start the sample)

  • Example 2: Listing Artifact Identifiers

  • Example 3: Create Object (Team Workspace)

  • Example 4: Projection (EMPTY and BASIC)

ExampleClient Files

The ExampleClient Flex sample, flex_bdk_sample.zip , consists of the following files:

  • assets/beehive_icon_64x64.gif

  • BHDataStore.as: Modify the value of httpServer:String to the HTTP host name and port number of your Oracle Beehive deployment.

  • ExampleClient.mxml

  • LoginScreen.mxml

Compiling and Running ExampleClient Flex Sample

Follow these steps to compile and run the ExampleClient Flex sample:

  1. Download and install Adobe Flex 3.4 SDK. Refer to the Adobe Flex 3 product page for more information:

    http://www.adobe.com/products/flex/

  2. Download the files listed in "ExampleClient Files" into a directory in your computer. Ensure that you maintain the directory structure. In particular, ensure that all the mxml and as files are in one directory, and the gif file is in a subdirectory named assets.

  3. Compile the file LoginScreen.mxml with the mxmlc application compiler:

    cd  
                                            
    <Flex install directory>/bin
    mxmlc --show-actionscript-warnings=true --strict=true  
                                            
    <sample directory>/LoginScreen.mxml
                                          

    <Flex install directory> is the Flex install directory, and <sample directory> is where you copied the ExampleClient files.

    For more information about mxmlc, refer to "Using mxmlc, the application compiler" in the subsection "Using the Flex Compilers" in the section "Application Development" in Building and Deploying Flex 3 Applications .

  4. Compile the file ExampleClient.mxml with the mxmlc application compiler.

  5. To run the sample, open the file ExampleClient.swf in a browser.