Manuale UtenteSommarioContents3About Flex Documentation7Contents7Using this manual7Accessing the Flex documentation7Documentation set8Viewing online documentation8Typographical conventions8Getting Started9Contents9Introduction9Step 1: Find and replace10Application namespace11Void11Newline11Color value formats11Application and container initialization12Alpha and scale properties12Event.currentTarget12Uninitialized values12Replace _root13Alerts13Effects/behaviors14getURL() method14Step 2: Add access modifiers14Step 3: Add types15Step 4: Update events16Step 5: Import classes for package-level functions17Step 6: Put all ActionScript components in packages17Step 7: Update data services18Step 8: Charts18Step 9: Overrides18Step 10: Binding19Step 11: API updates19ActionScript 2.0 to 3.021Contents21Overview21Usability improvements22Capitalization of identifiers23Package reorganization23Accessors23Internal functionality marked private24Naming conflicts with Flex classes24Integer constants in enumerations24Abbreviations25Consistent use of prefixes25Type annotations25The this keyword25Classes and packages25Using packages26Package statement syntax26Custom component packages26Using classes27Access modifiers27Class identifiers27super()27Using external files28include28import28Embed29Initializing variables29Default values30About undefined31About NaN31Typing32Explicit typing32Type detection33Primitive types33Non-assignment expressions33Global functions34Explicit imports34Function changes35Deprecated features35Miscellaneous36MovieClip36Arrays37setInterval() and clearInterval()37Metadata37Constants38Method signatures38No arguments38Variable number of arguments38__proto__39Primitive types39Working with keys40doLater() method40LocalConnection40Flex Classes41Contents41Core classes42mx.core.Application42mx.core.Container43mx.core.ContainerAllChildrenList45mx.core.ContainerScrollPolicy45mx.core.MovieClipLoaderAsset46mx.core.MXMLUIObject46mx.core.Repeater46mx.core.ScrollView46mx.core.Skin*47mx.core.UIComponent47The alpha, scaleX, and scaleY properties50The width and height properties50The addEventHandler() method50getURL() method51The load and unload events51Validation and layout methods51Drawing methods51Enumerated values are now constants52life-cycle methods52mx.core.UIObject52mx.core.UITextFormat53mx.core.View53Containers53mx.containers.Accordion54mx.containers.accordionclasses.*54mx.containers.ApplicationControlBar55mx.containers.Box55mx.containers.buttonbarclasses.ButtonBarButton55mx.containers.Canvas55mx.containers.ControlBar55mx.containers.DividedBox56mx.containers.dividedboxclasses.*56mx.containers.Form56mx.containers.FormHeading56mx.containers.FormItem57mx.containers.gridclasses.*57mx.containers.GridRow57mx.containers.HBox57mx.containers.HDividedBox57mx.containers.LinkBar57mx.containers.NavBar58mx.containers.Panel58mx.containers.TabBar59mx.containers.tabbarclasses.Tab59mx.containers.TabNavigator59mx.containers.Tile60mx.containers.TitleWindow60mx.containers.ToggleButtonBar60mx.containers.ViewStack61Controls61mx.controls.Alert61mx.controls.alertclasses.*62mx.controls.Button62mx.controls.ButtonBar63mx.controls.ButtonBarButton63mx.controls.CalendarLayout63mx.controls.ColorPicker64mx.controls.ComboBase64mx.controls.ComboBox65mx.controls.DataGrid65mx.controls.dataGridClasses.DataGridColumn66mx.controls.dataGridClasses.DataGridListData67mx.controls.DateChooser67mx.controls.DateField68mx.controls.HorizontalList68mx.controls.HRule69mx.controls.HSlider69mx.controls.Image69mx.controls.Label69mx.controls.Link69mx.controls.List70mx.controls.listclasses.*70mx.controls.listclasses.DataProvider70mx.controls.listclasses.ListBase71mx.controls.listClasses.ListCellRenderer72mx.controls.listClasses.TileListItemRenderer72mx.controls.Loader72mx.controls.Menu73mx.controls.MenuBar73mx.controls.menuclasses.*74mx.controls.menuclasses.IMenuDataDescriptor74mx.controls.menuclasses.MenuCellRenderer74mx.controls.NumericStepper74mx.controls.PopUpButton74mx.controls.PopUpMenuButton75mx.controls.RadioButton75mx.controls.RadioButtonGroup75mx.controls.RichTextEditor75mx.controls.richtexteditorclasses.*76mx.controls.scrollClasses.ScrollBar76mx.controls.SimpleButton76mx.controls.Slider76mx.controls.sliderclasses.*77mx.controls.sliderclasses.SliderToolTip77mx.controls.TextArea77mx.controls.textclasses.*78mx.controls.TextInput78mx.controls.TileList78mx.controls.ToolTip79mx.controls.Tree79mx.controls.treeclasses.*80mx.controls.treeclasses.DefaultDataDescriptor80mx.controls.treeClasses.TreeCellRenderer80mx.controls.VRule80mx.controls.VSlider80Effects81mx.effects.AnimateProperty81mx.effects.Effect81mx.effects.EffectInstance82mx.effects.MaskEffect82mx.effects.Resize82mx.effects.SetPropertyAction82mx.effects.SetStyleAction82mx.effects.SoundEffect83mx.effects.Tween83mx.effects.TweenEffect83Events84mx.events.ChildExistenceChangedEvent84mx.events.CalendarLayoutChangeEvent84mx.events.CollectionEvent84mx.events.CursorEvent84mx.events.DataGridCellRenderer84mx.events.DataGridEvent85mx.events.DateChooserEvent85mx.events.DividerEvent85mx.events.DropdownEvent86mx.events.EventDispatcher86mx.events.FlexEvent86mx.events.IndexChangedEvent86mx.events.ItemClickEvent86mx.events.ListEvent87mx.events.ListItemSelectEvent87mx.events.LowLevelEvents87mx.events.MenuEvent87mx.events.MouseEvent88mx.utils.events.ObjectEvent88mx.utils.events.ObjectEventKind88mx.events.SliderEvent88mx.events.ToolTipEvent88mx.events.TreeEvent89mx.events.UIEventDispatcher89Formatters89mx.formatters.DateFormater89mx.formatters.NumberBase89mx.formatters.SwitchSymbolFormatter90Interfaces90Managers91mx.managers.DepthManager91mx.managers.DragManager92mx.managers.FocusManager92mx.managers.LayoutManager92mx.managers.PopUpManager93mx.managers.SystemManager93Media controls94mx.controls.MediaDisplay94mx.controls.MediaController94mx.controls.MediaPlayback94mx.controls.VideoDisplay94Printing94mx.print.PrintJob94mx.print.PrintJobType95Resources95mx.resource.*95Service tags95mx.servicetags.HTTPService95mx.servicetags.RemoteObject96mx.servicetags.WebService96Callback URLs97Skins97mx.skins.halo.RectBorder97mx.skins.halo.PopUpIcon97mx.skins.ProgrammaticSkin97mx.skins.RectBorder97States98mx.states.AddChild98mx.states.SetEventHandler98mx.states.SetProperty98mx.states.SetStyle98Utilities99mx.utils.XMLUtil99Validators99mx.validator.Validator99Data Providers101Binding105Contents105About binding105The <mx:Binding> tag must be a top-level tag106Binding from a property106Binding from all public properties in a class106Binding from a single property107Binding from a property defined by a setter and getter method107Dispatching binding events from a custom component109Binding with Flex component properties110Binding with Arrays110Events111Contents111About events112Component startup life cycle112Migrating the Event object113Using the Event object113Using the target property113Using static constants114Using function listeners115Using the EventDispatcher class116Maintaining scope117Using setCapture()117Keyboard events117Styles and Skinning119Contents119Using styles119Using the StyleManager120Changed style properties121Missing style properties121Using colors121Color value formats in CSS121Color value formats using the StyleManager and setStyle() method122CSS class selectors122Global style sheet123Using type selectors123Using units124Using skinning124Skinning assets125Drawing programmatic skins125Using embedded fonts126Themes127Behaviors129Contents129Overview130New Behaviors syntax131The name property is now the id property131The <mx:Effect> tag is no longer necessary131Renamed the playEffect() and endEffect() methods131Use binding in MXML to specify the effect132The show property is now the showTarget property132New properties added for the Zoom effect132Change to the range of several effect properties133Using the setStyle() method to set effects133New events for effect classes134Change to overriding the endEffect() method134Data Services135Contents135About Data Services135Proxy use policy136Channels136Logging137Migrating RemoteObject components137Unnamed RemoteObject137Flex 1.5 syntax138Flex 2 syntax138Named RemoteObject139Flex 1.5 syntax139Flex 2 syntax139Migrating HTTPService components140Unnamed HTTPService140Flex 1.5 syntax141Flex 2 syntax141Named HTTPService142Flex 1.5 syntax142Flex 2 syntax142Migrating WebService components143Unnamed WebService143Flex 1.5 syntax143Flex 2 syntax143Named WebService144Flex 1.5 syntax144Flex 2 syntax145Migrating secure data services145Migrating services that use run-as145Flex 1.5 syntax146Flex 2 syntax146Migrating services that use Basic authentication147Flex 1.5 syntax147Flex 2 syntax148Migrating services that use custom authentication148Flex 1.5 syntax149Flex 2 syntax149Login commands150Mapping Java types for RemoteObject150Accessing request/response data with RemoteObject152Configuration and Command Line Tools153Contents153Configuration files154Security155Flex changes155ActionScript changes155Command-line compilers156mxmlc156compc157fdb debugger158SWD files158Breakpoints158Player lock out158Deferred breakpoints158run command159print command159Commands no longer supported159Customizing Components161Contents161UIObject class removed161Class variables changed161Specifying the package162Defining the class162Defining the constructor162Creating bindable properties162Overriding a method163Clip parameters removed163Initialization sequence changed163Renamed invalidateStyle()163Additional Migration Issues165Contents165HistoryManager165Charting165Skins166Renderers166Binding167mouseDown events167alpha167Legends168Interfaces168Cell renderers169Validators170CreaditCardValidator constants moved to a new class170Deprecated methods, properties, and events171Styles171Embedding resources172Migration Patterns173Contents173Instantiating Flex controls174Using mixins175Variable enumeration and object introspection176Using the drag-and-drop feature178Other issues180Accessing event targets180Detecting keys180Controlling the feedback indicator181Setting actions181Using Timer182Using the Preloader183Accessing request data183Dimensioni: 1,14 MBPagine: 184Language: EnglishApri il manuale