Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Vista

Adobe Flash Catalyst CS5 : Connecting Your Project to Live Data - Changing the Project Type (part 2) - Configuring the return data

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
6/11/2012 6:01:56 PM

2. Configuring the return data

You need to configure the type of data that the service will return so that Flex can properly process it. Once you have completed the steps in the previous section, the Data/Services view will display the getAllMagazines operation.

  1. Select the getAllMagazines operation.

  2. Right-click  the getAllMagazines operation and choose Configure Return Type from the context menu. You can also click the Configure Return Type button at the top of the Data/Services view. (see Figure 10).

    Figure 10. Selecting the service and clicking the Configure Return Type button in the Data/Services view
  3. In the Configure Return Type dialog box, ensure that the option Auto-detect return type from sample data is selected (see Figure 11).

  4. Click Next. Flash Builder needs to call, or invoke, the service to determine what kind of data will be returned. Some services will require that a parameter be sent to them; for example, a search operation would need a search string. The service used in these examples, however, simply returns all data, so you do not need to provide a parameter.

    Flash Builder will therefore invoke the service and return a list of the data being returned.

    In this example, the service returns a list of magazines and information about them. ActionScript can store multiple values in a single variable, as is needed in this case, in an array. Flash Builder will display a dialog box stating that it cannot automatically determine the property type.

  5. Enter a name for the array, such as MagazinesData (see Figure 12).

  6. Click Finish.

Figure 11. The first step in configuring the return type

Figure 12. Entering the name of the property type for the data.

The name of the service and the name of the data type cannot be the same. In this example, the service name is Magazines, so the data type cannot be Magazines.

Other -----------------
- Adobe Flash Catalyst CS5 : Connecting Your Project to Live Data - Setting Up a Local Testing Server
- Adobe After Effects CS5 : The Timeline - Timing and Retiming
- Adobe After Effects CS5 : The Timeline - Motion Blur
- Adobe Flash Professional CS5 : Importing Graphics - Setting Illustrator Import Preferences
- Adobe Flash Professional CS5 : Importing Graphics - Understanding Vector and Bitmap Graphics
- Adobe InDesign CS5 : Managing Pages and Books - Navigating Pages & Adding Color Labels to Pages
- Adobe InDesign CS5 : Managing Pages and Books - Changing the Page Size
- Dreamweaver CS5 : Understanding Server Behaviors & Applying and Managing Server Behaviors
- Dreamweaver CS5 : Packaging Your AIR Application
- CorelDraw X5 : Getting Artistic with Text - Formatting Paragraph Text
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server