Flash Builder 4 introduces a rich set of tools for configuring access to data services. The Flash Builder documentation and tutorials can help you get started with writing PHP and ColdFusion services as well as configuring your applications to access these services.
However, the Flash Builder documentation examples and tutorials use client-side typing. You can also write PHP and ColdFusion services that implement server-side typing. Server-side typing simplifies the workflow in Flash Builder, and also provides server code that is easier to understand and maintain.
Flash Builder uses client-side typing for services that do not specify data types for arguments or return values. To implement access to these services, Flash Builder needs to know the data types for the arguments and return values. Flash Builder tools introspects the services, prompting you to configure the necessary custom data types.
Here are links to the Flash Builder tutorials that use client-side typing:
This article provides documentation and an example for server-side typing in PHP. Later, I’ll provide a separate example for server-side typing in ColdFusion.
Both PHP and ColdFusion allow you to define custom data types in server code. Flash Builder recognizes the custom data type during introspection of services. This simplifies the access to the service – you do not have to walk through wizard screens to configure custom data types.
This blog post contains an example for PHP that shows how to implement server-side typing. This basic application lists employees from a database. It also includes an input form to add new employees. This blog post contains the full source listing for both the client and server, plus a mini-tutorial.
As most of you know, the Flex SDK has been open-source for quite a while now. We in the doc group have spent quite a bit of time struggling with what that means for the documentation/core content. The thing that seems most practical to me is to expose our code examples as open-source content, but (for whatever reason) this hasn’t really taken off.
Meanwhile, our old friend Ed Sullivan has brought the new DevCenter cookbook to life and it seems like a good place to advertise for some Flex code examples. To that end, I just posted the following recipe requests:
* Spark custom layout class example
* Custom list control
* Spark VideoDisplay control
* FXG/MXML blend mode examples
* FXG/MXML Transform examples
Now I have a great team and we are fully capable of creating great code examples, but Flex is a big animal and we could really use your help rounding out our examples, so please check out these recipe requests and chip in if you feel so inclined.
Below is the latest documentation on using text controls in Flex 4.
This PDF includes information on creating and maniupating TextFlows, a powerful new class for working with text in the TLF-based text controls.
The topic also includes documentation on using the following new Spark text controls:
- Spark Label, TextInput, and TextArea
Please let me know if you have any questions, comments, or updates.
Here’s the new documentation: Text controls
NOTE: Flex 4 shipped on March 22, 2010. Click here to read a blog post that describes the documentation set. Also, I suggest that you bookmark the Flex Developer Center Documentation tab for quick access to all Flex Learning Resources.
LiveCycle Data Service 3 Beta 1 is now available on Adobe Labs.
The new model-driven development features in LiveCycle Data Services 3 offer a huge leap in productivity and ease-of-use for end-to-end applications. You start an application by creating a data model (a simple XML file) in the new “Modeler” editor that plugs into Flash Builder. From that model, you automatically generate data access logic on the server and Flex client code for working with the server code.
You can even generate much of a model by dragging existing SQL database tables into the Modeler editor. When you save the model, client code is automatically generated. When you deploy the model to the server, a fully functional Data Management Service destination is automatically generated on the LiveCycle Data Services server. You can support even the most advanced Data Management Service features just by creating and deploying a model.
Using Flash Builder with LiveCycle Data Services, you can now build simple or complex data-driven applications without writing any server-side code or configuration files. You can also take full advantage of the new Flash Builder 4 features for building the client side of data-driven applications.
We would love to get your feedback on this release and the documentation. To learn more:
Here is new documentation on creating Flex Gumbo components in ActionScript. This document is for those who want to override commitProperties(), partAdded(), partremoved(), or getCurrentSkinState(), or want to create custom states in their skin classes.
Download the PDF: Advanced Spark Visual Components in ActionScript
Flex Doc Team
Here is new documentation on Flex Gumbo List, DropDownList, and ButtonBar controls.
Download the PDF: Spark list-based controls
Note: Flex 4 shipped on March 22, 2010. The final version of the tutorials is available athttp://help.adobe.com/en_US/Flex/4.0/FlexTutorials/index.html
Note: Flex 4 shipped on March 22, 2010.
The final version of the usage content is available at http://help.adobe.com/en_US/flex/using/index.html.
The Platform Reference is available at hthttp://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html.
I want to tell you about Blueprint, which we released on Adobe Labs last week and just last night updated to include support for Mac, Windows, Flex Builder 3, and Flash Builder 4.
Blueprint is an innovative code-centric search application, initially delivered as an Eclipse plug-in. It is a custom search tool that searches only for code (for now, it searches just for MXML and ActionScript). So, for example, if you search for DataGrid, it returns a set of code examples that use the Flex DataGrid control. But what’s really cool is that you can easily highlight, copy, and paste chunks of code right into your application, all without leaving Flex/Flash Builder.
For more information, see the Blueprint page on Adobe Labs