Setting the Add Remote Object dialog box options

The purpose of the Add Remote Object dialog box is to specify the location of a Java object for use in an MXML file. Flex applications can also access remote objects as named services. A named Remote Object service is defined in the flex-config.xml file in the application root folder on the Flex server (WEB-INF/flex/flex-config.xml). For more information, see "Declaring a data service" in Developing Flex Applications Help.

To set the dialog box options:

  1. If you don't want to use a named service, enter the location of the Java object in the text box.

    The object can be a plain Java class or JavaBean in the web application's classpath. The object can also be an arbitrary Flash Remoting service. The location of a Java object is expressed using dot notation, as follows:

    credit.CreditCardAuth

    The location of a Flash Remoting service is expressed as a gateway URL.

    The value is assigned to the source property of the <mx:RemoteObject> tag.

  2. If you want to use a named service, select the named service from the pop-up menu.

    The value is assigned to the name property of the <mx:RemoteObject> tag.

    Note: The pop-up menu will list the named services only if you specified the correct application root folder when defining the site in Flex Builder. For more information, see Identifying a Flex application root folder.

Flex Builder adds the object to the Data panel indicating that a reference to the object has been inserted in the MXML file.

Related topics