Posts in Category "Flex 2.01"

Add Chrome Search Extension for the ActionScript® 3.0 API Reference (ASDoc)

Use the ActionScript® 3.0 Reference as the API reference for many Adobe products, including Flash Player, AIR, Flex, and LiveCycle. To improve searching of the reference in Chrome, install the “ActionScript 3.0 Search” extension:

ActionScript 3.0 Search

 

Stephen Gilson
Flex Doc Team

New Features Added to Adobe ActionScript API Reference (ASDoc)

Use the ActionScript® 3.0 Reference for the Adobe® Flash® Platform as the API reference for many Adobe products, including Flash Player, AIR, and Flex. The new release of the ActionScript Reference (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/) contains several new features:

  • Support for a quick search added to the Packages and Classes lists.The quick search lets you filter the content of the Packages and Classes lists as you type. This feature is not supported on IE 7 and IE 8.
  • When displaying all classes in the Classes list, selecting a class name in the list continues to display all classes.In the previous release, selecting a class name in the Classes list while displaying all classes changed the Classes list to display only the classes in the package of the selected class.
  • Added a Home link to the top of all pages.The Home link lets you navigate back to the index.html page from anywhere in the reference.
  • Fixes for issues associated with localization and translation.

 

Stephen Gilson
Flex Doc Team

The Security Sandbox in Flex Builder 3

We recently received a question from a user about Flex Builder security sandbox settings. I thought the answer to this question would be of general interest.

Question: In Flex Builder 2, the security sandbox settings for both debug mode and release mode was local-trusted. In Flex Builder 3, why is release mode now local-with-network?

Short Answer: Whether a given SWF, when run locally in a non-trusted location, is local-with-filesystem or local-with-network is a compilation setting. This setting is stored as a flag in the SWF header and is the only compiler flag. The default is local-with-network and has not changed in Flex Builder 3.

What is new with Flex Builder 3 is that we no longer put the release SWF inside the trusted debug output folder by default. The advantage to the developer is that the release SWF will run in the same security sandbox in which it will be deployed. Thus you get accurate application behavior instead of the more permissive local-trusted, which is only available to the developer.

Detailed Answer: In Flex Builder 2 we put the release SWF alongside the debug SWF, which was inside an output folder that we configured the flash player to trust for the following reason:

You could click, debug, and launch your application and have it access network services without first configuring the project to host the SWF on a web server (and thus have to launch it with a proper http:// URL). Basically, you can launch your application from the file system using file:/// URLs.

The problem with this approach is that when testing the release SWF, even if you edited the launch URLs to use http://, you would be running the application out of local-trusted instead of the actual deployment sandbox (remote).

There are other problems with this arrangement, such as facilitating the accidental deployment of both debug and release SWFs in the output folder.

So, for Flex Builder 3 we separated the notion of the Run button from the release SWF. The Run button merely launches the debug-capable SWF with debugging turned off. The Export Release Wizard creates the actual release SWF. Flex Builder 3 encourages you to put the release SWF somewhere other than your debug output folder. Thus, to test the release version, you must launch and test it as an end user would using a browser and web server (that is, unless you actually want the end user to try to run it locally).

Note: Use the custom compiler option, use-network=false, if you want to override the Flex Builder default compiler option. This would change the settings to local-with-filesystem.

View States Doc Updated

The “Using View States” chapter of the Flex Developers Guide has been rewritten to expand the overview, to explain different view-state scenarios, to add more examples, to enhance the description of adding and removing components as part of a change of view state, and to add examples that control the creation policy of components during a change of view state.

Download the new chapter’s PDF: Using View States.

Here’s a ZIP file of all the code samples (full applications) used in the document: Code Samples.

Importing SWF 9 Assets From Flash CS3 into Flex

The Flex Component Kit for Flash CS3 lets you create interactive, animated content in Flash, and use it in Flex as a Flex component. These components work with Flex features such as view states and transitions, skinning, and tool tips. The content can be used as a child of a Flex container, or as a skin for any Flex component.

You can download and install the Flex Component Kit for Flash CS3, and the associated documentation, from Adobe labs here.

Drag and Drop documentation update

We rewrote the Drag and Drop chapter of the Flex Developer’s Guide. The main changes were:

- Simplified the explanation of the drag/drop operation
- Added many new examples
- Added information and examples on performing a copy operation with the list-based controls (Tree, List, DataGrid) which is not handled by default
- Added information about overriding the default event handlers used by the list-based controls

Download the new chapter’s PDF: Using Drag and Drop

Here’s a ZIP file of all the code samples (full applications) used in the document: Code Samples.

Data Binding Doc Updated

The “Binding Data” chapter of the Flex Developers Guide has been rewritten to include more examples of common data binding tasks, including:

- Binding to functions
- Binding to Objects
- Binding to arrays
- Bidirectional bindings
- Bindings in ActionScript
- Using the [Bindable] metadata tag

Download the new chapter’s PDF: Binding Data.

Here’s a ZIP file of all the code samples (full applications) used in the document: Code Samples.

Modules documentation update

The “Creating Modular Applications” chapter of the Flex Developer’s Guide has undergone a major rewrite.

Download the new chapter’s PDF: Creating Modular Applications

Enhancements include the following:
- Using modules in Flex Builder
- Passing data from the app to the module/from the module to the app/inter-module
- Preloading modules
- Using modules in ActionScript

Here’s a ZIP file of all the code samples (full applications) used in the document: Code Samples.

Enjoy!