MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuale Utente

Navigare online o scaricare Manuale Utente per Manuali per software MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2. Migrating Applicaitons to Flex 2 Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 184
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti

Sommario

Pagina 1

Migrating Applications to Flex 2Adobe® Flex™ 2

Pagina 2

10 Getting StartedThe basic steps are the following: “Step 1: Find and replace” on page 10 “Step 2: Add access modifiers” on page 14 “Step 3: Add t

Pagina 3

100 Flex Classes

Pagina 4 - 4Contents

1014CHAPTER 4Data ProvidersThis topic describes migrating data providers, including the dataProvider property of Flex controls and the ways you access

Pagina 5 - Contents 5

102 Data ProvidersThe following information briefly describes major migration issues: Because the DataProvider interface has been replaced by methods

Pagina 6 - 6Contents

103 The Tr e e , Menu, MenuBar, and PopUpMenuButton controls, now use a data descriptor class to access and manipulate control-specific information,

Pagina 8 - Typographical conventions

1055CHAPTER 5BindingThis topic describes the steps required to convert properties in your applications to be usable as the source for a data binding e

Pagina 9 - Getting Started

106 BindingThe <mx:Binding> tag must be a top-level tagIn Flex 1.5, you could place the <mx:Binding> tag in a Flex container. In Flex 2.0,

Pagina 10 - Step 1: Find and replace

Binding from a property 107The Flex compiler automatically generates an event named propertyChange for all public properties so the properties can be

Pagina 11 - Color value formats

108 BindingThe following is a Flex 2 example of a getter/setter pair that uses the [Bindable] metadata tag:// Define private variable.private var _max

Pagina 12 - Uninitialized values

Binding from a property 109Dispatching binding events from a custom componentTo dispatch an event to trigger data binding for a property, the property

Pagina 13 - Replace _root

Step 1: Find and replace 11This section describes only the most common targets of finding and replacing. There are many other members of Flex classes

Pagina 14 - Step 2: Add access modifiers

110 BindingBinding with Flex component propertiesYou can no longer use all properties of Flex components as the source of a data binding expression wi

Pagina 15 - Step 3: Add types

1116CHAPTER 6EventsThis topic describes changes to the Adobe Flex 2 event model for developers who are migrating Flex applications.ContentsAbout event

Pagina 16 - Step 4: Update events

112 EventsAbout eventsThe following list is a general overview of the changes to the Event model. Review all event handling in your Flex application b

Pagina 17

Migrating the Event object 113Migrating the Event objectThis section describes migration issues related to accessing the Event object.Using the Event

Pagina 18 - Step 9: Overrides

114 EventsIf you try to call another method on the target (for example, the getStyle() method), Flex returns an error. The getStyle() method is a meth

Pagina 19 - Step 11: API updates

Using function listeners 115To find the appropriate static constant for your event type, see the events section of the control’s entry in Adobe Flex 2

Pagina 20 - 20 Getting Started

116 EventsYou must also change your code if you created a custom event handler class and defined a handleEvent() method that listened for all events.

Pagina 21 - ActionScript 2.0 to 3.0

Keyboard events 117Maintaining scopePreviously, you used the mx.utils.Delegate class to provide access to the document scope within an event handler.

Pagina 23 - Accessors

1197CHAPTER 7Styles and SkinningThis topic describes styleable objects; new skinning workflow; and CSS rules. For information about changes to individ

Pagina 24 - Socket.isConnected property

12 Getting StartedApplication and container initializationThe initialize event is now dispatched later in the startup and component creation life cycl

Pagina 25 - Classes and packages

120 Styles and SkinningUsing the StyleManagerWhen you use the StyleManager to apply styles to entire classes, you must now access the class with the g

Pagina 26 - Using packages

Using styles 121Changed style propertiesThe following table shows changes to the CSS style property names:Missing style propertiesIf you applied a sty

Pagina 27 - Using classes

122 Styles and SkinningThe following are the valid color value formats in CSS:.b1 { color: red; }.b2 { color: #66CC66; }.b3 { color: rgb(22%,22%,77%);

Pagina 28 - Using external files

Using styles 123For example:<mx:Style>// The following class selector fails in Flex 2 if // there is no associated class:myClass {color: red;}//

Pagina 29 - Initializing variables

124 Styles and SkinningUsing unitsFlex no longer supports using the plus (+) and minus (-) unit modifiers.Flex no longer supports the em and ex unit t

Pagina 30 - Default values

Using skinning 125Skinning assetsThe assets that Flex includes for you to use as a basis for reskinning components are changed.Drawing programmatic sk

Pagina 31 - About undefined

126 Styles and SkinningUsing embedded fontsYou mjust use some differences in the syntax for embedded fonts. In addition, the default font manager is c

Pagina 32 - Explicit typing

Themes 127In Flex 1.5, you could use the following syntax to embed a bold italic font face:@font-face {src: url("GOTHICBI.TTF");font-style:

Pagina 34 - Global functions

1298CHAPTER 8BehaviorsThis topic describes the new architecture for behaviors in Macromedia Flex and syntax changes from Flex 1.5. For detailed inform

Pagina 35 - Deprecated features

Step 1: Find and replace 13Replace _rootRemove the use of “_root” from your application code if you used it to access the Application instance. In Fle

Pagina 36 - Miscellaneous

130 BehaviorsOverviewFlex implements effects using an architecture in which each effect is represented by two classes: Factory class Creates an objec

Pagina 37 - Metadata

New Behaviors syntax 131New Behaviors syntaxThis section describes the syntax changes to behaviors.The name property is now the id propertyYou now use

Pagina 38 - Method signatures

132 BehaviorsUse binding in MXML to specify the effect In Flex 1.5, you assigned the effect to an effect trigger property with no data binding:<mx:

Pagina 39 - __proto__

New Behaviors syntax 133Change to the range of several effect properties For the Zoom, Fade and Dissolve effects, the range of the alpha, scaleX, scal

Pagina 40 - LocalConnection

134 BehaviorsNew events for effect classesYou can now associate event listeners with effects, rather than with effect targets. All effect classes now

Pagina 41 - Flex Classes

1359CHAPTER 9Data ServicesThis topic describes how to migrate HTTPService, WebService, and RemoteObject components.ContentsAbout Data Services . . . .

Pagina 42 - Core classes

136 Data ServicesFlex 2 separates the definitions of services into a new file, services-config.xml. This file contains definitions of the services and

Pagina 43 - Member Change description

Migrating RemoteObject components 137Channels are defined in the channels section of the services-config.xml file. There are several predefined channe

Pagina 44

138 Data ServicesThe syntax for statefulness has changed. In Flex 1.5, you set the type to either stateless-class or stateful-class. In Flex 2, you se

Pagina 45

Migrating RemoteObject components 139Named RemoteObjectThis section describes how to migrate your named RemoteObject tags from Flex 1.5 to Flex 2.Flex

Pagina 46

14 Getting StartedEffects/behaviorsFor each effect, such as Fade, Sequence, and Parallel, change the name property to id. Also, remove the <mx:Effe

Pagina 47

140 Data ServicesMigrating HTTPService componentsThis section describes how to migrate your HTTPService from Flex 1.5 to Flex 2.0 syntax.For HTTPServi

Pagina 48

Migrating HTTPService components 141Flex 1.5 syntaxIn Flex 1.5, you added a URL pattern to the whitelist that matched the url of the HTTPService tag.M

Pagina 49

142 Data ServicesNamed HTTPServiceThis section describes how to migrate named HTTPService tags from Flex 1.5 to Flex 2 syntax.Flex 1.5 syntaxIn Flex 1

Pagina 50 - The addEventHandler() method

Migrating WebService components 143Migrating WebService componentsThe default value of the useProxy property is false. The WebService tags are now con

Pagina 51 - Drawing methods

144 Data ServicesMXML tag:<mx:WebService id="MyService" wsdl="http://myServer.com/services/my.wsdl" useProxy="true"/&

Pagina 52 - 52 Flex Classes

Migrating secure data services 145Flex 2 syntaxIn Flex 2, you refer to named WebServices with the destination attribute of the <mx:WebService> t

Pagina 53 - Containers

146 Data ServicesFlex 1.5 syntaxIn Flex 1.5, you specified run-as credentials as user and password attributes to pass through credentials to a service

Pagina 54

Migrating secure data services 147Migrating services that use Basic authenticationFor Basic authentication, you must change the value of the security

Pagina 55

148 Data ServicesFlex 2 syntaxIn Flex 2, you specify the URI of the channel endpoint for which you want to require authentication as the url-pattern.

Pagina 56

Migrating secure data services 149Flex 1.5 syntaxIn Flex 1.5, you specified the type of authentication and the role in the named service definition in

Pagina 57

Step 3: Add types 15The default access modifier for methods, variables, and classes is internal. This means that all classes in the same package can a

Pagina 58

150 Data ServicesLogin commandsFor custom authentication, Flex uses a custom login adapter, known as a login command, to check a principal’s credentia

Pagina 59

Mapping Java types for RemoteObject 151Object.registerClass() is not available in Flex 2. ActionScript 3 provides the flash.net.registerClassAlias. To

Pagina 60

152 Data ServicesAccessing request/response data with RemoteObjectA Java object that you call using the <mx:RemoteObject> tag has access to requ

Pagina 61 - Controls

15310CHAPTER 10Configuration and Command Line ToolsThe flex-config.xml file has undergone significant changes for Adobe Flex 2. In addition, the mxmlc

Pagina 62

154 Configuration and Command Line ToolsConfiguration filesThe Flex server relied on configuration files in the WEB-INF/flex directory. The following

Pagina 63

Security 155The following configuration files were renamed since Flex 2 Beta 2:SecurityThis section describes changes to Flex security.Flex changesYou

Pagina 64

156 Configuration and Command Line ToolsCommand-line compilersThe mxmlc and compc compilers are changed for Flex 2. This section describes these chang

Pagina 65

Command-line compilers 157In addition, because the data services subsystem changed, mxmlc no longer takes the following options: gatewayurl gatewayh

Pagina 66

158 Configuration and Command Line Toolsfdb debuggerThis section describes changes to the fdb debugger. For more information on using fds, see Chapter

Pagina 67

fdb debugger 159run commandOn Windows, you can enter either run foo.swf, in which case fdb launches Flash Player, or run, in which case fdb displays t

Pagina 68

16 Getting StartedStep 4: Update eventsThe Event model changed in Flex 2. However, you can migrate most event handlers with minimal effort. This secti

Pagina 69

160 Configuration and Command Line Tools

Pagina 70

16111CHAPTER 11Customizing ComponentsThis topic describes modifications to the process of creating components in ActionScript in Adobe Flex. This topi

Pagina 71

162 Customizing ComponentsSpecifying the packageDefine your custom components within an ActionScript package. The package reflects the directory locat

Pagina 72

Renamed invalidateStyle() 163Overriding a methodIf the method is overriding a method in a superclass, add the override keyword as the first attribute:

Pagina 73

164 Customizing Components

Pagina 74

16512CHAPTER 12Additional Migration IssuesThis topic describes miscellaneous migration issues, including charting and Runtime Shared Libraries (RSLs).

Pagina 75

166 Additional Migration IssuesSkinsSkins are now called renderers. For example, the CandlestickSkin class is now CandlestickRenderer.RenderersSome fu

Pagina 76

Charting 167In Flex 2, you set the value of the series’ itemRenderer property to a skin class that draws the ChartItem’s icon:<mx:PlotSeries itemRe

Pagina 77 - dataTipOffset

168 Additional Migration IssuesLegendsYou now enclose the data provider for Legend controls in curley braces; for example:Flex 1.x:<mx:LineChart id

Pagina 78

Cell renderers 169Cell renderersIn Flex 1.5, a cell renderer had to implement the setValue() method to access the data passed to the cell renderer:<

Pagina 79 - Flex 1.x:

Step 6: Put all ActionScript components in packages 17Step 5: Import classes for package-level functionsWhen you use package-level functions, you must

Pagina 80

170 Additional Migration IssuesValidatorsIn Flex 1.5, validators were usually triggered in response to an update of the destination of a data binding

Pagina 81

Validators 171In ActionScript, you can use the following constants: CreditCardValidatorCardType.AMERICAN_EXPRESS CreditCardValidatorCardType.DINERS_

Pagina 82

172 Additional Migration IssuesEmbedding resourcesIn Flex 1.5, embedded resources were bound to Strings that were used to reference the individual ima

Pagina 83

17313CHAPTER 13Migration PatternsThis topic describes some common patterns in migrating ActionScript in Adobe Flex applications.ContentsInstantiating

Pagina 84

174 Migration PatternsInstantiating Flex controlsIn Flex 1.x, you created a Flex control in ActionScript by first including a reference to that contro

Pagina 85

Using mixins 175Using mixinsYou can no longer attach a function to a class, unless that class has prior knowledge of that function. For example, you c

Pagina 86

176 Migration PatternsVariable enumeration and object introspectionIn Flex 1.x (ActionScript 2.0), using a for-in loop on an object let you enumerate

Pagina 87 - This class has been removed

Variable enumeration and object introspection 177// List accessors as properties:for each (var a:XML in classInfo..accessor) {ta1.text += "Proper

Pagina 88

178 Migration PatternsUsing the drag-and-drop featureWhen you convert drag-and-drop code, be aware of the following changes: The doDrag() method take

Pagina 89 - Formatters

Using the drag-and-drop feature 179Flex 2:<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"><mx:Script><![CDATA[impor

Pagina 90

18 Getting StartedStep 7: Update data servicesThe RemoteObject, HTTPService, and WebService MXML services are now known as RPC services. The RemoteObj

Pagina 91 - Managers

180 Migration PatternsOther issuesIn addition to the changes shown here, you might also encounter the issues described in this section when you conver

Pagina 92

Using the drag-and-drop feature 181Controlling the feedback indicatorTo control the feedback indicator that accompanies a drag proxy, you now use the

Pagina 93

182 Migration PatternsUsing TimerThe setInterval() and clearInterval() methods were deprecated in favor of the Timer class. You can still use these me

Pagina 94 - Printing

Accessing request data 183Using the PreloaderThe Application container supports an application preloader that uses a download progress bar to show the

Pagina 95 - Service tags

184 Migration PatternsIn Flex 2, you must use the Application.application.parameters property to get the values of these variables. The parameters pro

Pagina 96

Step 11: API updates 19Step 10: BindingTo make a user-defined variable bindable, you must now explicitly identify it by adding the [Bindable] metadata

Pagina 97 - Callback URLs

© 2006 Adobe Systems Incorporated. All rights reserved.Migrating Applications to Flex™ 2If this guide is distributed with software that includes an en

Pagina 98

20 Getting Started Expanded abbreviations. Abbreviations in property and method names have been expanded where practical. For example, the hPosition

Pagina 99 - Utilities

212CHAPTER 2ActionScript 2.0 to 3.0The ActionScript language has undergone a complete redesign. It is now a more robust, type-safe, and usable languag

Pagina 100 - 100 Flex Classes

22 ActionScript 2.0 to 3.0 A subclass cant have a var with the same name as one visible from the superclass, and you can’t override a var. You must

Pagina 101 - Data Providers

Usability improvements 23Capitalization of identifiersThe ActionScript 3.0 naming conventions match the Flex application model and the ECMAScript stan

Pagina 102 - 102 Data Providers

24 ActionScript 2.0 to 3.0ActionScript 2.0 had many instances where getter and setter methods existed rather than accessors. Now, ActionScript 3.0 use

Pagina 103

Classes and packages 25AbbreviationsActionScript 3.0 contains fewer abbreviations in method and property names. The names are as descriptive as possib

Pagina 104 - 104 Data Providers

26 ActionScript 2.0 to 3.0Using packagesThe package statement syntax has changed. In addition, you are now required to put custom ActionScript compone

Pagina 105 - About binding

Classes and packages 27Using classesThis section describes changes to ActionScript classes.Access modifiersThe new internal access modifier refers to

Pagina 106 - Binding from a property

28 ActionScript 2.0 to 3.0Using external filesThis section describes changes to embedding, including, and importing external resources with ActionScri

Pagina 107 - Binding from a property 107

Initializing variables 29Doing the latter results in a “Type annotation is not a compile-time constant” error.EmbedThe Embed syntax in ActionScript is

Pagina 108 - 108 Binding

3ContentsAbout Flex Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Using this manual . . . . . . . . . . . . . . . .

Pagina 109 - Binding from a property 109

30 ActionScript 2.0 to 3.0Default valuesThe following example shows the default values for variables of different types:var dog:int; // defaults to 0v

Pagina 110 - Binding with Arrays

Initializing variables 31About undefinedIn general, ActionScript 2.0 allowed accessing undeclared variables whose value had not yet been set. By defau

Pagina 111 - Contents

32 ActionScript 2.0 to 3.0If you previously checked against undefined for a Number, you use a similar syntax; for example:if (n == undefined) // Actio

Pagina 112 - Component startup life cycle

Typing 33Type detectionTo perform type detection, you should use is rather than typeof or instanceof. The is function examines types, whereas the inst

Pagina 113 - Migrating the Event object

34 ActionScript 2.0 to 3.0(hintString ? String:Number) is the non-assignment expression. The variable myVar is dynamically typed to be String if hintS

Pagina 114 - Using static constants

Global functions 35Function changesSome global functions have been removed and replaced with new functions. The following table shows removed global f

Pagina 115 - Using function listeners

36 ActionScript 2.0 to 3.0MiscellaneousThis section describes miscellaneous changes to the ActionScript language.MovieClipMovieClip has been replaced

Pagina 116 - 116 Events

Miscellaneous 37ArraysArrays no longer automatically update if you change the data. This means that you should no longer databind to an Array unless y

Pagina 117 - Keyboard events

38 ActionScript 2.0 to 3.0ConstantsYou can use the const keyword to define constants in ActionScript 3.0. First, you determine which class and instanc

Pagina 118 - 118 Events

Miscellaneous 39__proto__ActionScript 3.0 does not support “hacking” the prototype chain. The use of __proto__ is no longer supported. For example: Ac

Pagina 119 - Styles and Skinning

4ContentsEvents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Formatters. . . . . .

Pagina 120 - Using the StyleManager

40 ActionScript 2.0 to 3.0newstring2.prop = 1;trace(newstring2.prop); // prints '1' ActionScript 3.0:newstring = new String("hello"

Pagina 121 - data-tip-offset

413CHAPTER 3Flex ClassesThis topic describes API changes to the Flex class library in Adobe Flex 2 SDK, including class-level changes to containers, c

Pagina 122 - CSS class selectors

42 Flex ClassesCore classesThe UIObject and UIComponent classes have been combined. As a result, references to the UIObject class should be replaced b

Pagina 123 - Using type selectors

Core classes 43mx.core.ContainerThe class as been moved to the mx.core package.createLater addToCreationQueuedirectionThe direction property has been

Pagina 124 - Using skinning

44 Flex ClassesThe following table describes changes to the Container class:Member Change descriptionallChildrenList rawChildrenbackgroundAlphaDepreca

Pagina 125 - Drawing programmatic skins

Core classes 45If you set the background style, Flex ignores any value that is supplied for backgroundAlpha, backgroundColor, backgroundImage, or back

Pagina 126 - Using embedded fonts

46 Flex Classesmx.core.MovieClipLoaderAssetThe following table describes changes to the mx.core.MovieClipLoaderAsset class:mx.core.MXMLUIObjectThe MXM

Pagina 127 - Themes 127

Core classes 47mx.core.Skin*The mx.core.Skin* classes have been renamed to use the term Asset in the class name. For example, the SkinSprite class is

Pagina 128 - 128 Styles and Skinning

48 Flex ClassescreateEmptyObject()Removed. Use the new operator and the addChild() method or other methods to add new visual objects to the display li

Pagina 129 - Behaviors

Core classes 49mouseOverEffect rollOverEffectmouseOutEffect rollOutEffectmouseWheelOutsideThis event is now of type FlexMouseEvent instead of MouseEve

Pagina 130 - Overview

Contents 5Chapter 9: Data Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135About Data Services . . . . . . . . . . . . . . .

Pagina 131 - New Behaviors syntax

50 Flex ClassesThe alpha, scaleX, and scaleY propertiesThe alpha, scaleX, and scaleY properties now range from 0 to 1 instead of from 0 to 100. For ex

Pagina 132 - 132 Behaviors

Core classes 51getURL() methodIn Flex 1.5, every UIObject inherited the getURL() method from the MovieClip class. This is no longer the case. You now

Pagina 133 - New Behaviors syntax 133

52 Flex ClassesEnumerated values are now constantsIn many cases, properties that took a predefined list of values (such as the Button control’s labelP

Pagina 134 - New events for effect classes

Containers 53mx.core.UITextFormatThe following table describes the changes to the UITextFormat class:mx.core.ViewThe mx.core.View class has been remov

Pagina 135 - Data Services

54 Flex Classesmx.containers.AccordionThe following table describes changes to the Accordion class:mx.containers.accordionclasses.*The accordionclasse

Pagina 136 - Channels

Containers 55mx.containers.ApplicationControlBarThe following table describes changes to the ApplicationControlBar class:mx.containers.BoxThe followin

Pagina 137 - Unnamed RemoteObject

56 Flex Classesmx.containers.DividedBoxThe following table describes changes to the DividedBox class:mx.containers.dividedboxclasses.*The dividedboxcl

Pagina 138 - Flex 2 syntax

Containers 57mx.containers.FormItemThe following table describes changes to the FormItem class:mx.containers.gridclasses.*The gridclasses package is n

Pagina 139 - Named RemoteObject

58 Flex ClassesThe following table describes changes to the LinkBar class:mx.containers.NavBarThe mx.containers.NavBar class has been moved to mx.cont

Pagina 140 - Unnamed HTTPService

Containers 59mx.containers.TabBarThe mx.containers.TabBar class has been moved to the mx.controls package. The TabBar container now extends mx.contain

Pagina 141

6Contents

Pagina 142 - Named HTTPService

60 Flex Classesmx.containers.TileThe following table describes changes to the Tile class:mx.containers.TitleWindowThe following table describes change

Pagina 143 - Unnamed WebService

Controls 61mx.containers.ViewStackThe following table describes changes to the ViewStack class:When all children are removed from a ViewStack, Flex se

Pagina 144 - Named WebService

62 Flex Classesmx.controls.alertclasses.*The alertclasses package is now named alertClasses.mx.controls.ButtonThe Button class no longer inherits from

Pagina 145

Controls 63mx.controls.ButtonBarThe following table describes changes to the ButtonBar class:mx.controls.ButtonBarButtonThe ButtonBarButton class has

Pagina 146

64 Flex Classesmx.controls.ColorPickerThe following table describes changes to the ColorPicker class:mx.controls.ComboBaseThe following table describe

Pagina 147

Controls 65mx.controls.ComboBoxThe following table describes changes to the ComboBox class:mx.controls.DataGridThe DataGrid class now extends the new

Pagina 148

66 Flex ClassesIn Flex 2, when a DataGrid control’s width is not wide enough to show all columns, only the first column gets smaller. This applies to

Pagina 149

Controls 67mx.controls.dataGridClasses.DataGridListDataThe following table describes changes to the DataGridListData class:mx.controls.DateChooserThe

Pagina 150 - Login commands

68 Flex Classesmx.controls.DateFieldThe following table describes changes to the DateField class:mx.controls.HorizontalListThe following table describ

Pagina 151

Controls 69mx.controls.HRuleThe following table describes changes to the HRule class:mx.controls.HSliderThe following table describes changes to the H

Pagina 152 - RemoteObject

7About Flex DocumentationMigrating Applications to Flex 2 provides information on updating applications written for Flex 1.x to Flex 2.ContentsUsing t

Pagina 153 - Line Tools

70 Flex Classesmx.controls.ListThe following table describes changes made to the List class:mx.controls.listclasses.*The listclasses package name has

Pagina 154 - Configuration files

Controls 71mx.controls.listclasses.ListBaseThe following table describes changes to the ListBase class:Member Change descriptionactiveTabStyleDeclarat

Pagina 155 - Security

72 Flex Classesmx.controls.listClasses.ListCellRendererThe ListCellRenderer class is now named ListItemRenderer.The following table describes changes

Pagina 156 - Command-line compilers

Controls 73mx.controls.MenuThe following table describes changes to the Menu class:mx.controls.MenuBarThe following table describes changes to the Men

Pagina 157

74 Flex Classesmx.controls.menuclasses.*The menuclasses package has been renamed menuClasses.mx.controls.menuclasses.IMenuDataDescriptorThe following

Pagina 158 - Breakpoints

Controls 75mx.controls.PopUpMenuButtonThe following table describes changes to the PopUpMenuButton class:mx.controls.RadioButtonThe following table de

Pagina 159 - Commands no longer supported

76 Flex Classesmx.controls.richtexteditorclasses.*The richtexteditorclasses package is now named richTextEditorClasses.mx.controls.scrollClasses.Scrol

Pagina 160

Controls 77mx.controls.sliderclasses.*The sliderclasses package is now named sliderClasses.mx.controls.sliderclasses.SliderToolTipThe SliderToolTip cl

Pagina 161 - Customizing Components

78 Flex Classesmx.controls.textclasses.*The textclasses package has been renamed textClasses.mx.controls.TextInputThe following table describes change

Pagina 162 - Creating bindable properties

Controls 79Flex 1.x:<mx:TileList id="myTile" dataProvider="{dataObject}" cellRenderer="ProdtThumbnail" itemWidth=&quo

Pagina 163 - Renamed invalidateStyle()

8About Flex DocumentationDocumentation setThe Flex documentation set includes the following titles:Viewing online documentationAll Flex documentation

Pagina 164 - 164 Customizing Components

80 Flex Classesmx.controls.treeclasses.*The treeclasses package is now named treeClasses.mx.controls.treeclasses.DefaultDataDescriptorThe following ta

Pagina 165 - Additional Migration Issues

Effects 81EffectsThe “instance” classes (such as mx.effects.RotateInstance and mx.effects.ResizeInstance) have been moved to the mx.effects.effectClas

Pagina 166 - Renderers

82 Flex Classesmx.effects.EffectInstanceThe following table describes changes to the EffectInstance class:mx.effects.MaskEffectThe following table des

Pagina 167 - Charting 167

Effects 83mx.effects.SoundEffectThe following table describes changes to the SoundEffect class:These changes also apply to the SoundEffectInstance cla

Pagina 168 - Interfaces

84 Flex ClassesEventsAll events in the mx.collections package were moved to the mx.events package.In addition to the changes listed here, the events a

Pagina 169 - Cell renderers

Events 85mx.events.DataGridEventThe following table describes changes to the DataGridEvent class:mx.events.DateChooserEventThe following table describ

Pagina 170 - Validators

86 Flex Classesmx.events.DropdownEventThe following table describes changes to the DropdownEvent class:mx.events.EventDispatcherThis class has been mo

Pagina 171 - Deprecated item New item

Events 87mx.events.ListEventThe following table describes changes to the ListEvent class:mx.events.ListItemSelectEventThe following table describes ch

Pagina 172 - Embedding resources

88 Flex Classesmx.events.MouseEventThe MouseEvent class is now called FlexMouseEvent. Do not confuse this with the flash.events.MouseEvent class, whic

Pagina 173 - Migration Patterns

Formatters 89mx.events.TreeEventThe following table describes changes to the TreeEvent class:mx.events.UIEventDispatcherThis class has been removed.Fo

Pagina 174 - Instantiating Flex controls

91CHAPTER 1Getting StartedThis topic describes the first steps of migrating a Macromedia Flex 1.x application to Adobe Flex 2. This topic describes st

Pagina 175 - Using mixins

90 Flex ClassesThe following table describes the changes to the NumberBase class:mx.formatters.SwitchSymbolFormatterThe following table describes the

Pagina 176 - 176 Migration Patterns

Managers 91ManagersThis section describes changes to Flex classes in the mx.managers package.mx.managers.DepthManagerThis class has been removed. IFoc

Pagina 177

92 Flex Classesmx.managers.DragManagerInstead of setting event.handled inside the dragEnter event listener, you must call the DragManager.acceptDragDr

Pagina 178 - 178 Migration Patterns

Managers 93mx.managers.PopUpManagerThe following table describes changes to the PopUpManager class:mx.managers.SystemManagerThe SystemManager class no

Pagina 179

94 Flex ClassesMedia controlsThis section describes changes to media controls in Flex 2.mx.controls.MediaDisplayThe MediaDisplay control has been repl

Pagina 180 - Other issues

Service tags 95mx.print.PrintJobTypeThe following table describes the changes to the PrintJobType class:ResourcesThis section provides information abo

Pagina 181 - Setting actions

96 Flex Classesmx.servicetags.RemoteObjectThe RemoteObject class was moved to mx.rpc.remoting.RemoteObject. It now extends the mx.rpc.AbstractService

Pagina 182 - Using Timer

Skins 97Callback URLsCallback URLs are no longer necessary in Flex 2. Use messaging channels with endpoint mappings instead.SkinsThis section describe

Pagina 183 - Using the Preloader

98 Flex ClassesStatesThis section provides information about changes to classes in the mx.states package.mx.states.AddChildThe following table describ

Pagina 184 - 184 Migration Patterns

Validators 99UtilitiesThis section provides information about changes to classes in the mx.utils package.mx.utils.XMLUtilThe following table describes

Commenti su questo manuale

Nessun commento