Apache MP3-341 Specifications

Browse online or download Specifications for MP3/MP4 players Apache MP3-341. Apache MP3-341 Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 358
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - ADOBE FLEX 3 APPLICATIONS

ADOBE®FLEX®3BUILDING AND DEPLOYING ADOBE FLEX 3 APPLICATIONS

Page 2

4CHAPTER 1Many types of design patterns have been catalogued and documented. For example, the Functional design pattern specifies that each module of

Page 3 - Contents

CHAPTER 594Using deferred creationBy default, containers create only the controls that initially appear to the user. Flex creates the container’s othe

Page 4 - CONTENTS

95ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsSingle-view containersSingle-view containers by default create all their children when t

Page 5

CHAPTER 596When you instantiate a navigator container, Flex creates all of the top-level children. For example, creating an Accordion container trigge

Page 6

97ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsWhen the user navigates to another panel in the Accordion container, the navigator conta

Page 7 - Part 1: Application Design

CHAPTER 598Creating deferred componentsWhen you set a container’s creationPolicy property to none, components declared as MXML tags inside that contai

Page 8

99ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications p = policy.selectedItem.toString(); } private function changeP

Page 9

CHAPTER 5100Depending on the value of the creationPolicy property, Flex immediately begins instantiating controls inside the containers or it defers t

Page 10 - About Struts

101ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDestroying componentsAfter you create a component, it continues to exist until the user

Page 11 - Configure phase

CHAPTER 5102In this example, the image on the left shows the application after the first container is populated with its children and data, but before

Page 12 - Build phase

103ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications <mx:Button id="button2b" label="Button 2B"/> </

Page 13 - 7ADOBE FLEX 3

5ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsStruts is based on a Model-View-Controller (MVC) architecture, with a focus on the contro

Page 14 - Deploy phase

CHAPTER 5104 <mx:Panel id="panel1" title="Panel 1 (index:2)" creationPolicy="queued" creationIndex="2&quo

Page 15

105ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsaddToCreationQueue(id:Object, preferredIndex:int, callbackFunction:Function, parent:IFl

Page 16 - Secure phase

CHAPTER 5106 <mx:Form> <mx:FormItem label="first:"> <mx:HBox id="box1" creationPolicy="no

Page 17 - 11ADOBE FLEX 3

107ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications addToCreationQueue('redBox', 4); addToCreationQueue('blueBox', 2);

Page 18 - Design phase

CHAPTER 5108The method argument is the function to call on the object. The args argument is an optional Array of arguments that you can pass to that f

Page 19 - 13ADOBE FLEX 3

109ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications <mx:DataGrid id="myGrid" width="350" height="200"

Page 20

CHAPTER 5110 } ]]></mx:Script> <mx:Panel title="Ticker Sample" width="400" height="200">

Page 21 - • Adobe ® Flex® Builder™

111Chapter 6: Building OverviewTypical Adobe® Flex™ development environment include similar tools and asset types that you work with to create Flex ap

Page 22 - CHAPTER 2

112CHAPTER 6• Web-tier compiler. The Flex module for Apache and IIS compiler provides web-tier compilation of MXML files on Apache and IIS web servers

Page 23 - Flex SDK directory structure

113ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsLoggersYou can log messages at several different points in a Flex application’s life cy

Page 24

CHAPTER 16Build phaseBuilding your application is an iterative process that includes three main tasks:1 Compile2 Debug3 TestAbout compilingCompiling y

Page 25

CHAPTER 6114SWC filesA SWC file is an archive file for Flex components and other assets. SWC files contain a SWF file and a catalog.xml file. The SWF

Page 26

115ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTo create an RSL SWC file, you add files to a library by using the include-classes and

Page 27 - 21ADOBE FLEX 3

CHAPTER 6116The alternative to embedding an asset is to load the asset at run time. You can load an asset from the local file system in which the SWF

Page 28 - • rpc.swc

117Part 2: Application DevelopmentTopicsBuilding Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 30 - Compiling an application

119Chapter 7: Flex SDK ConfigurationUse the configuration files included with Adobe® Flex® SDK to configure the compilers and other aspects of Flex.Fo

Page 31

120CHAPTER 7The location of the license.properties file is operating system-dependent. It is located in the following directories:Edit the flex-config

Page 32

121ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsConfiguration files layoutThe layout of the configuration files for Flex SDK is simple.

Page 33 - 27ADOBE FLEX 3

CHAPTER 7122You can also use a local configuration file that overrides the compiler options of the flex-config.xml file. You give this local configura

Page 34

123ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTo set the initial heap size on the Sun HotSpot JVM, change the value of the Xms proper

Page 35 - Introduction

7ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsWhen you compile your application, the Flex compiler creates a single SWF file from all o

Page 37 - Client security overview

125Chapter 8: Using the Flex CompilersAdobe® Flex® application and component compilers can be opened on the command line, in Adobe® Flex® Builder™, an

Page 38 - • Keyboard and mouse input

126CHAPTER 8The following example shows the input and output of the Flex compilers:You open the application compiler with the mxmlc command-line tool,

Page 39 - About sandboxes

127ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsFlex Builder project compiler. The Flex Builder application compiler is opened by Fle

Page 40 - • Stand-alone Flash Player

CHAPTER 8128By default, Flex Builder exposes the compilation options through the project properties. If you want to use a configuration file, you can

Page 41

129ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe mxmlc command-line compiler does not generate an HTML wrapper. You must create your

Page 42

CHAPTER 8130The compc command-line compiler. You open the compc compiler from the command line to create a SWC file. For more information, see “Using

Page 43 - Deploying secure applications

131ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTo use the compc compiler, you should understand how to pass options and use configurat

Page 44

CHAPTER 8132This displays a menu of choices for getting help. The most common choice is to list the basic configuration options:mxmlc -help listTo see

Page 45 - Loading assets

133ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing abbreviated option namesIn some cases, the command-line help shows an option with

Page 46

CHAPTER 18About debugging an applicationFlex provides several tools that you use to debug your application, including the following:AIR Debug Launcher

Page 47 - Using J2EE authentication

CHAPTER 8134You pass all other options as you would when you open the command-line compilers. The following example sets the locale and source path wh

Page 48

135ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsFor example, if your application’s top-level file is called MyApp.mxml, the compiler fi

Page 49

CHAPTER 8136In some cases, options have multiple parent tags, as with the fonts options, such as compiler.fonts.managers and compiler.fonts.languages.

Page 50 - Using RPC services

137ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications</compiler>However, the <manager-class> leaf node is unique, so you can set

Page 51 - Making other connections

CHAPTER 8138About option precedenceYou can set the same options in multiple places and the Flex compilers use the value from the source that has the h

Page 52 - Using sockets

139ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing mxmlc, the application compilerYou use the application compiler to compile SWF fi

Page 53 - Using SSL

CHAPTER 8140as3=true|falseUse the ActionScript 3.0 class-based object model for greater performance and better error reporting. In the class-based obj

Page 54

141ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsdefault-background-color intSets the application’s background color. You use the 0x not

Page 55 - Disabling viewSourceURL

CHAPTER 8142defaults-css-url stringDefines the location of the default style sheet. Setting this option overrides the implicit use of the defaults.css

Page 56 - ActionScript

143ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationses=true|falseInstructs the compiler to use the ECMAScript edition 3 prototype-based obj

Page 57 - Handling errors

9ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsWhat happens during a request to a SWF file When a customer requests the SWF file, the we

Page 58 - Using passwords

CHAPTER 8144fonts.languages.language-range lang range Specifies the range of Unicode settings for that language. For more informa-tion, see “Using Sty

Page 59 - SharedObject.getLocal()

145ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsinclude-libraries library [...]Links all classes inside a SWC file to the resulting app

Page 60 - About the mms.cfg file

CHAPTER 8146keep-all-type-selectors=true|falseInstructs the compiler to keep a style sheet’s type selector in a SWF file, even if that type (the class

Page 61 - About the Settings Manager

147ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationslibrary-path path-element [...]Links SWC files to the resulting application SWF file. T

Page 62 - Other resources

CHAPTER 8148load-externs filename [...]Specifies the location of an XML file that contains <def>, <pre>, and <ext> symbols to omit f

Page 63 - General guidelines

149ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsoptimize=true|falseEnables the ActionScript optimizer. This optimizer reduces file size

Page 64

CHAPTER 8150runtime-shared-library-path=path-element,rsl-url[,policy-file-url,failover-url,...]Specifies the location of a runtime shared library (RSL

Page 65 - Calculating elapsed time

151ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsshow-actionscript-warnings=true|falseShows warnings for ActionScript classes. The defau

Page 66

CHAPTER 8152source-path path-element [...]Adds directories or files to the source path. The Flex compiler searches direc-tories in the source path for

Page 67 - Calculating memory usage

153ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationstarget-player=player_versionSpecifies the version of Flash Player that you want to targ

Page 68 - Disabling SpeedStep

CHAPTER 110Secure phaseSecurity is not necessarily a phase of the application development process, but is an issue that you should take into considera

Page 69 - Changing timeout length

CHAPTER 8154The following sections provide examples of using the mxmlc application compiler options on the command line. You can also use these techni

Page 70 - Reducing SWF file sizes

155ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsAdding metadata to SWF filesThe application compilers support adding metadata to SWF fi

Page 71 - Examining linker dependencies

CHAPTER 8156/rdf:li><rdf:li xml:lang='en-us'>it r0x0rs</rdf:li></rdf:Alt></dc:description><dc:publisher>Fra

Page 72 - CHAPTER 4

157ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsFor more information about the HTML wrapper, see “Creating a Wrapper” on page 311.Using

Page 73 - • Using modules

CHAPTER 8158Incremental compilation can help reduce compile time on small applications, but you achieve the biggest gains on larger applications. The

Page 74 - • Using run-time stylesheets

159ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsCONFIG::debugging {// Execute debugging code here.}To pass constants, you use the compi

Page 75 - Using multiple SWF files

CHAPTER 8160The following example conditionalizes which class definition the compiler uses when compiling the application: // compilers/MyButton.aspac

Page 76

161ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsPassing StringsWhen passing Strings, you must add extra quotes to ensure that the compi

Page 77 - Application coding

CHAPTER 8162The component compiler can take most of the application compiler options, and the options described in this section. For a description of

Page 78

163ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsOn the command line, you cannot point the compc utility to a single directory and have

Page 79

11ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications• Does not allow web content to read any data from a server that is not from the same do

Page 80

CHAPTER 8164The following sections describe common scenarios where you could use the compc command-line compiler. You can apply the techniques describ

Page 81

165ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTo use components that are not in a package in a Flex application, you must declare a n

Page 82 - Using styles

CHAPTER 8166Compiling components in packagesSome components are created inside packages or directory structures so that they can be logically grouped

Page 83 - • Redraw that control

167ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:mine="

Page 84

CHAPTER 8168The namespace option matches a namespace (such as “http://www.adobe.com/2006/mxml”) with a manifest file. The include-namespaces option in

Page 85 - Working with containers

169ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationscompc -source-path . -output c:/jrun4/servers/flex2/flex/WEB-INF/flex/user_classes/MyB

Page 86 - Using absolute sizing

CHAPTER 8170compc -source-path . -output c:/jrun4/servers/flex2/flex/WEB-INF/flex/user_classes/MyButtons.swc -namespace http://acme2006AcmeManifest.

Page 87 - Improving effect performance

171ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsClasses that you add with the include-sources option can be accessed from the generic n

Page 88 - Improving rendering speed

CHAPTER 8172If you want to add many resources to the SWC file, consider using a configuration file rather than listing all the resources on the comman

Page 89

173ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications• Usage of deprecated or removed ActionScript 2.0 APIs.• Situations where APIs behave d

Page 90 - Using large data sets

CHAPTER 112The following example shows a typical deployment environment for a Flex SDK application: In this example, the customer requests the applica

Page 91

CHAPTER 8174About SWC filesA SWC file is an archive file, sometimes also referred to as a class library, for Flex components and other assets. SWC fil

Page 92

175ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDistributing SWC filesAfter you generate a SWC file, you can use it in your Flex applic

Page 93

CHAPTER 8176For example:<?xml version="1.0"?><componentPackage><component id="MyButton" class="package1.MyButt

Page 94 - Styling AxisRenderer objects

177ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThis utility is intended to improve the experience of users of the command-line compile

Page 95 - Using drop shadows

CHAPTER 8178The following example shows that fcsh dramatically reduces compilation time when compiling the same appli-cation multiple times: (fcsh) mx

Page 96 - </mx:Application>

179ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsmxmlc arg1 [...]Compiles and optimizes the target Flex application or module using the

Page 98 - About startup order

181Chapter 9: Using Flex Ant TasksThe Adobe® Flex® Ant tasks provide a convenient way to build your Flex projects using an industry-standard build man

Page 99 - 93ADOBE FLEX 3

182CHAPTER 9Using Flex Ant tasks You can use the Flex Ant tasks in your existing projects or create new Ant projects that use them. There are three ta

Page 100 - Using deferred creation

183ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications<source-path path-element="${FLEX_HOME}/frameworks"/></mxmlc><

Page 101 - • Accordion

13ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsBuild phaseTo build an application for Flex SDK, you define a directory structure on you

Page 102 - CHAPTER 5

CHAPTER 9184Working with compiler options The compc and mxmlc compilers share a very similar set of options. As a result, the behavior of the mxmlc an

Page 103

185ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsMultiple argument options Some compiler options, such as the default-size option, take

Page 104 - Creating deferred components

CHAPTER 9186The following example shows how to use the metadata nested element: <mxmlc ...><metadata description="foo app"><c

Page 105

187ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following options are implemented as implicit FileSets: compiler.external-library-p

Page 106

CHAPTER 9188<?xml version="1.0" encoding="utf-8"?><!-- myMXMLCBuild.xml --><project name="My App Builder"

Page 107 - Using ordered creation

189ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing the compc task You use the compc Flex Ant task to compile component SWC files. Th

Page 108

CHAPTER 9190Example The following example compc task builds a new SWC file that contains two custom components and other assets. The components are ad

Page 109 - Setting queue order

191ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe html-wrapper task outputs the index.html and AC_OETags.js files for your Flex appli

Page 110

CHAPTER 9192The following table describes the supported attributes of the html-wrapper task: Attribute Descriptionapplication The name of the SWF obje

Page 111

193ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsRequired attributes The html-wrapper task requires the swf attribute. In addition, if y

Page 112

© 2008 Adobe Systems Incorporated. All rights reserved.Building and Deploying Adobe Flex® 3 ApplicationsIf this guide is distributed with software tha

Page 114

CHAPTER 9194<taskdef resource="flexTasks.tasks" classpath="${basedir}/lib/flexTasks.jar"/><property name="FLEX_HOME&

Page 115

195Chapter 10: Using Runtime Shared LibrariesAdobe® Flex® supports Runtime Shared Libraries (RSLs), which you can configure.TopicsIntroduction to RSLs

Page 116

196CHAPTER 10You can create your own RSLs from custom libraries. You do this by using either the Adobe® Flex® Builder’s™ Build Project option for your

Page 117 - Chapter 6: Building Overview

197ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsYou can also use the external-library-path, externs, or load-externs compiler options t

Page 118 - Debugger

CHAPTER 10198With RSLs, the RSL needs to be downloaded once only. For two applications that use the same RSL, the result is an aggregate download size

Page 119 - About application files

199ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsRSL considerationsRSLs are not necessarily beneficial for all applications. You should

Page 120 - SWC files

CHAPTER 10200The type of caching used by an RSL is based on the type of RSL. Standard or cross-domain RSLs are stored in the browser’s cache. If the u

Page 121 - Other assets

201ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe options on the command line can also be represented by settings in the flex-config.

Page 122 - CHAPTER 6

CHAPTER 10202On the command line, you typically specify that the output of compiling a library be an open directory rather than a SWC file by using th

Page 123

203ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications• Compile your application against the library When you compile your Flex application,

Page 124

15Chapter 2: Flex Application StructureOne of your first tasks when developing an Adobe® Flex™ application is to set up your development directory str

Page 125 - About configuration files

CHAPTER 10204About cross-domain RSLsCross-domain RSLs can be used by applications in any domain or sub-domain. The benefits of cross-domain RSLs are t

Page 126 - Root variables

205ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsYou can also use digests for standard RSLs. This is useful if you update your RSLs freq

Page 127 - Flex SDK configuration

CHAPTER 10206About failoverThe failover feature is used for two reasons:• If the Flash Player is not at least version 9.0.115 and it tries to load a s

Page 128 - JVM configuration

207ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications4 Select the Library Path tab:5 Click the Add SWC button. The Add SWC dialog box appear

Page 129 - Flash Player configuration

CHAPTER 102087 Click OK to add the SWC file to your project’s library path. Flex Builder adds the new SWC file to the list of SWC files in the Library

Page 130 - CHAPTER 7

209ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications10 For Verification, select Digests if you are using a cross-domain RSL or if you are u

Page 131 - About the Flex compilers

CHAPTER 10210Compile with standard or cross-domain RSLs on the command lineTo use standard or cross-domain RSLs in your application on the command lin

Page 132 - Application compilers

211ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following example shows how to use the runtime-shared-library-path option when comp

Page 133 - 127ADOBE FLEX 3

CHAPTER 10212If you are using a cross-domain RSL, you can also specify the location of the crossdomain.xml file, and the location of one or more RSLs

Page 134

213ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIf you use the optimizer tool, you must keep track of two separate library files: one f

Page 135 - About the component compiler

16CHAPTER 2Flex Builder installation directory structureWhen you install Flex Builder, you install Flex SDK plus Flex Builder. The installer creates t

Page 136 - CHAPTER 8

CHAPTER 10214Example of creating and using a standard and cross-domain RSLThis example walks you through the process of creating a library and then us

Page 137 - Command-line syntax

215ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThis links the library at compile time, which does not result in any benefits of extern

Page 138

CHAPTER 10216Next, you create a crossdomain.xml file. If the domain that are you running the Flex application on is my-local-domain.com, then you can

Page 139

217ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIncluded framework RSLsThe framework RSLs are located in the flex_sdk_dir/frameworks/rs

Page 140

CHAPTER 10218The following example shows the configuration file that loads a framework RSL:<runtime-shared-library-path><path-element>libs

Page 141 - Configuration file syntax

219ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following table shows the locations of the Player cache on various platforms:Using

Page 142 - Understanding leaf nodes

CHAPTER 102204 Select the Library Path tab:5 Select Runtime Shared Library (RSL) from the Framework Linkage drop-down list. This instructs the appli-c

Page 143 - Appending values

221ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsYou can view the settings of the SWC files that are included with Flex but whose classe

Page 144 - About option precedence

CHAPTER 10222Customize the deployment location of the framework RSLs1 Edit the framework.swc file’s settings in the Library Path Item Options dialog b

Page 145 - 139ADOBE FLEX 3

223ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIn the Deployment Path/URL field, enter the location of the SWZ file. For example, “htt

Page 146

17ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDevelopment directory structureAs part of the process of setting up the directory struct

Page 147 - 141ADOBE FLEX 3

CHAPTER 10224With the mxmlc command-line compiler, use the following command to compile the application:cd projectmxmlc -static-link-runtime-shared-li

Page 148 - Adobe Flex 3 Developer Guide

225ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTroubleshooting RSLsRSLs can be complicated to create, use, and deploy. The following t

Page 149 - 143ADOBE FLEX 3

CHAPTER 10226#2148This error occurs when you try to open an application that uses RSLs in the standalone player or in the browser by using the file sy

Page 150 - Adobe Flex 3 Devel

227Chapter 11: LoggingYou can log messages at several different points in an Adobe® Flex® application’s life cycle. You can log messages when you comp

Page 151 - • Transient

228CHAPTER 11The following example shows the types of logging you can do in the appropriate environment:To use client-side debugging utilities such as

Page 152

229ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe debugger version of Flash Player lets you take advantage of the client-side logging

Page 153 - 147ADOBE FLEX 3

CHAPTER 11230On Microsoft Windows XP, the default location was \Documents and Settings\user_name. On Microsoft Windows 2000, the default location was

Page 154

231ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsLog file locationThe default log file location changed between the initial Flash Player

Page 155 - 149ADOBE FLEX 3

CHAPTER 11232 } ]]></mx:Script> <mx:Label text="{reportVersion()}"/> <mx:Label text="{reportType()}&q

Page 156

233ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications <mx:Script><![CDATA[ private function traceEvent(event:Event):void

Page 157 - 151ADOBE FLEX 3

CHAPTER 218The following example shows an example of the directory structure of a simple Flex application:This application consists of a root applicat

Page 158

CHAPTER 11234The logging API consists of the following parts:Logger The logger provides an interface for sending a message to an active target. Logge

Page 159

235ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe levels of logging messages are defined as constants of the LogEventLevel class. The

Page 160 - Basic example of using mxmlc

CHAPTER 112363 When you create a target within ActionScript, call the Log class’s addTarget() method to add the new target to the logging system. Call

Page 161 - Adding metadata to SWF files

237ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications useProxy="false" result="myData=ArrayCollection(srv.last

Page 162 - Editing application settings

CHAPTER 11238 includeCategory="true" includeLevel="true" > <mx:filters> <mx:Array&

Page 163 - About incremental compilation

239ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationspackage { // The empty package. import mx.controls.Button; import flash.events.*;

Page 164 - Using conditional compilation

CHAPTER 11240Within the application that uses the MyCustomLogger class, define a TraceTarget, as the following example shows:<?xml version="1.

Page 165 - Using inline constants

241ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe previous example logs messages dispatched from any category because the TraceTarget

Page 166 - Passing expressions

CHAPTER 11242 public class MyCustomLogger2 extends Button { private var myLogger:ILogger; public function MyCustomLogger2() {

Page 167 - Passing Strings

243ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications } }}Compiler loggingFlex provides you with control over the output of warnin

Page 168

19ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThere are no inherent restrictions in Flex for the location of the root directory of you

Page 170

245Chapter 12: Using the Command-Line DebuggerIf you encounter errors in your applications, you can use the debugging tools to set and manage breakpoi

Page 171

246CHAPTER 12This topic describes how to use the fdb command-line debugger. To use the Flex Builder debugger, see “Running and Debugging Applications”

Page 172

247ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsCommand-line debugger limitationsThe command-line debugger supports debugging only at t

Page 173

CHAPTER 122484 Select the “Internet Explorer should check to see whether it is the default browser” option, and click OK.The next time you start Inter

Page 174

249ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsStarting a session with the stand-alone Flash PlayerYou can start a debugging session w

Page 175

CHAPTER 12250You can also compile an application SWF file by using the web-tier compiler or the Flex Builder compiler. For more information on Flex co

Page 176 - Adding utility classes

251ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing the command-line debugger commandsThe fdb command-line debugger includes commands

Page 177 - Adding nonsource classes

CHAPTER 12252[trace] RadioButtonGroup.addInstance: instance = _level0._VBox0._Accordion0._Form2._FormItem3._RadioButton1 data = undefined label = 2005

Page 178 - Viewing errors and warnings

253ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following table summarizes the commands for manipulating breakpoints with the Actio

Page 179 - About logging

CHAPTER 220When you embed an asset, you compile it into your application’s SWF file. The advantage to embedding an asset is that it is included in the

Page 180 - About SWC files

CHAPTER 12254Breakpoint 1, myFunc() at file1.mxml:5 5ta1.text = "Clicked";(fdb)To see all breakpoints and their numbers, use the info breakp

Page 181 - About manifest files

255ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications(fdb) source mycommands.txt (fdb) source mydir\mycommands.txt (fdb) source c:\mydir\myc

Page 182

CHAPTER 12256You can temporarily disable autodisplay expressions by using the disable display command. The disable display command has the following s

Page 183 - Using fcsh

257ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTo set the list location to where the execution is currently stopped, use the home comm

Page 184 - About fcsh options

CHAPTER 12258Viewing and changing the current fileThe list command acts on the current file by default. To change to a different file, use the cf comm

Page 185 - 179ADOBE FLEX 3

259ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIf you use truncated file and function names, fdb tries to map the argument to an unamb

Page 186

CHAPTER 12260For additional information about these options, use the help command, as the following example shows:(fdb) help info targetsHandling faul

Page 187 - Installation

261ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsGetting helpUse the help command to get information on particular topics. The help comm

Page 189

263Chapter 13: Using ASDocASDoc is a command-line tool that you can use to create API language reference documentation as HTML pages from the classes

Page 190 - Single argument options

21ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following example shows two Flex applications, appRoot1 and appRoot2. Each applicati

Page 191 - Nested elements

264CHAPTER 13In this example, the source code for the Button class is in the directory C:\flex\frameworks\source\mx\controls. The output is written to

Page 192 - Implicit FileSets

265ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsPlacing ASDoc commentsPlace an ASDoc comment immediately before the declaration for a c

Page 193 - Using the mxmlc task

CHAPTER 13266The tag section begins with the first ASDoc tag in the comment, which is defined by the first @ character that begins a line, ignoring le

Page 194

267ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsFor example, to exclude documentation on the click event in the MyButton subclass of th

Page 195 - Using the compc task

CHAPTER 13268Because asterisks (*) are used to delimit comments, ASDoc does not support asterisks within a comment. To use an asterisk in an ASDoc com

Page 196 - Using the html-wrapper task

269ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDocumenting ActionScript elementsYou can add ASDoc comments to class, property, method,

Page 197 - Supported attributes

CHAPTER 13270*/public var myButtonLabel:String;A best practice for a property is to include the @default tag to specify the default value of the prope

Page 198 - • no-player-detection

271ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications* @private*/public function set html(value:Boolean):void {};The following rules define

Page 199 - Example

CHAPTER 13272* @see someOtherMethod*/public function myMethod(param1:String, param2:Number):Boolean {}If the method takes an argument, include an @par

Page 200

273ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDocumenting default propertiesThe [DefaultProperty] metadata tag defines the name of th

Page 201 - Libraries

CHAPTER 222For shared MXML and ActionScript files that are outside of the application’s directory structure, you modify the source path to include the

Page 202 - About linking

CHAPTER 13274* </table>** @eventType buttonDown*/ public static const BUTTON_DOWN:String = "buttonDown"The ASDoc tool does several thi

Page 203 - RSL benefits

275ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsASDoc tagsThe following table lists the ASDoc tags:ASDoc tag Description Example@copy

Page 204 - CHAPTER 10

CHAPTER 13276@example exampleTextApplies style properties, generates a heading, and puts the code example in the correct loca-tion. Enclose the code i

Page 205 - About caching

277ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing the @see tagThe @see tag lets you create cross-references to elements within a cl

Page 206 - Creating libraries

CHAPTER 13278• PackageName ASDoc looks in a different package for the link destination.• global ASDoc looks in the Top Level package for the link de

Page 207

279ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsSummary of commonly used HTML elementsThe following table lists commonly used HTML tags

Page 208 - • library.swf

CHAPTER 13280Running the ASDoc tool You use the following options to specify the list of classes processed by the asdoc command: doc-classes, doc-sour

Page 209 - About standard RSLs

281ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIn this example, the classes must be located at comps\GraphingWidget.as and comps\Graph

Page 210 - About cross-domain RSLs

CHAPTER 13282If you set the exclude-dependencies option to true, dependent classes found when compiling classes are not documented. The default value

Page 211 - Option Description

283ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe asdoc command also recognizes the following options from the compc component compil

Page 212 - About failover

23ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsYou can also create SWC files that you package and reuse among multiple applications. Yo

Page 213 - Select the Library Path tab:

CHAPTER 13284For more information, see “Using mxmlc, the application compiler” on page 139. All other application compiler options are accepted but ig

Page 214

285Chapter 14: VersioningYou might encounter some versioning issues when working on Adobe® Flex® applications. When compiling, you can choose the vers

Page 215 - 209ADOBE FLEX 3

286CHAPTER 14Using multiple SDKsFlex Builder lets you change the version of the SDK that you use to compile your projects. You can select the SDK when

Page 216

287ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsWhen you set the compatibility-version option, you must be sure that the configuration

Page 217

CHAPTER 14288 compiler option set to 2.0.1 and once without setting it. --><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml&quo

Page 218 - Optimizing RSL SWF files

289ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsMenu control’s horizontalGap propertyThe default value of the horizontalGap prop-erty f

Page 219

CHAPTER 14290Border style for Panel containersYou can set the borderStyle property to "solid" and set a borderColor and borderThickness prop

Page 220

291ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDateChooser subcomponent stylesThe cornerRadius and fillColors styles are applied to th

Page 221

CHAPTER 14292PopUpManager subcompo-nent stylesPopUp controls inherit their styles from the Application if they were not explicitly set on the PopUp co

Page 222 - Using the framework RSLs

293ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe configuration file syntax is also different between SDK 2.0.1 and SDK 3. If you use

Page 223

iiiContentsPart 1: Application DesignChapter 1: Application Development PhasesDesign phase . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 224 - About the Player cache

CHAPTER 224Modules let you split your application into several separate SWF files. The main application, or shell, can dynam-ically load other SWF fil

Page 225 - 219ADOBE FLEX 3

CHAPTER 14294<fonts> <managers> <manager-class> flash.fonts.JREFontManager </manager-class> <manager-class

Page 226

295ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTargeting Flash Player versionsYou can use the target-player compiler option to specify

Page 228

297Part 3: Application Deployment TopicsDeploying Flex Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 229

298PART 3

Page 230

299Chapter 15: Deploying Flex ApplicationsWhen you deploy an Adobe® Flex® application, you make the application accessible to your users. The process

Page 231 - Troubleshooting RSLs

300CHAPTER 15Deployment optionsThe following example shows a typical deployment environment for a Flex application: Deploying an application for Flex

Page 232

301ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications• Write a wrapper for the SWF file if you access it from an HTML, JSP, ASP, or another

Page 233 - Chapter 11: Logging

CHAPTER 15302Accessing data services from a deployed applicationIn a typical Flex development environment, you build and test your application behind

Page 234 - CHAPTER 11

303ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIn general, all compiled SWF files that are stored in the project’s /bin-debug director

Page 235 - 229ADOBE FLEX 3

25ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe mxmlc compiler has many options that you can specify on the command line, or that yo

Page 236 - TraceOutputFileEnable=1

CHAPTER 15304Deployment checklistThe deployment checklist contains some common system configuration issues that customers have found when deploying Fl

Page 237 - Player\Logs

305ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsHistory management and deep linking To support history management and deep linking, you

Page 238

CHAPTER 15306Security files If you use container-based security, then be sure to update your security constraints to include your Flex application. In

Page 239 - Using the logging API

307ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTypes of network accessDeployed Flex applications typically make several types of reque

Page 240 - • mx.data.*

CHAPTER 153084 Direct access of a web service. In the preceding example, the client directly accesses a service on finance.example.com. If a deployed

Page 241 - DEBUG, all log levels are

309ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsStep 2. Verify access from server to server within your firewallIn some cases, an exter

Page 242

CHAPTER 15310Step 4. Configure the proxy serverIn “Step 3. Verify access to your servers from outside the firewall” on page 309, you ensure that you c

Page 243

311Chapter 16: Creating a WrapperAdobe® Flex™ applications can take the form of a SWF file that you embed in an HTML page by using the <object>

Page 244

312CHAPTER 16Adobe® Flex® Builder™and the Flex module for Apache and IIS generate a wrapper that embeds your Flex appli-cation. The Flex Builder wrapp

Page 245

313ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsYou typically use the index.template.html file found in each of these directories as th

Page 246

CHAPTER 226Compiling a Flex Builder applicationWhen you compile a project with Flex Builder, you open the Flex compilers from within Flex Builder itse

Page 247

CHAPTER 16314For more information about Express Install, see “Adding Express Install to your wrapper” on page 320. For more information about deep lin

Page 248

315ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsCreating a simple wrapperYou can write your own wrapper for your SWF files rather than

Page 249 - Compiler logging

CHAPTER 16316The following example illustrates the minimum number of requests that the client browser makes when JavaScript is enabled:The following e

Page 250

317ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsdocument.write("<embed name='MyApp' src='MyApp.swf' plugins

Page 251

CHAPTER 16318<noscript> block The code in the <noscript> block uses <object> and <embed> tags to embed the SWF file in the HT

Page 252 - Generating debug SWF files

319ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsAdding features to the wrapperThe default wrapper that Flex Builder creates includes de

Page 253 - Using the default browser

CHAPTER 16320• Do not put the contents of the JavaScript file directly in the HTML page. This causes Internet Explorer to prompt the user before enabl

Page 254 - Starting a debugging session

321ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications• playerProductInstall.swf• YourApp.swfThe AC_OETags.js file defines functions that the

Page 255

CHAPTER 16322The <object> and <embed> tags support a set of properties that add additional functionality to the wrapper. These properties

Page 256 - Variable Description

323ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following example shows a simple <embed> tag with the optional quality attrib

Page 257 - Running the debugger

27ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsHowever, if your application accesses assets at run time, the application requests asset

Page 258 - Setting breakpoints

CHAPTER 16324The following table describes the supported <object> and <embed> tag properties: Property Type DescriptionalignString Specifi

Page 259 - (fdb) continue

325ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsallowScriptAccessString Controls the ability to perform outbound scripting from within

Page 260

CHAPTER 16326bgcolorString Specifies the background color of the application. Use this property to override the background color setting specified in

Page 261

327ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationscodetypeString Defines the content type of data expected when downloading the applicati

Page 262 - Viewing file contents

CHAPTER 16328hspaceint Specifies the amount of white space inserted to the left and right of the SWF file. The default value is typically not specifie

Page 263

329ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsqualityString Defines the quality of playback in Flash Player. Valid values of quality

Page 264

CHAPTER 16330styleString Specifies style information for the SWF file.The syntax of the value of the style property is determined by the default style

Page 265 - Getting status

331ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe <object> and <embed> tags can also take additional properties that are

Page 266 - Handling faults

CHAPTER 16332Requesting an MXML file without the wrapperIf you are using the web-tier compiler, also known as the Flex module for Apache and IIS, you

Page 267 - Terminating the session

333Chapter 17: Using Express InstallAfter developing an application, you want to ensure that all users can run it and that they have a current version

Page 269 - Chapter 13: Using ASDoc

334CHAPTER 17Editing your wrapper for Express InstallAfter you compile your application into a SWF file, you write a wrapper that embeds that SWF file

Page 270 - Creating ASDoc comments

335ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsAdd Express Install support to your wrapper1 Open your wrapper in a text editor.2 Add o

Page 271 - Formatting ASDoc comments

CHAPTER 17336"bgcolor", "#869ca7","name", "MyFirstProject", "allowScriptAccess","sameDomain&quo

Page 272 - Using the @private tag

337ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUnderstanding the Express Install scriptThe scripts that implement Express Install in y

Page 273 - Using special characters

CHAPTER 17338Alternatives to Express InstallWhen you add the Express Install script to your wrapper, one of the following results occur when a client

Page 274 - Hiding text in ASDoc comments

339ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsFlash Player is available from the Firefox Plug-in Finder Service. This means that if t

Page 276

341Chapter 18: Using the Flex Module for Apache and IISTopicsIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 277 - Documenting methods

342CHAPTER 184 The compiler module returns an HTML file to the web server, which returns it to the client.5 If the SWF file was compiled successfully,

Page 278 - Documenting metadata

343ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsVersions and requirementsThe compiler module comes in the following versions: • Flex 3

Page 279

29Chapter 3: Applying Flex SecurityDevelopers (including programmers and other authors) who design and publish Flex applications can control the secur

Page 280 - Documenting MXML files

CHAPTER 18344The installer modifies your web server’s configuration. On Apache, the installer adds the following to the end of your httpd.conf file: L

Page 281 - ASDoc tags

345ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUse the web-tier compiler1 (Windows) Reboot your computer. 2 Start or restart the web s

Page 282 - CHAPTER 13

CHAPTER 18346You can add a comment to this file by using the pound (#) sign at the beginning of the line that you want to comment out.If you make chan

Page 283 - Using the @see tag

347ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsExample compiler.conf fileThe following is an example of a compiler.conf file:flex_conf

Page 284

CHAPTER 18348# increase number of lines to 10:lines_in_context=10Customizing the templateWhen the web-tier compiler compiles an MXML file into a SWF f

Page 285 - 279ADOBE FLEX 3

349ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIn addition, the template does not convert query string parameters to flashVars variabl

Page 286 - Running the ASDoc tool

CHAPTER 18350Debugging with the web-tier compilerThe web-tier compiler has the following debugging-related features:• Detects a query string parameter

Page 287 - Excluding classes

351ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsCustomizing error outputYou can select the number of lines of code to show in the brows

Page 289

30CHAPTER 3Flex supports working with the web application security of any J2EE application server. In addition, precompiled Flex applications can inte

Page 290

31ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDeclarative security is recommended over programmatic security for most applications bec

Page 291 - Chapter 14: Versioning

CHAPTER 332The only type of persistent storage is through the SharedObject class, which is embodied as a file in a directory whose name is related to

Page 292 - Backward compatibility

33ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsAbout sandboxesThe sandbox type indicates the type of security zone in which the SWF fil

Page 293 - Using themes

CONTENTSivUsing deferred creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 294

CHAPTER 334The following table shows how the sandbox type is determined:Browser securityFlash Player clients can be one of the following four types:•

Page 295 - 289ADOBE FLEX 3

35ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsSWF file loading and cross-scripting are always permitted between SWF files that reside

Page 296 - CHAPTER 14

CHAPTER 336The navigateToURL() methodThe navigateToURL() method opens or replaces a window in the Flash Player’s container application. You typically

Page 297 - 291ADOBE FLEX 3

37ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsYou can also assign a SWF file to be in the local-trusted sandbox when you load it from

Page 298

CHAPTER 338Deploy checklistBefore you deploy your application, ensure that your proxy servers, firewalls, and assets are configured properly. Adobe pr

Page 299 - 293ADOBE FLEX 3

39ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsLoading assetsThe most common task that developers perform that requires an understandin

Page 300

CHAPTER 340• Loading SWF file’s sandbox. To load an asset from a network address, you must ensure that your SWF file is in either the remote or local-

Page 301 - SDK 2.0.1 SDK 3

41ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsLoading local assetsIn some cases, your SWF file might load assets that reside on the cl

Page 302

CHAPTER 342Authentication requires a website to store information about users. This information includes the role or roles assigned to each user. In a

Page 303

43ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications<auth-constraint> <role-name>manager</role-name> </auth-constraint&

Page 304

vCreating libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 305

CHAPTER 344</table> <input type=submit> </form> The results are submitted to the container’s JAAS system with base-64 encoding, whic

Page 306 - Deployment options

45ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing secured servicesSecured services are services that are protected by resource const

Page 307 - Deploying RSLs with Flex SDK

CHAPTER 346Flash Player also provides support for versions of RTMP that are tunneled through HTTP and HTTPS. RTMP refers to RTMP transmitted within an

Page 308 - Compiling for deployment

47ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsFor more information about using the LocalConnection class, see Programming ActionScript

Page 309 - Using a headless server

CHAPTER 348By default, a SWF file served over an unsecure protocol, such as HTTP, cannot access other documents served over the secure HTTPS protocol,

Page 310 - Deployment checklist

49ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDisabling viewSourceURLIf you enabled the view source feature by setting the value of th

Page 311 - • historyFrame.html

CHAPTER 350Input validationInput validation means ensuring that input is what it says it is or is what it is supposed to be. If your application is ex

Page 312 - • SWF files

51ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsHandling errorsThe SecurityError exception is thrown when some type of security violatio

Page 313 - Types of network access

CHAPTER 352 } ]]></mx:Script> <mx:Button id="b1" label="Click Me To Trigger Security Error" click="t

Page 314 - CHAPTER 15

53ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsTo ensure that passwords are transmitted from the client to the server safely, enforce t

Page 315 - 309ADOBE FLEX 3

CONTENTSviChapter 16: Creating a WrapperAbout the wrapper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 316

CHAPTER 354About the mm.cfg fileYou configure the debugger version of Flash Player by using the settings in the mm.cfg text file. You must create this

Page 317 - About the wrapper

55ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsAbout FlashPlayerTrust filesFlash Player provides a way for administrative users to regi

Page 318 - About the HTML templates

CHAPTER 356Access the Settings Manager for your Flash Player1 Open an application in Flash Player. 2 Right-click and select Settings. The Adobe Flash

Page 319 - 313ADOBE FLEX 3

57Chapter 4: Optimizing Flex ApplicationsAfter you have a working application, you can explore ways to make that application download faster and perfo

Page 320 - About the AC_OETags.js file

58CHAPTER 4• Do not attempt to test a large application’s performance all at once. Rather, test small pieces of the application so that you can focus

Page 321 - Creating a simple wrapper

59ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications<?xml version="1.0"?><!-- optimize/ShowInitializationTime.mxml -->

Page 322 - Step 3: GET /ex/MyApp.swf

CHAPTER 460 public var sTime:Number; public var eTime:Number; public var pTime:Number; private function init():void {

Page 323 - About the HTML page

61ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsCalculating memory usageYou use the totalMemory property in the System class to find out

Page 324 - About the JavaScript file

CHAPTER 462 </mx:FormItem> <mx:FormItem label="totalMemory:"> <mx:Label text="{totmem} bytes&qu

Page 325 - Customizing the wrapper

63ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications4 Select High System Performance from the Power Schemes drop-down box.5 Click OK.Changin

Page 326

1Part 1: Application DesignTopicsApplication Development Phases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 327 - • YourApp.swf

CHAPTER 464// Set expiration date to a date in the past.response.setDateHeader("Expires", 946080000000L); //Approx Jan 1, 2000// Force alway

Page 328 - • codebase

65ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applicationsimport flash.printing.* // Error. This class is not used.import mx.controls.Button; // E

Page 329

CHAPTER 466The following table describes the tags used in this file:You can examine the list of prerequisites and dependencies for your application de

Page 330 - CHAPTER 16

67ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications<?xml version="1.0"?><!-- optimize/UnusedClasses.mxml --><mx:Ap

Page 331 - 325ADOBE FLEX 3

CHAPTER 468• Using run-time stylesheets• Using Runtime Shared Libraries (RSLs)• Loading assets at run time rather than embedding themThis section desc

Page 332

69ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsUsing character ranges for embedded fontsBy specifying a range of symbols that compose t

Page 333 - 327ADOBE FLEX 3

CHAPTER 470Rather than loading SWF files into the main application with the SWFLoader control, consider having the SWF files communicate with each oth

Page 334

71ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsIf you have multiple applications but those applications share a core set of components

Page 335 - 329ADOBE FLEX 3

CHAPTER 472To use ordered creation, you set the creationPolicy property of a container to queued, as the following example shows:<?xml version=&quo

Page 336

73ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications } ]]></mx:Script> <mx:Panel title="VBox with Repeater&quo

Page 338

CHAPTER 474 <mx:Button id="b2" label="Jack"/> <mx:Button id="b3" label="Sawyer"

Page 339 - About Express Install

75ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications </mx:Panel> <mx:Button id="myButton" click="destroyBu

Page 340 - CHAPTER 17

CHAPTER 476The weakRef parameter to the addEventListener() method provides you with some control over memory resources for listeners. A strong referen

Page 341

77ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsSome applications must call the setStyle() method during the application or object insta

Page 342

CHAPTER 478 StyleManager.getStyleDeclaration("Button").setStyle("color", 0x00CCFF); } ]]></mx:Script>

Page 343

79ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications ]]></mx:Script> <mx:Button id="myButton" label="Click Me

Page 344

CHAPTER 480When you nest containers, each container instance runs measuring and sizing algorithms on its children (some of which are containers themse

Page 345 - 339ADOBE FLEX 3

81ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsImproving effect performanceEffects let you add animation and motion to your application

Page 346

CHAPTER 482Suspending background processingTo improve the performance of effects, you can disable background processing in your application for the du

Page 347 - Apache and IIS

83ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe low setting favors playback speed over appearance and never uses anti-aliasing. The

Page 348 - Getting started

3Chapter 1: Application Development PhasesIt is difficult to define the exact process that all Adobe® Flex™ developers use to build and deploy applica

Page 349 - Versions and requirements

CHAPTER 484Enable bitmap caching only when you need it, such as during the duration of an animation, and only on a few objects at a time because it ca

Page 350 - Using the web-tier compiler

85ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsDisabling live scrollingUsing a DataGrid control with large data sets might make it slow

Page 351

CHAPTER 486<!-- optimize/VBoxRepeater.mxml --><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script><

Page 352 - CHAPTER 18

87ADOBE FLEX 3Building and Deploying Adobe Flex 3 Applications <mx:List id="birdlist" rowHeight="150" width="250&qu

Page 353 - Example compiler.conf file

CHAPTER 488Improving charting component performanceYou can use various techniques to improve the performance of charting controls. Avoiding filtering

Page 354 - Customizing the template

89ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsSpecifying gutter stylesSpecify gutter styles when possible. The gutter area of a Cartes

Page 355 - About the template’s tokens

CHAPTER 490 </mx:Panel></mx:Application>

Page 356 - $(width)

91Chapter 5: Improving Startup PerformanceAdobe® Flex® helps you improve the actual and perceived startup times of your Flex applications. You can do

Page 357 - Customizing error output

92CHAPTER 5The remaining sections of this topic describe how to use deferred creation to reduce overall application startup time and ordered creation

Page 358

93ADOBE FLEX 3Building and Deploying Adobe Flex 3 ApplicationsThe following example shows the major events that are dispatched during a container’s cr

Comments to this Manuals

No comments