13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Filtering display objects<br />

File Description<br />

com/example/programmingas3/filterWorkb<strong>en</strong>ch/ColorStringFormatter.as Utility class that includes a method to convert a<br />

numeric color value to hexadecimal String format<br />

com/example/programmingas3/filterWorkb<strong>en</strong>ch/Gradi<strong>en</strong>tColor.as Class that serves as a value object, combining into a<br />

single object the three values (color, alpha, and<br />

ratio) that are associated with each color in the<br />

Gradi<strong>en</strong>tBevelFilter and Gradi<strong>en</strong>tGlowFilter<br />

User interface (Flex)<br />

FilterWorkb<strong>en</strong>ch.mxml The main file defining the application’s user<br />

interface.<br />

flexapp/FilterWorkb<strong>en</strong>ch.as Class that provides the functionality for the main<br />

application’s user interface; this class is used as the<br />

code-behind class for the application MXML file.<br />

In folder flexapp/filterPanels:<br />

BevelPanel.mxml<br />

BlurPanel.mxml<br />

ColorMatrixPanel.mxml<br />

ConvolutionPanel.mxml<br />

DropShadowPanel.mxml<br />

GlowPanel.mxml<br />

Gradi<strong>en</strong>tBevelPanel.mxml<br />

Gradi<strong>en</strong>tGlowPanel.mxml<br />

Last updated 6/6/2012<br />

Set of MXML compon<strong>en</strong>ts that provide the<br />

functionality for each panel that is used to set<br />

options for a single filter.<br />

flexapp/ImageContainer.as A display object that serves as a container for the<br />

loaded image on the scre<strong>en</strong><br />

flexapp/controls/BGColorCellR<strong>en</strong>derer.as Custom cell r<strong>en</strong>derer used to change the<br />

background color of a cell in the DataGrid<br />

compon<strong>en</strong>t<br />

flexapp/controls/QualityComboBox.as Custom control defining a combo box that can be<br />

used for the Quality setting in several filter panels.<br />

flexapp/controls/TypeComboBox.as Custom control defining a combo box that can be<br />

used for the Type setting in several filter panels.<br />

User interface (Flash)<br />

FilterWorkb<strong>en</strong>ch.fla The main file defining the application’s user<br />

interface.<br />

flashapp/FilterWorkb<strong>en</strong>ch.as Class that provides the functionality for the main<br />

application’s user interface; this class is used as the<br />

docum<strong>en</strong>t class for the application FLA file.<br />

293

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!