Flex applications often need a way to be notified about changes or events taking place on the server-side. For instance, financial applications need to have a way to stream stock quote data to the rich clients. The same is true for data-driven applications - as data changes on the server, clients may need to be notified.
The proposed solution describes how to use the RTMP protocol to push data from a .NET application to the connected Flex clients using the NetConnection API.
You want to use rich text formatting like bold and italic with an embedded font, but the documentation does not tell you how and you only get the regular font displayed in your TextArea with htmlText. The <b> and <i> tags are ignored.
Embed fonts for each combination of weight and style and use the fontWeight and fontStyle properties in a metadata tag or in CSS to specify the nature of the fonts while always using the same font family name using the fontFamily property.
I want the PhotoViewer sample app Adobe provided for Flex 2 to work for Flex 3. The Flex 2 version is here (right-click to view source): http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.html
I got the project working in Flex 3, though I did not clean up the project, so the build scripts might not work, etc. Mostly all that was involved was moving files around, and changing some code related to loading resource bundles, and also adding path to resource bundles (using {locale} in path) in project compiler properties.
The recipe provides clear step-by-step instructions for configuring a Flash Builder project to work with .NET backend. It reviews a basing .NET (C#) service and demonstrates how ActionScript code can be integrate with it using Flex Remoting API (RemoteObject).
The proposed solution uses Flash Builder version 4, RemoteObject API and WebORB to provide integration between Flex and .NET.
We need to add an ability to right-click a list item and manipulate context menu on the fly for each list item.
We create our context menu along with our custom items. Set up our event listener to listen for when a context menu is displayed and look up a list item on which right-click occurred. We enable/disable/change context menu items accordingly depending if right-click occurred over a list item or not.
This site is produced in partnership with O'Reilly.