Techniques for separating ActionScript from MXML

This section follows a single sample application and shows how it uses several different methods of separating ActionScript from the MXML. The Temperature application takes input from a single input field and uses a function to convert the input from Farenheit to Celsius. It then displays the resulting temperature in a Label control.

The following figure shows the sample Temperature application:


Sample Temperature application.

There are several ways to separate MXML and ActionScript in this simple application that calls a single function:

The following sections describe these methods.


Version 1.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00002148.htm