View comments | RSS feed
 
 
© 2004-2006 Adobe Systems Incorporated. All rights reserved. 
Thu Jun 22 2006, 10:24 PM GMT-07:00 
 
 
 
						
					| Adobe® Flex™ 2 Language Reference | All Packages | All Classes | Language Elements | Index | Appendixes | Conventions | FramesNo Frames |  | |
| ActionScript 2.0 Migration | |||
The following table describes the differences between ActionScript 2.0 and 3.0.
| ActionScript 2.0 | ActionScript 3.0 | Comments | |
|---|---|---|---|
| Compiler directives | |||
| #endinitclip | Removed | ||
| #include | Removed | See the includestatement for similar functionality. | |
| #initclip | Removed | ||
| Constants | |||
| false | false | The value false, rather thanundefined, is the default value of a Boolean object. | |
| NaN | NaN | The value NaN, rather thanundefined, is the default value of a Number object. | |
| newline | Removed | Use the escape sequence composed of the backslash character followed by the character "n" (\n). | |
| null | null | The value null, rather thanundefined, is the default value of the Object and String classes. | |
| undefined | undefined | The value undefinedcan be assigned only to untyped variables; it is not the default value of any typed object. | |
| Global functions | |||
| asfunction | flash.text.TextField dispatches event: link | Replaced by the new event handling model. You now get the same functionality by using the syntax Event:instead ofasfunction:. When a user clicks the link, Flash Player dispatches a TextEvent object of type TextEvent.LINK, which your code can listen for with theaddEventListener()method. Any text that you decide to include is stored in the event object'stextproperty. | |
| call() | Removed | ||
| chr() | Removed | ||
| clearInterval() | flash.utils.clearInterval() | Moved to flash.utils package. | |
| clearTimeout() | flash.utils.clearTimeout() | Moved to flash.utils package. | |
| duplicateMovieClip() | flash.display.MovieClip.MovieClip() | Replaced by new MovieClip class constructor function. | |
| eval() | Removed | ||
| fscommand() | flash.system.fscommand() | Moved to flash.system package. Also, see flash.external.ExternalInterface class for JavaScript/ActionScript communication. | |
| getProperty() | Removed | To directly access properties, use the dot (.) operator. | |
| getTimer() | flash.utils.getTimer() | Moved to flash.utils package. | |
| getURL() | flash.net.navigateToURL() | Replaced by the navigateToURL()function. | |
| getVersion() | flash.system.Capabilities.version | Moved to Capabilities class and changed to accessor property. | |
| gotoAndPlay() | flash.display.MovieClip.gotoAndPlay() | This function is no longer a global function, but is still available as a method of the MovieClip class. | |
| gotoAndStop() | flash.display.MovieClip.gotoAndStop() | This function is no longer a global function, but it is still available as a method of the MovieClip class. | |
| ifFrameLoaded() | flash.display.MovieClip.framesLoaded | ||
| int() | int() | Resurrected from deprecated status as a conversion function for the new int data type. | |
| length() | String.length | This property is no longer a global property, but it is still available as a property of the String class. | |
| loadMovie() | flash.display.Loader | Use the Loader class instead. | |
| loadMovieNum() | flash.display.Loader | Use the Loader class instead. | |
| loadVariables() | flash.net.URLLoader | Use the URLLoader class instead. | |
| loadVariablesNum() | flash.net.URLLoader | Use the URLLoader class instead. | |
| mbchr() | String.fromCharCode() | Removed. Use the static String.fromCharCode()method instead. | |
| mblength() | String.length | Removed. Use String.lengthinstead. | |
| mbord() | String.charCodeAt() | Removed. Use String.charCodeAt()instead. | |
| mbsubstring() | String.substr() | Removed. Use String.substr()instead. | |
| nextFrame() | flash.display.MovieClip.nextFrame() | This function is no longer a global function, but it is still available as a method of the MovieClip class. | |
| nextScene() | flash.display.MovieClip.nextScene() | This function is no longer a global function, but it is still available as a method of the MovieClip class. | |
| on() | flash.events.EventDispatcher | Removed. Use the new event handling system in the flash.events package instead. | |
| onClipEvent() | flash.events.EventDispatcher | Removed. Use the new event handling system in the flash.events package instead. | |
| ord() | String | Removed. Use String class methods instead. | |
| parseInt() | parseInt() | A string with a leading 0 is interpreted as decimal rather than octal. For octal numbers, pass the number 8 for the radix parameter. | |
| play() | flash.display.MovieClip.play() | This function is no longer a global function, but it is still available as a method of the MovieClip class. | |
| prevFrame() | flash.display.MovieClip.prevFrame() | This function is no longer a global function, but it is still available as a method of the MovieClip class. | |
| prevScene() | flash.display.MovieClip.prevScene() | This function is no longer a global function, but it is still available as a method of the MovieClip class. | |
| print() | flash.printing.PrintJob | Removed. Use the PrintJob class instead. | |
| printAsBitmap() | flash.printing.PrintJob | Removed. Use the PrintJob class instead. | |
| printAsBitmapNum() | flash.printing.PrintJob | Removed. Use the PrintJob class instead. | |
| printNum() | flash.printing.PrintJob | Removed. Use the PrintJob class instead. | |
| random() | Math.random() | Removed. Use Math.random()instead. | |
| removeMovieClip() | Removed | Set all references to a movie clip to nullto make the movie clip eligible for garbage collection. | |
| setInterval() | flash.utils.setInterval() | Moved to flash.utils package. Consider using the Timer class instead. | |
| setProperty() | Removed | To set the value of a writable property, use the dot (.) operator. | |
| setTimeout() | flash.utils.setTimeout() | Moved to flash.utils package. | |
| showRedrawRegions() | flash.profiler.showRedrawRegions() | Moved to flash.profiler package. | |
| startDrag() | flash.display.Sprite.startDrag() | This is no longer a global function, but it is still available as a method of the Sprite class. | |
| stop() | flash.display.MovieClip.stop() | This is no longer a global function, but it is still available as a method of the MovieClip class. | |
| stopAllSounds() | flash.media.SoundMixer.stopAll() | This is no longer a global function, but it is still available as a method of the SoundMixer class, which provides global sound control. | |
| stopDrag() | flash.display.Sprite.stopDrag() | This is no longer a global function, but it is still available as a method of the Sprite class. | |
| substring() | String.substring() | This is no longer a global function, but it is still available as a method of the String class. | |
| targetPath() | Removed | ||
| tellTarget() | Removed | Use the dot (.) operator or the withstatement instead. | |
| toggleHighQuality() | flash.display.Stage.quality | Removed as a global property. Use the Stage class version instead. | |
| trace() | trace() | The trace()method accepts a comma-delimited list of arguments. | |
| unloadMovie() | flash.display.Loader.unload() | Removed. Use Loader.unload()instead. | |
| unloadMovieNum() | flash.display.Loader.unload() | Removed. Use Loader.unload()instead. | |
| updateAfterEvent() | flash.events.TimerEvent.updateAfterEvent() | This is no longer a global function, but it is still available as a method of the TimerEvent, MouseEvent, and KeyboardEvent classes. | |
| Global properties | |||
| _accProps | flash.accessibility.AccessibilityProperties | Replaced by the AccessibilityProperties class. | |
| _focusrect | flash.display.InteractiveObject.focusRect | Replaced by the focusRectproperty of the InteractiveObject class. | |
| _global | Removed | Use a static member of a class instead. | |
| _highquality | flash.display.Stage.quality | Replaced by the qualityproperty of the Stage class. | |
| _level | Removed | The concept of levels does not exist in ActionScript 3.0, which instead provides direct access to the display list. See the flash.display package for details. | |
| maxscroll | flash.text.TextField | Replaced by the maxScrollHandmaxScrollVproperties of the TextField class. | |
| _parent | flash.display.DisplayObject.parent | Replaced by the parentproperty of the DisplayObject class. | |
| _quality | flash.display.Stage.quality | Replaced by the qualityproperty of the Stage class. | |
| _root | flash.display.DisplayObject.stage | Removed. The closest equivalent is the Stage, which serves as the root of the ActionScript 3.0 display list. | |
| scroll | flash.text.TextField | Removed. Replaced by the scrollHandscrollVproperties of the TextField class. | |
| _soundbuftime | flash.media.SoundMixer.bufferTime | Replaced by the bufferTimeproperty of the SoundMixer class. | |
| this | this | Instance methods are bound to the instance that implemented the method; therefore, the thisreference inside the body of an instance method always refers to the instance that implemented the method. | |
| Operators | |||
| add (concatenation (strings)) | Removed | Use the concatenation (+) operator instead. | |
| eq (equality (strings)) | Removed | Use the equality (==) operator instead. | |
| gt (greater than (strings)) | Removed | Use the greater than ( >) operator instead. | |
| ge (greater than or equal to (strings)) | Removed | Use the greater than or equal to ( >=) operator instead. | |
| <> (inequality) | Removed | Use the inequality ( !=) operator instead. | |
| instanceof | is | Although the instanceofoperator is available, it only checks the prototype chain, which is not the primary inheritance mechanism in ActionScript 3.0. Use theisoperator to check whether an object is a member of a specific data type. | |
| lt (less than (strings)) | Removed | Use the less than ( <) operator instead. | |
| le (less than or equal to (strings)) | Removed | Use the less than or equal to ( <=) operator instead. | |
| and (logical AND) | Removed | Use the logical AND ( &&) operator instead. | |
| not (logical NOT) | Removed | Use the logical NOT ( !) operator instead. | |
| or (logical OR) | Removed | Use the logical OR ( ||) operator instead. | |
| ne (not equal (strings)) | Removed | Use the inequality ( !=) operator instead. | |
| Statements | |||
| delete | delete | The deleteoperator works only on properties of objects, but not on variables that hold references to objects. | |
| import | import | The importstatement is not optional. To use a class, you must import it, whether or not you use a fully qualified name. | |
| intrinsic | Removed | ActionScript 3.0 has a similar, but not identical, keyword named native. Thenativekeyword is similar tointrinsicin that it directs the compiler not to expect a function body, but is dissimilar in thatnativehas no effect on compile-time type checking. | |
| private | private | The ActionScript 3.0 privatekeyword specifies that an identifier is visible only within a class, and does not extend to subclasses. Moreover, in ActionScript 3.0 theprivatekeyword is enforced at both compile time and run time. | |
| set variable | Removed | Use the assignment ( =) operator instead. | |
| super | super | In ActionScript 3.0, the call to super()in a subclass constructor does not have to be the first statement in the constructor body. | |
| Accessibility class | flash.accessibility.Accessibility | ||
| isActive() Method | flash.accessibility.Accessibility.active | Changed from function to accessor property. Name changed from isActivetoactive. | |
| updateProperties() Method | flash.accessibility.Accessibility.updateProperties() | ||
| arguments class | arguments | ||
| caller Property | Removed | You can achieve the same functionality by passing arguments.calleefrom the caller function as an argument to the callee function. See the Examples section ofarguments.calleefor an example. | |
| Array class | |||
| CASEINSENSITIVE Constant | Array.CASEINSENSITIVE | Data type changed to uint. | |
| DESCENDING Constant | Array.DESCENDING | Data type changed to uint. | |
| length Property | Array.length | Data type changed to uint. | |
| NUMERIC Constant | Array.NUMERIC | Data type changed to uint. | |
| RETURNINDEXEDARRAY Constant | Array.RETURNINDEXEDARRAY | Data type changed to uint. | |
| UNIQUESORT Constant | Array.UNIQUESORT | Data type changed to uint. | |
| Array Constructor | Array.Array() | Parameter changed to use the ...(rest) parameter format. | |
| push() Method | Array.push() | Parameter changed to use the ...(rest) parameter format. | |
| sort() Method | Array.sort() | Data type of the optionsparameter changed to uint. | |
| sortOn() Method | Array.sortOn() | Data type of the optionsparameter changed to uint. The ActionScript 3.0 version also has added functionality; you can now sort on more than one field name by passing an array of objects for thefieldNameparameter, and each sort field can have its own matchingoptionsparameter if you also pass in a matching array of options flags for theoptionsparameter. | |
| splice() Method | Array.splice() | The parameters can have any data type, but the preferred data types are int and uint. The valueparameter changed to the ...(rest) parameter format. | |
| unshift() Method | Array.unshift() | The valueparameter changed to the ...(rest) format. Data type of the return value changed to uint. | |
| AsBroadcaster class | flash.events.EventDispatcher | ||
| _listeners Property[read-only] | flash.events.EventDispatcher.willTrigger() | Not a direct equivalent. The willTrigger()method tells you whether any listeners are registered, but not how many. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | Not a direct equivalent, because the ActionScript 3.0 event model lets you add event listeners to any object in the event flow, not just to the broadcasting object. | |
| broadcastMessage() Method | flash.events.EventDispatcher.dispatchEvent() | Not a direct equivalent, because the ActionScript 3.0 event model works differently. The dispatchEvent()method dispatches an event object into the event flow, while thebroadcastMessage()method sends messages directly to each registered listener object. | |
| initialize() Method | Removed | There is no direct equivalent in ActionScript 3.0, but similar functionality is achieved by subclassing the EventDispatcher class. For example, the DisplayObject class extends EventDispatcher, so all instances of the DisplayObject and DisplayObject subclasses are capable of sending and receiving event objects. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | Not a direct equivalent, because the ActionScript 3.0 event model lets you add event listeners to and remove them from any object in the event flow, not just the broadcasting object. | |
| BitmapData class | flash.display.BitmapData | ActionScript 3.0 uses the BitmapDataChannel class as an enumeration of constants that indicate which channel to use. | |
| height Property[read-only] | flash.display.BitmapData.height | Data type changed from Number to int. | |
| rectangle Property[read-only] | flash.display.BitmapData.rect | Property renamed for consistency with other members of the API. | |
| width Property[read-only] | flash.display.BitmapData.width | Data type changed from Number to int. | |
| copyChannel() Method | flash.display.BitmapData.copyChannel() | The sourceChannelanddestChannelparameters are now uint data types. | |
| draw() Method | flash.display.BitmapData.draw() | The sourceparameter is now IBitmapDrawable; DisplayObject and BitmapData both implement the IBitmapDrawable interface, so you can pass either a DisplayObject or a BitmapData object to thesourceparameter. | |
| fillRect() Method | flash.display.BitmapData.fillRect() | The colorparameter is now a uint value. | |
| floodFill() Method | flash.display.BitmapData.floodFill() | Now accepts int values for the xandyparameters and a uint value forcolor. | |
| getColorBoundsRect() Method | flash.display.BitmapData.getColorBoundsRect() | Now accepts uint values for the maskandcolorparameters. | |
| getPixel() Method | flash.display.BitmapData.getPixel() | Now accepts intparameter values and returns a uint value. | |
| getPixel32() Method | flash.display.BitmapData.getPixel32() | Now accepts intparameter values and returns a uint value. | |
| hitTest() Method | flash.display.BitmapData.hitTest() | Now accepts uint values for the firstAlphaThresholdandsecondAlphaThresholdparameters. | |
| loadBitmap() Method | Removed | ||
| merge() Method | flash.display.BitmapData.merge() | Now accepts uint values for the multiplier parameters. | |
| noise() Method | flash.display.BitmapData.noise() | Now accepts an int value for the randomSeedparameter and uint values for thelow,high, andchannelOptionsparameters. | |
| perlinNoise() Method | flash.display.BitmapData.perlinNoise() | Now accepts an int value for the randomSeedparameter and uint values for thenumOctavesandchannelOptionsparameters. | |
| pixelDissolve() Method | flash.display.BitmapData.pixelDissolve() | Now accepts an int value for the randomSeedandnumPixelsparameters and a uint value for thefillColorparameter. (ThenumPixelsparameter is namednumberOfPixelsin ActionScript 2.0.) | |
| scroll() Method | flash.display.BitmapData.scroll() | Now accepts int values for the xandyparameters. | |
| setPixel() Method | flash.display.BitmapData.setPixel() | Now accepts int values for the xandyparameters and a uint value forcolor. | |
| setPixel32() Method | flash.display.BitmapData.setPixel32() | Now accepts int values for the xandyparameters and a unit value forcolor. | |
| threshold() Method | flash.display.BitmapData.threshold() | Now accepts uint values for the threshold,color, andmaskparameters, and returns a uint value. | |
| BlurFilter class | |||
| quality Property | flash.filters.BlurFilter.quality | The qualityproperty data type changed from a Number to uint. | |
| Button class | flash.display.SimpleButton | ||
| _alpha Property | flash.display.DisplayObject.alpha | ||
| blendMode Property | flash.display.DisplayObject.blendMode | ||
| cacheAsBitmap Property | flash.display.DisplayObject.cacheAsBitmap | ||
| enabled Property | flash.display.SimpleButton.enabled | ||
| filters Property | flash.display.DisplayObject.filters | In ActionScript 3.0, the data type is Array. | |
| _focusrect Property | flash.display.InteractiveObject.focusRect | ||
| _height Property | flash.display.DisplayObject.height | ||
| _highquality Property | Removed | ||
| _name Property | flash.display.DisplayObject.name | ||
| _parent Property | flash.display.DisplayObject.parent | ||
| _quality Property | Removed | You can set rendering quality for all display objects by using flash.display.Stage.quality. | |
| _rotation Property | flash.display.DisplayObject.rotation | ||
| scale9Grid Property | flash.display.DisplayObject.scale9Grid | ||
| _soundbuftime Property | flash.media.SoundMixer.bufferTime | Moved to the SoundMixer class, which is used for global sound control. Renamed without abbreviations. Removed the initial underscore from the name. | |
| tabEnabled Property | flash.display.InteractiveObject.tabEnabled | ||
| tabIndex Property | flash.display.InteractiveObject.tabIndex | ||
| _target Property[read-only] | Removed | ||
| trackAsMenu Property | flash.display.SimpleButton.trackAsMenu | ||
| _url Property[read-only] | Removed | ||
| useHandCursor Property | flash.display.SimpleButton.useHandCursor | ||
| _visible Property | flash.display.DisplayObject.visible | ||
| _width Property | flash.display.DisplayObject.width | ||
| _x Property | flash.display.DisplayObject.x | ||
| _xmouse Property[read-only] | flash.display.DisplayObject.mouseX | ||
| _xscale Property | flash.display.DisplayObject.scaleX | ||
| _y Property | flash.display.DisplayObject.y | ||
| _ymouse Property[read-only] | flash.display.DisplayObject.mouseY | ||
| _yscale Property | flash.display.DisplayObject.scaleY | ||
| getDepth() Method | flash.display.DisplayObjectContainer.getChildIndex() | ActionScript 3.0 provides direct access to the display list, so depth is handled differently. | |
| onDragOut() EventHandler | flash.display.InteractiveObject dispatches event: mouseOut | Replaced in the new event model by a mouseOutevent, after a call toInteractiveObject.setCapture(). | |
| onDragOver() EventHandler | flash.display.InteractiveObject dispatches event: mouseOver | Replaced in the new event model by a mouseOverevent after a call to theInteractiveObject.setCapture()method. | |
| onKeyDown() EventHandler | flash.display.InteractiveObject dispatches event: keyDown | Replaced in the new event model by a keyDownevent. | |
| onKeyUp() EventHandler | flash.display.InteractiveObject dispatches event: keyUp | Replaced in the new event model by a keyUpevent. | |
| onKillFocus() EventHandler | flash.display.InteractiveObject dispatches event: focusOut | Replaced in the new event model by a focusOutevent. | |
| onPress() EventHandler | flash.display.InteractiveObject dispatches event: mouseDown | Replaced in the new event model by a mouseDownevent. | |
| onRelease() EventHandler | flash.display.InteractiveObject dispatches event: mouseUp | Replaced in the new event model by a mouseUpevent. | |
| onReleaseOutside() EventHandler | flash.display.InteractiveObject dispatches event: mouseUp | Replaced in the new event model by a mouseUpevent after a call toflash.display.InteractiveObject.setCapture(). | |
| onRollOut() EventHandler | flash.display.InteractiveObject dispatches event: mouseOut | Replaced in the new event model by a mouseOutevent. | |
| onRollOver() EventHandler | flash.display.InteractiveObject dispatches event: mouseOver | Replaced in the new event model by a mouseOverevent. | |
| onSetFocus() EventHandler | flash.display.InteractiveObject dispatches event: focusIn | Replaced in the new event model by a focusInevent. | |
| Camera class | flash.media.Camera | ||
| activityLevel Property[read-only] | flash.media.Camera.activityLevel | ||
| bandwidth Property[read-only] | flash.media.Camera.bandwidth | ||
| currentFps Property[read-only] | flash.media.Camera.currentFPS | Change in capitalization of FPS. | |
| fps Property[read-only] | flash.media.Camera.fps | ||
| height Property[read-only] | flash.media.Camera.height | Data type changed from Number to int. | |
| index Property[read-only] | flash.media.Camera.index | Data type changed from String to int. | |
| motionLevel Property[read-only] | flash.media.Camera.motionLevel | Data type changed from Number to int. | |
| motionTimeOut Property[read-only] | flash.media.Camera.motionTimeout | Data type changed from Number to int. | |
| muted Property[read-only] | flash.media.Camera.muted | ||
| name Property[read-only] | flash.media.Camera.name | ||
| names Property[read-only] | flash.media.Camera.names | ||
| quality Property[read-only] | flash.media.Camera.quality | Data type changed from Number to int. | |
| width Property[read-only] | flash.media.Camera.width | Data type changed from Number to int. | |
| get() Method | flash.media.Camera.getCamera() | ||
| onActivity() EventHandler | flash.events.ActivityEvent.ACTIVITY | ||
| onStatus() EventHandler | flash.media.Camera dispatches event: status | Replaced in the new event model by a statusStatusEvent object. | |
| setMode() Method | flash.media.Camera.setMode() | The widthandheightparameters changed to data type int. | |
| setMotionLevel() Method | flash.media.Camera.setMotionLevel() | Both parameters changed to data type int. | |
| setQuality() Method | flash.media.Camera.setQuality() | Both parameters changed to data type int. | |
| capabilities class | flash.system.Capabilities | The class name changed from lowercase to initial capitalization. | |
| Color class | flash.geom.ColorTransform | The Color class has been removed because all of its functionality can be achieved with the flash.geom.ColorTransform class. Color values can be assigned directly by using the ColorTransform class constructor or properties. ColorTransform objects can then be assigned to the colorTransformproperty of a Transform object, which in turn can be assigned to thetransformproperty of a DisplayObject instance. | |
| Color Constructor | flash.geom.ColorTransform.ColorTransform() | Removed. You can specify color values by using the ColorTransform()constructor. | |
| getRGB() Method | flash.geom.ColorTransform.color | The RGB color value can be accessed by using the coloraccessor property of the ColorTransform class. | |
| getTransform() Method | Removed | Color values can be assigned directly by using the ColorTransform()class constructor or properties. | |
| setRGB() Method | flash.geom.ColorTransform.color | The RGB color value can be set by using the coloraccessor property of the ColorTransform class. | |
| setTransform() Method | Removed | Color values can be assigned directly by using the ColorTransform()class constructor or properties. | |
| ContextMenu class | flash.ui.ContextMenu | The ContextMenu class is now part of the flash.ui package. | |
| builtInItems Property | flash.ui.ContextMenu.builtInItems | ||
| customItems Property | flash.ui.ContextMenu.customItems | ||
| ContextMenu Constructor | flash.ui.ContextMenu.ContextMenu() | ||
| copy() Method | flash.ui.ContextMenu.clone() | ||
| hideBuiltInItems() Method | flash.ui.ContextMenu.hideBuiltInItems() | ||
| onSelect() EventHandler | flash.ui.ContextMenu dispatches event: menuSelect | Instead of invoking the onSelect()event handler, the ActionScript 3.0 class dispatches amenuSelectevent. | |
| ContextMenuItem class | flash.ui.ContextMenuItem | The ContextMenuItem class is now part of the flash.ui package. | |
| caption Property | flash.ui.ContextMenuItem.caption | ||
| enabled Property | flash.ui.ContextMenuItem.enabled | ||
| separatorBefore Property | flash.ui.ContextMenuItem.separatorBefore | ||
| visible Property | flash.ui.ContextMenuItem.visible | ||
| ContextMenuItem Constructor | flash.ui.ContextMenuItem.ContextMenuItem() | ||
| copy() Method | flash.ui.ContextMenuItem.clone() | ||
| onSelect() EventHandler | flash.ui.ContextMenuItem dispatches event: menuItemSelect | Instead of invoking the onSelect()event handler, the ActionScript 3.0 class dispatches amenuSelectevent. | |
| ConvolutionFilter class | |||
| clone() Method | flash.filters.ConvolutionFilter.clone() | Now returns a BitmapFilter object. | |
| Date class | Date | ActionScript 3.0 includes a new set of read accessors for all the methods that start with getxxx(). For example, in ActionScript 3.0, Date.getDate()andDate.datereturn the same value. | |
| getUTCYear() Method | Date.getUTCFullYear() | This method was removed because it is not part of ECMAScript. Use Date.getUTCFullYear()instead. | |
| getYear() Method | Date.getFullYear() | This method was removed because it is not part of ECMAScript. Use Date.getFullYear()instead. | |
| setYear() Method | Date.setFullYear() | This method was removed because it is not part of ECMAScript. Use Date.setFullYear()instead. | |
| DisplacementMapFilter class | flash.filters.DisplacementMapFilter | The data type of several parameters changed from Number to uint. | |
| color Property | flash.filters.DisplacementMapFilter.color | The data type of this parameter is now uint. | |
| componentX Property | flash.filters.DisplacementMapFilter.componentX | The data type of this parameter is now uint. | |
| componentY Property | flash.filters.DisplacementMapFilter.componentY | The data type of this parameter is now uint. | |
| DisplacementMapFilter Constructor | flash.filters.DisplacementMapFilter.DisplacementMapFilter() | The data type of the componentX,componentY, andcolorparameters is now uint. | |
| clone() Method | flash.filters.DisplacementMapFilter.clone() | Now returns a BitmapFilter object. | |
| DropShadowFilter class | flash.filters.DropShadowFilter | ||
| color Property | flash.filters.DropShadowFilter.color | The data type of this parameter changed from Number to uint. | |
| quality Property | flash.filters.DropShadowFilter.quality | The data type of this parameter changed from Number to uint. | |
| DropShadowFilter Constructor | flash.filters.DropShadowFilter.DropShadowFilter() | All parameters now have a default value, and some parameter types have changed. | |
| clone() Method | flash.filters.DropShadowFilter.clone() | Now returns a BitmapFilter object instead of a DropShadowFilter object. | |
| Error class | Error | Added a new getStackTrace()method to assist in debugging. | |
| ExternalInterface class | flash.external.ExternalInterface | Parameters changed for two methods in this class. | |
| addCallback() Method | flash.external.ExternalInterface.addCallback() | The ActionScript 3.0 version of this method does not accept the instanceparameter. Themethodparameter is replaced by aclosureparameter, which can take a reference to a function, a class method, or a method of a particular class instance. In addition, if the calling code cannot access theclosurereference for security reasons, aSecurityErrorexception is thrown. | |
| call() Method | flash.external.ExternalInterface.call() | If a problem occurs, the ActionScript 3.0 version of this method throws an Error or SecurityErrorexception, in addition to returningnull. | |
| FileReference class | flash.net.FileReference | The ActionScript 3.0 version inherits the addEventListener()andremoveEventListener()methods from the EventDispatcher class. Dispatched events replace the event handler functions. | |
| postData Property | flash.net.URLRequest.data | The postDataproperty is added to ActionScript 2.0 in Flash Player 9 to send POST data with the file upload or download. In ActionScript 3.0, use thedataproperty of the URLRequest class to send either POST or GET data. Seeflash.net.URLRequest.datain this language reference for details. | |
| size Property[read-only] | flash.net.FileReference.size | Returns a uint data type instead of a Number data type. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because the class inherits theaddEventListener()method from the EventDispatcher class. | |
| browse() Method | flash.net.FileReference.browse() | In ActionScript 2.0, returns falsewhen there is an error. In ActionScript 3.0, throws anIllegalOperationErrororArgumentErrorexception. However, the method still returnsfalseif the parameters are invalid, the file-browsing dialog box does not open, or another browser session is in progress. Also, thetypelistparameter changed. In ActionScript 2.0, you can pass thebrowse()method an array of strings to specify a file filter. In ActionScript 3.0, you pass an array of FileFilter objects. | |
| download() Method | flash.net.FileReference.download() | When an error occurs, throws exceptions instead of returning false. The data type for the first parameter has changed. In ActionScript 2.0, the first parameter you pass todownload()is a string. In ActionScript 3.0, you pass a URLRequest object. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because the class inherits theremoveEventListener()method from the EventDispatcher class. | |
| upload() Method | flash.net.FileReference.upload() | Various changes have occurred: 
 | |
| onCancel Listener | flash.net.FileReference dispatches event: cancel | In ActionScript 3.0, instead of invoking the onCancel()event handler, this class dispatches an event namedcancel. | |
| onComplete Listener | flash.net.FileReference dispatches event: complete | In ActionScript 3.0, instead of invoking the onComplete()event handler, this class dispatches an event namedcomplete. | |
| onHTTPError Listener | flash.net.FileReference dispatches event: httpStatus | In ActionScript 3.0, instead of invoking the onHTTPError()event handler, this class dispatches an event namedhttpStatus. | |
| onIOError Listener | flash.net.FileReference dispatches event: ioError | In ActionScript 3.0, instead of invoking the onIOError()event handler, this class dispatches an event namedioError. | |
| onOpen Listener | flash.net.FileReference dispatches event: open | In ActionScript 3.0, instead of invoking the onOpen()event handler, this class dispatches an event namedopen. | |
| onProgress Listener | flash.net.FileReference dispatches event: progress | In ActionScript 3.0, instead of invoking the onProgress()event handler, this class dispatches an event namedprogress. | |
| onSecurityError Listener | flash.net.FileReference dispatches event: securityError | In ActionScript 3.0, instead of invoking the onSecurityError()event handler, this class dispatches an event namedsecurityError. | |
| onSelect Listener | flash.net.FileReference dispatches event: select | In ActionScript 3.0, instead of invoking the onSelect()event handler, this class dispatches an event namedselect. | |
| FileReferenceList class | flash.net.FileReferenceList | The ActionScript 3.0 class inherits the addEventListener()andremoveEventListener()methods from the EventDispatcher class. Instead of theonCancel()andonSelect()event handlers, the ActionScript 3.0 class uses events namedcancelandselect. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because the class inherits theaddEventListener()method from the EventDispatcher class. | |
| browse() Method | flash.net.FileReferenceList.browse() | In ActionScript 3.0, instead of returning falsewhen there is an error, this method throws anIllegalOperationErrorexception. Also, thetypelistparameter changed. In ActionScript 2.0, you can pass thebrowse()method an array of strings to specify a file filter. In ActionScript 3.0, you pass an array of FileFilter objects. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because the class inherits theremoveEventListener()method from the EventDispatcher class. | |
| onCancel Listener | flash.net.FileReferenceList dispatches event: cancel | In ActionScript 3.0, instead of invoking the onCancel()event handler, this class dispatches an event namedcancel. | |
| onSelect Listener | flash.net.FileReferenceList dispatches event: select | In ActionScript 3.0, instead of invoking the onSelect()event handler, this class dispatches an event namedselect. | |
| GlowFilter class | flash.filters.GlowFilter | The data type of several properties changed from Number to unit. | |
| color Property | flash.filters.GlowFilter.color | The data type of this property changed from Number to unit. | |
| quality Property | flash.filters.GlowFilter.quality | The data type of this property changed from Number to unit. | |
| GlowFilter Constructor | flash.filters.GlowFilter.GlowFilter() | The colorandqualityparameters are now uint and int data types, respectively, instead of Number. All parameters are now assigned a default value. | |
| clone() Method | flash.filters.GlowFilter.clone() | Returns a BitmapFilter object instead of a GlowFilter object. | |
| GradientBevelFilter class | flash.filters.GradientBevelFilter | ||
| quality Property | flash.filters.GradientBevelFilter.quality | The data type of this property changed from Number to int. | |
| clone() Method | flash.filters.GradientBevelFilter.clone() | Returns a BitmapFilter object instead of a GradientBevelFilter object. | |
| GradientGlowFilter class | flash.filters.GradientGlowFilter | ||
| quality Property | flash.filters.GradientGlowFilter.quality | The data type of this property changed from Number to int. | |
| GradientGlowFilter Constructor | flash.filters.GradientGlowFilter.GradientGlowFilter() | Default values added to all parameters and the data type of the qualityparameter changed from Number to int. | |
| clone() Method | flash.filters.GradientGlowFilter.clone() | Returns a BitmapFilter object instead of a GradientGlowFilter object. | |
| IME class | flash.system.IME | This class has been moved to the flash.system package. | |
| ALPHANUMERIC_FULL Constant | flash.system.IMEConversionMode.ALPHANUMERIC_FULL | ||
| ALPHANUMERIC_HALF Constant | flash.system.IMEConversionMode.ALPHANUMERIC_HALF | ||
| CHINESE Constant | flash.system.IMEConversionMode.CHINESE | ||
| JAPANESE_HIRAGANA Constant | flash.system.IMEConversionMode.JAPANESE_HIRAGANA | ||
| JAPANESE_KATAKANA_FULL Constant | flash.system.IMEConversionMode.JAPANESE_KATAKANA_FULL | ||
| JAPANESE_KATAKANA_HALF Constant | flash.system.IMEConversionMode.JAPANESE_KATAKANA_HALF | ||
| KOREAN Constant | flash.system.IMEConversionMode.KOREAN | ||
| UNKNOWN Constant | flash.system.IMEConversionMode.UNKNOWN | ||
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because the class inherits theaddEventListener()method from the EventDispatcher class. | |
| getConversionMode() Method | flash.system.IME.conversionMode | Changed to an accessor property. | |
| getEnabled() Method | flash.system.IME.enabled | Changed to an accessor property. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because the class inherits theremoveEventListener()method from the EventDispatcher class. | |
| setConversionMode() Method | flash.system.IME.conversionMode | Changed to an accessor property. | |
| setEnabled() Method | flash.system.IME.enabled | Changed to an accessor property. | |
| onIMEComposition Listener | flash.system.IME dispatches event: imeComposition | In ActionScript 3.0, instead of invoking the onIMEComposition()event handler, this class dispatches an event namedimeComposition. | |
| Key class | flash.ui.Keyboard | This class has a new name in ActionScript 3.0 to match other classes that pertain to the Keyboard class, such as KeyboardEvent. | |
| BACKSPACE Constant | flash.ui.Keyboard.BACKSPACE | Declared as a constant in ActionScript 3.0 and data type changed to unit. | |
| CAPSLOCK Constant | flash.ui.Keyboard.CAPS_LOCK | Declared as a constant in ActionScript 3.0, underscore added, and data type changed to uint. | |
| CONTROL Constant | flash.ui.Keyboard.CONTROL | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| DELETEKEY Constant | flash.ui.Keyboard.DELETE | Name changed to DELETEin ActionScript 3.0, declared as a constant, and data type changed to uint. | |
| DOWN Constant | flash.ui.Keyboard.DOWN | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| END Constant | flash.ui.Keyboard.END | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| ENTER Constant | flash.ui.Keyboard.ENTER | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| ESCAPE Constant | flash.ui.Keyboard.ESCAPE | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| HOME Constant | flash.ui.Keyboard.HOME | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| INSERT Constant | flash.ui.Keyboard.INSERT | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| LEFT Constant | flash.ui.Keyboard.LEFT | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| _listeners Property[read-only] | flash.events.EventDispatcher.willTrigger() | Not a direct equivalent. The willTrigger()method tells you whether any listeners are registered, but not how many. | |
| PGDN Constant | flash.ui.Keyboard.PAGE_DOWN | Name changed to PAGE_DOWNin ActionScript 3.0, declared as a constant, and data type changed to uint. | |
| PGUP Constant | flash.ui.Keyboard.PAGE_UP | Name changed to PAGE_UPin ActionScript 3.0, declared as a constant, and data type changed to uint. | |
| RIGHT Constant | flash.ui.Keyboard.RIGHT | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| SHIFT Constant | flash.ui.Keyboard.SHIFT | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| SPACE Constant | flash.ui.Keyboard.SPACE | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| TAB Constant | flash.ui.Keyboard.TAB | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| UP Constant | flash.ui.Keyboard.UP | Declared as a constant in ActionScript 3.0 and data type changed to uint. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In ActionScript 3.0, there is no need to have a class-specific addListener()method, because all display objects inherit theaddEventListener()method from the EventDispatcher class. | |
| getAscii() Method | flash.events.KeyboardEvent.charCode | ||
| getCode() Method | flash.events.KeyboardEvent.keyCode | ||
| isAccessible() Method | flash.ui.Keyboard.isAccessible() | ||
| isDown() Method | Removed | Removed for security reasons. | |
| isToggled() Method | Removed | Removed for security reasons. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In ActionScript 3.0, there is no need to have a class-specific removeListener()method, because all display objects inherit theremoveEventListener()method from the EventDispatcher class. | |
| onKeyDown Listener | flash.display.InteractiveObject dispatches event: keyDown | In ActionScript 3.0, instead of invoking the onKeyDownevent handler, the InteractiveObject class dispatches akeyDownKeyboardEvent object. | |
| onKeyUp Listener | flash.display.InteractiveObject dispatches event: keyUp | In ActionScript 3.0, instead of invoking the onKeyUpevent handler, the InteractiveObject class dispatches akeyUpKeyboardEvent object. | |
| LoadVars class | flash.net.URLLoader | The LoadVars class functionality is replaced by the URLLoader, URLRequest, URLStream, and URLVariables classes. | |
| contentType Property | flash.net.URLRequest.contentType | ||
| loaded Property | Removed | There is no corresponding Boolean property in ActionScript 3.0, but you can use flash.events.Event.COMPLETEto set up listeners that receive notification when data is loaded. | |
| LoadVars Constructor | flash.net.URLLoader.URLLoader() | ||
| addRequestHeader() Method | flash.net.URLRequestHeader | ||
| decode() Method | flash.net.URLVariables.decode() | ||
| getBytesLoaded() Method | flash.net.URLLoader.bytesLoaded | Class changed to URLLoader; changed from function to property accessor; and name changed from getBytesLoadedtobytesLoaded. | |
| getBytesTotal() Method | flash.net.URLLoader.bytesTotal | Class changed to URLLoader; changed from function to property accessor; and name changed from getBytesTotaltobytesTotal. | |
| load() Method | flash.net.URLLoader.load() | ||
| onData() EventHandler | flash.net.URLLoader dispatches event: complete | See the URLLoader class. A completeevent is dispatched when the download operation is complete but before any data is parsed. | |
| onHTTPStatus() EventHandler | flash.net.URLLoader dispatches event: httpStatus | In ActionScript 3.0, instead of invoking the onHTTPStatusevent handler, the URLLoader class dispatches an HTTPStatusEvent object namedhttpStatus. | |
| onLoad() EventHandler | flash.net.URLLoader dispatches event: complete | See the URLLoader class. A completeevent is dispatched when the download operation is complete. | |
| send() Method | flash.net.sendToURL() | ||
| sendAndLoad() Method | flash.net.sendToURL() | The sendToURL()method sends a URL request to the server, but ignores the response. To receive the response, useflash.net.sendToURL(). | |
| toString() Method | Removed | ||
| LocalConnection class | flash.net.LocalConnection | This class has been moved to the flash.net package. | |
| LocalConnection Constructor | flash.net.LocalConnection.LocalConnection() | ||
| allowDomain() EventHandler | flash.net.LocalConnection.allowDomain() | Changed to a regular method in ActionScript 3.0, no longer an event handler. Parameter changed to use the ...(rest) parameter format. Return value changed to void. | |
| allowInsecureDomain() EventHandler | flash.net.LocalConnection.allowInsecureDomain() | Changed to a regular method in ActionScript 3.0, no longer an event handler. Parameter changed to use the ...(rest) parameter format. Return value changed to void. | |
| close() Method | flash.net.LocalConnection.close() | ||
| connect() Method | flash.net.LocalConnection.connect() | ||
| domain() Method | flash.net.LocalConnection.domain | Changed to a property accessor. | |
| onStatus() EventHandler | flash.net.LocalConnection dispatches event: status | In the new event model, callback functions are replaced by event objects. | |
| send() Method | flash.net.LocalConnection.send() | Third parameter changed to use the ...(rest) parameter format. Return type changed to void. | |
| Microphone class | flash.media.Microphone | This class has been moved to the flash.media package. | |
| index Property[read-only] | flash.media.Microphone.index | Data type changed to uint. | |
| rate Property[read-only] | flash.media.Microphone.rate | Data type changed to uint. | |
| silenceTimeOut Property[read-only] | flash.media.Microphone.silenceTimeout | Change in capitalization to "Timeout." Data type changed to int. | |
| get() Method | flash.media.Microphone.getMicrophone() | Name changed from get()togetMicrophone(). Data type of parameter changed to uint. | |
| onActivity() EventHandler | flash.media.Microphone dispatches event: activity | In ActionScript 3.0, instead of invoking the onActivityevent handler, this class dispatches anactivityevent. | |
| onStatus() EventHandler | flash.media.Microphone dispatches event: status | In ActionScript 3.0, instead of invoking the onStatusevent handler, this class dispatches astatusevent. | |
| setGain() Method | flash.media.Microphone.gain | Combined gainproperty andsetGain()method into a get/set property accessor namedgain. Data type changed to uint. | |
| setRate() Method | flash.media.Microphone.rate | Combined rateproperty andsetRate()method into a get/set property accessor namedrate. Data type changed to uint. | |
| setSilenceLevel() Method | flash.media.Microphone.setSilenceLevel() | Data type of timeOutparameter changed to int. Capitalization of thetimeOutparameter changed totimeout. | |
| setUseEchoSuppression() Method | flash.media.Microphone.setUseEchoSuppression() | ||
| Mouse class | flash.ui.Mouse | ||
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new ActionScript 3.0 event model, there is no need to have a class-specific addListener()method, because all display objects inherit theaddEventListener()method from the EventDispatcher class. | |
| hide() Method | flash.ui.Mouse.hide() | Changed to return void. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new ActionScript 3.0 event model, there is no need to have a class-specific removeListener()method, because all display objects inherit theremoveEventListener()method from the EventDispatcher class. | |
| show() Method | flash.ui.Mouse.show() | Changed to return void. | |
| onMouseDown Listener | flash.display.InteractiveObject dispatches event: mouseDown | Replaced in the new event model by a mouseDownevent. | |
| onMouseMove Listener | flash.display.InteractiveObject dispatches event: mouseMove | Replaced in the new event model by a mouseMoveevent. | |
| onMouseUp Listener | flash.display.InteractiveObject dispatches event: mouseUp | Replaced in the new event model by a mouseUpevent. | |
| onMouseWheel Listener | flash.display.InteractiveObject dispatches event: mouseWheel | Replaced in the new event model by a mouseWheelevent. | |
| MovieClip class | flash.display.MovieClip | Many of the MovieClip methods have been moved to other classes in ActionScript 3.0. All event handlers have been replaced by event objects in the new event model. | |
| _alpha Property | flash.display.DisplayObject.alpha | Moved to DisplayObject class and removed initial underscore from name. | |
| blendMode Property | flash.display.DisplayObject.blendMode | ||
| cacheAsBitmap Property | flash.display.DisplayObject.cacheAsBitmap | ||
| _currentframe Property[read-only] | flash.display.MovieClip.currentFrame | Removed initial underscore from name. | |
| _droptarget Property[read-only] | flash.display.Sprite.dropTarget | Moved to Sprite class, removed initial underscore from name, and changed to mixed case. | |
| filters Property | flash.display.DisplayObject.filters | ||
| focusEnabled Property | Removed | ||
| _focusrect Property | flash.display.InteractiveObject.focusRect | Moved to InteractiveObject class, removed initial underscore from name, and changed to mixed case. | |
| _framesloaded Property[read-only] | flash.display.MovieClip.framesLoaded | Removed initial underscore from name and changed to mixed case. | |
| _height Property | flash.display.DisplayObject.height | Moved to DisplayObject class and removed initial underscore from name. | |
| _highquality Property | Removed | ||
| hitArea Property | flash.display.Sprite.hitArea | Moved to Sprite class. | |
| _lockroot Property | Removed | ||
| menu Property | Removed | ||
| _name Property | flash.display.DisplayObject.name | Moved to DisplayObject class and removed initial underscore from name. | |
| opaqueBackground Property | flash.display.DisplayObject.opaqueBackground | ||
| _parent Property | flash.display.DisplayObject.parent | Moved to DisplayObject class and removed initial underscore from name. | |
| _quality Property | flash.display.Stage.quality | ||
| _rotation Property | flash.display.DisplayObject.rotation | Moved to DisplayObject class and removed initial underscore from name. | |
| scale9Grid Property | flash.display.DisplayObject.scale9Grid | ||
| scrollRect Property | flash.display.DisplayObject.scrollRect | Changed to Rectangle data type. | |
| _soundbuftime Property | flash.media.SoundMixer.bufferTime | Moved to SoundMixer class, which is used for global sound control, renamed without abbreviations, and removed initial underscore from name. | |
| tabChildren Property | flash.display.DisplayObjectContainer.tabChildren | ||
| tabEnabled Property | flash.display.InteractiveObject.tabEnabled | ||
| tabIndex Property | flash.display.InteractiveObject.tabIndex | ||
| _target Property[read-only] | Removed | ||
| _totalframes Property[read-only] | flash.display.MovieClip.totalFrames | Changed to mixed case and removed initial underscore from name. | |
| trackAsMenu Property | flash.display.MovieClip.trackAsMenu | ||
| transform Property | flash.display.DisplayObject.transform | ||
| _url Property[read-only] | flash.display.Loader.contentLoaderInfo | ||
| useHandCursor Property | flash.display.Sprite.useHandCursor | ||
| _visible Property | flash.display.DisplayObject.visible | Moved to DisplayObject class and removed initial underscore from name. | |
| _width Property | flash.display.DisplayObject.width | Moved to DisplayObject class and removed initial underscore from name. | |
| _x Property | flash.display.DisplayObject.x | Moved to DisplayObject class and removed initial underscore from name. | |
| _xmouse Property[read-only] | flash.display.DisplayObject.mouseX | Moved to DisplayObject class, changed name to mouseX, and removed initial underscore from name. | |
| _xscale Property | flash.display.DisplayObject.scaleX | Moved to DisplayObject class, changed name to scaleX, and removed initial underscore from name. | |
| _y Property | flash.display.DisplayObject.y | Moved to DisplayObject class and removed initial underscore from name. | |
| _ymouse Property[read-only] | flash.display.DisplayObject.mouseY | Moved to DisplayObject class, changed name to mouseY, and removed initial underscore from name. | |
| _yscale Property | flash.display.DisplayObject.scaleY | Moved to DisplayObject class, changed name to scaleY, and removed initial underscore from name. | |
| attachAudio() Method | Removed | If the audio source is a Microphone object, use NetStream.attachAudio()orMicrophone.setLoopBack().If the audio source is an FLV file, use  | |
| attachBitmap() Method | Removed | In ActionScript 3.0, use addChild()to add child display objects. | |
| attachMovie() Method | Removed | In ActionScript 3.0, use addChild()to add child display objects. | |
| beginBitmapFill() Method | flash.display.Graphics.beginBitmapFill() | ||
| beginFill() Method | flash.display.Graphics.beginFill() | Moved to Graphics class and changed data type of the first parameter to uint. | |
| beginGradientFill() Method | flash.display.Graphics.beginGradientFill() | ||
| clear() Method | flash.display.Graphics.clear() | ||
| createEmptyMovieClip() Method | Removed | In ActionScript 3.0, use the newoperator to create movie clips. | |
| createTextField() Method | Removed | In ActionScript 3.0, use the newoperator to create text fields. | |
| curveTo() Method | flash.display.Graphics.curveTo() | ||
| duplicateMovieClip() Method | Removed | In ActionScript 3.0, use the newoperator to create a new instance. | |
| endFill() Method | flash.display.Graphics.endFill() | ||
| getBounds() Method | flash.display.DisplayObject.getBounds() | ||
| getBytesLoaded() Method | flash.net.URLLoader.bytesLoaded | Moved to URLLoader class and data type changed from Number to int. | |
| getBytesTotal() Method | flash.net.URLLoader.bytesTotal | Moved to URLLoader class and data type changed from Number to int. | |
| getDepth() Method | flash.display.DisplayObjectContainer.getChildIndex() | ActionScript 3.0 provides direct access to the display list, so depth is handled differently. | |
| getInstanceAtDepth() Method | flash.display.DisplayObjectContainer.getChildAt() | ActionScript 3.0 provides direct access to the display list, so depth is handled differently. | |
| getNextHighestDepth() Method | flash.display.DisplayObjectContainer.addChild() | Not a direct equivalent, but the addChild()method adds a child behind all other children of the DisplayObjectContainer instance, so there is no need for a method that determines the next available depth. | |
| getRect() Method | flash.display.DisplayObject.getRect() | ||
| getSWFVersion() Method | flash.display.LoaderInfo.swfVersion | Moved to LoaderInfo class and changed data type to uint. | |
| getTextSnapshot() Method | flash.display.DisplayObjectContainer.textSnapshot | ||
| getURL() Method | flash.net.navigateToURL() | Replaced by the flash.net.navigateToURL()andflash.net.sentToURL()methods. Also see URLLoader class. | |
| globalToLocal() Method | flash.display.DisplayObject.globalToLocal() | ||
| gotoAndStop() Method | flash.display.MovieClip.gotoAndStop() | ||
| hitTest() Method | flash.display.DisplayObject.hitTestObject() | ||
| lineGradientStyle() Method | flash.display.Graphics.lineGradientStyle() | ||
| lineStyle() Method | flash.display.Graphics.lineStyle() | ||
| lineTo() Method | flash.display.Graphics.lineTo() | ||
| loadMovie() Method | flash.display.Loader.load() | See Loader class. | |
| loadVariables() Method | flash.net.URLLoader | Removed. See URLLoader class. | |
| localToGlobal() Method | flash.display.DisplayObject.localToGlobal() | ||
| moveTo() Method | flash.display.Graphics.moveTo() | ||
| nextFrame() Method | flash.display.MovieClip.nextFrame() | ||
| onData() EventHandler | flash.display.LoaderInfo dispatches event: complete | Replaced in the new event model by a completeevent, which is dispatched when the download operation is complete but before any data is parsed. | |
| onDragOut() EventHandler | flash.display.InteractiveObject dispatches event: mouseOut | Replaced in the new event model by a mouseOutevent, after a call toInteractiveObject.setCapture(). | |
| onDragOver() EventHandler | flash.display.InteractiveObject dispatches event: mouseOver | Replaced in the new event model by a mouseOverevent, after a call toInteractiveObject.setCapture(). | |
| onEnterFrame() EventHandler | flash.display.DisplayObject dispatches event: enterFrame | Replaced in the new event model by an enterFrameevent. | |
| onKeyDown() EventHandler | flash.display.InteractiveObject dispatches event: keyDown | Replaced in the new event model by a keyDownevent. | |
| onKeyUp() EventHandler | flash.display.InteractiveObject dispatches event: keyUp | Replaced in the new event model by a keyUpevent. | |
| onKillFocus() EventHandler | flash.display.InteractiveObject dispatches event: focusOut | Replaced in the new event model by a focusOutevent. | |
| onLoad() EventHandler | flash.display.LoaderInfo dispatches event: complete | Also see URLLoader class. A completeevent is dispatched when the download operation is complete. | |
| onMouseDown() EventHandler | flash.display.InteractiveObject dispatches event: mouseDown | Replaced in the new event model by a mouseDownevent. | |
| onMouseMove() EventHandler | flash.display.InteractiveObject dispatches event: mouseMove | Replaced in the new event model by a mouseMoveevent. | |
| onMouseUp() EventHandler | flash.display.InteractiveObject dispatches event: mouseUp | Replaced in the new event model by a mouseUpevent. | |
| onPress() EventHandler | flash.display.InteractiveObject dispatches event: mouseDown | Replaced in the new event model by a mouseDownevent. | |
| onRelease() EventHandler | flash.display.InteractiveObject dispatches event: mouseUp | Replaced in the new event model by a mouseUpevent. | |
| onReleaseOutside() EventHandler | flash.display.InteractiveObject dispatches event: mouseUp | Replaced in the new event model by a mouseUpevent after a call toflash.display.InteractiveObject.setCapture(). | |
| onRollOut() EventHandler | flash.display.InteractiveObject dispatches event: mouseOut | Replaced in the new event model by a mouseOutevent. | |
| onRollOver() EventHandler | flash.display.InteractiveObject dispatches event: mouseOver | Replaced in the new event model by a mouseOverevent. | |
| onSetFocus() EventHandler | flash.display.InteractiveObject dispatches event: focusIn | Replaced in the new event model by a focusInevent. | |
| onUnload() EventHandler | flash.display.LoaderInfo dispatches event: unload | Replaced in the new event model by an unloadevent. | |
| play() Method | flash.display.MovieClip.play() | ||
| prevFrame() Method | flash.display.MovieClip.prevFrame() | ||
| removeMovieClip() Method | flash.display.DisplayObjectContainer.removeChild() | Removed. Call the removeChild()method of the parent display object container that contains the movie clip. | |
| setMask() Method | flash.display.DisplayObject.mask | ||
| startDrag() Method | flash.display.Sprite.startDrag() | ||
| stop() Method | flash.display.MovieClip.stop() | ||
| stopDrag() Method | flash.display.Sprite.stopDrag() | ||
| swapDepths() Method | Removed | In ActionScript 3.0, you can achieve similar functionality by using the methods of the DisplayObjectContainer class, such as the addChildAt(),setChildIndex(),swapChildren(), andswapChildrenAt()methods. | |
| unloadMovie() Method | flash.display.Loader.unload() | ||
| MovieClipLoader class | flash.display.Loader | Replaced by the flash.display.Loader class. | |
| MovieClipLoader Constructor | flash.display.Loader.Loader() | ||
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because the class inherits theaddEventListener()method from the EventDispatcher class. | |
| getProgress() Method | flash.display.LoaderInfo dispatches event: progress | Replaced in the new event model by a progressevent. Event objects ofprogresstype contain properties namedbytesLoadedandbytesTotal. | |
| loadClip() Method | flash.display.Loader.load() | Replaced by the load()method of flash.display.Loader class. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because the class inherits theremoveEventListener()method from the EventDispatcher class. | |
| unloadClip() Method | flash.display.Loader.unload() | Replaced by unload()method of flash.display.Loader class. | |
| onLoadComplete Listener | flash.display.LoaderInfo dispatches event: complete | Replaced in the new event model by a completeevent. | |
| onLoadError Listener | flash.display.LoaderInfo dispatches event: ioError | Replaced in the new event model by an ioErrorevent. | |
| onLoadInit Listener | flash.display.LoaderInfo dispatches event: init | Replaced in the new event model by an initevent. | |
| onLoadProgress Listener | flash.display.LoaderInfo dispatches event: progress | Replaced in the new event model by a progressevent. | |
| onLoadStart Listener | flash.display.LoaderInfo dispatches event: open | Replaced in the new event model by an openevent. | |
| NetConnection class | flash.net.NetConnection | This class has been moved to the flash.net package. | |
| NetConnection Constructor | flash.net.NetConnection.NetConnection() | ||
| connect() Constructor | flash.net.NetConnection.connect() | ActionScript 3.0 version adds a ...(rest) parameter. | |
| NetStream class | flash.net.NetStream | This class has been moved to the flash.net package. | |
| bytesLoaded Property[read-only] | flash.net.NetStream.bytesLoaded | Data type changed to uint. | |
| bytesTotal Property[read-only] | flash.net.NetStream.bytesTotal | Data type changed to uint. | |
| currentFps Property[read-only] | flash.net.NetStream.currentFPS | In ActionScript 3.0, FPS is all uppercase. | |
| onStatus() EventHandler | flash.net.NetStream dispatches event: netStatus | Replaced in the new event model by a netStatusevent. | |
| pause() Method | flash.net.NetStream.pause() | In ActionScript 3.0, the pausemethod does not take a parameter. Two new methods are available to achieve the same functionality:resume()andtogglePause(). | |
| play() Method | flash.net.NetStream.play() | The name,start,len, andresetparameters are no longer valid; ...argumentsis used instead. | |
| setBufferTime() Method | flash.net.NetStream.bufferTime | In ActionScript 3.0, changed to read-write accessor property. | |
| Number class | Number | ||
| Number Constructor | Number.Number() | In ActionScript 3.0, the Number()constructor and theNumber()global function have the same effect. Also, there is no difference between a Number object and a literal Number value. | |
| Object class | Object | ||
| __proto__ Property | Removed | In ActionScript 3.0, direct manipulation of the prototype chain is not allowed. To create a subclass, use the extendsstatement in the subclass declaration. For information about an object's inheritance tree and data type, use the new reflection APIflash.utils.describeType(). | |
| __resolve Property | flash.utils.Proxy | Use the new Proxy class for similar functionality. | |
| addProperty() Method | Removed | In ActionScript 3.0, accessor properties can be created directly using the keywords getandset. | |
| registerClass() Method | Removed | In ActionScript 3.0, all classes are registered by default. If you are encoding an object using AMF, the class of the object is not preserved during the encoding process unless you use the flash.utils.registerClassAlias()function. | |
| unwatch() Method | Removed | ||
| watch() Method | Removed | Use accessor properties (get/set functions) or the flash.utils.Proxy class for similar functionality. | |
| PrintJob class | flash.printing.PrintJob | ||
| orientation Property[read-only] | flash.printing.PrintJob.orientation | This property now has a value from the PrintJobOrientation class. | |
| pageHeight Property[read-only] | flash.printing.PrintJob.pageHeight | Data type changed to int. | |
| pageWidth Property[read-only] | flash.printing.PrintJob.pageWidth | Data type changed to int. | |
| paperHeight Property[read-only] | flash.printing.PrintJob.paperHeight | Data type changed to int. | |
| paperWidth Property[read-only] | flash.printing.PrintJob.paperWidth | Data type changed to int. | |
| PrintJob Constructor | flash.printing.PrintJob.PrintJob() | ||
| addPage() Method | flash.printing.PrintJob.addPage() | In ActionScript 3.0, changed data types of parameters: First parameter targetis a Sprite data type; second parameterprintAreais a Rectangle data type; third parameteroptionsis the new PrintJobOptions data type; and fourth parameterframeNumis an int data type. | |
| send() Method | flash.printing.PrintJob.send() | ||
| start() Method | flash.printing.PrintJob.start() | ||
| Rectangle class | |||
| containsRectangle() Method | flash.geom.Rectangle.containsRect() | Renamed for consistency. | |
| security class | flash.system.Security | This class has been moved to the flash.system package. | |
| Selection class | Removed | Methods of this class have been moved to other classes. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because any display object inherits theaddEventListener()method from the EventDispatcher class. | |
| getBeginIndex() Method | flash.text.TextField.selectionBeginIndex | Changed from method to accessor property and name changed to selectionBeginIndex. | |
| getCaretIndex() Method | flash.text.TextField.caretIndex | Changed from method to accessor property and name changed to caretIndex. | |
| getEndIndex() Method | flash.text.TextField.selectionEndIndex | Changed from method to accessor property and name changed to selectionEndIndex. | |
| getFocus() Method | flash.display.Stage.focus | Changed from method to property accessor and name changed to focus. In ActionScript 2.0 the data type of the return value is String, but in ActionScript 3.0 the property has the InteractiveObject data type. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because display objects inherit theremoveEventListener()method from the EventDispatcher class. | |
| setFocus() Method | flash.display.Stage.focus | Changed from method to accessor property and name changed to focus. In ActionScript 2.0 the data type of the return value is String, but in ActionScript 3.0 the property has the InteractiveObject data type. | |
| setSelection() Method | flash.text.TextField.setSelection() | Both parameters changed from Number to uint data type. | |
| onSetFocus Listener | flash.display.InteractiveObject dispatches event: focusIn | Replaced in the new event model by a focusInevent. | |
| SharedObject class | flash.net.SharedObject | This class has been moved to the flash.net package. | |
| flush() Method | flash.net.SharedObject.flush() | This method no longer returns a Boolean value. If the flush fails, Flash Player throws an exception; if the flush succeeds or is pending user interaction, Flash Player returns a string "flushed"or"pending". Also, the data type of theminDiskSpaceparameter changed to int. | |
| getSize() Method | flash.net.SharedObject.size | Changed to accessor property. Data type changed to uint. | |
| onStatus() EventHandler | flash.net.SharedObject dispatches event: netStatus | Replaced in the new event model by a netStatusevent. | |
| Sound class | flash.media.Sound | This class has been moved to the flash.media package. | |
| checkPolicyFile | flash.media.SoundChannel.stop() | Replaced by the flash.media.SoundChannel.stop()method. | |
| duration Property[read-only] | flash.media.Sound.length | ||
| id3 Property[read-only] | flash.media.Sound.id3 | Data type changed from Object to ID3Info. ID3Info is a new class that contains the ID3 properties. Also, the spelling of the songnameproperty changed tosongName. | |
| position Property[read-only] | flash.media.SoundChannel.position | Moved to the SoundChannel class. | |
| attachSound() Method | Removed | Create an instance of a Sound subclass that is associated with sound data; for example, by using new Sound()instead. | |
| getBytesLoaded() Method | flash.media.Sound.bytesLoaded | Changed to accessor property and data type changed to uint. | |
| getBytesTotal() Method | flash.media.Sound.bytesTotal | Changed to property accessor and data type changed to uint. | |
| getPan() Method | flash.media.SoundTransform.pan | Changed to accessor property and moved to the SoundTransform class. | |
| getTransform() Method | flash.media.SoundMixer.soundTransform | Changed to accessor property and data type changed to SoundTransform. | |
| getVolume() Method | flash.media.SoundTransform.volume | Set the flash.media.SoundTransform.volumeproperty to control sound volume. | |
| loadSound() Method | flash.media.Sound.load() | The first parameter changed from a simple URL string to a URLRequest object. The second parameter changed from a Boolean value representing whether sound begins playing as soon as possible to a SoundLoaderContext object. | |
| onID3() EventHandler | flash.media.Sound dispatches event: id3 | Replaced in the new event model by an id3event. | |
| onLoad() EventHandler | flash.media.Sound dispatches event: complete | Replaced in the new event model by a completeevent. | |
| onSoundComplete() EventHandler | flash.media.SoundChannel dispatches event: soundComplete | Replaced in the new event model by a soundCompleteevent. | |
| setPan() Method | flash.media.SoundTransform.pan | Changed to accessor property and moved to SoundTransform class. | |
| setTransform() Method | flash.media.SoundMixer.soundTransform | Changed to accessor property and data type changed to SoundTransform. | |
| setVolume() Method | flash.media.SoundChannel | Removed. Use flash.media.SoundChannel.leftPeakandflash.media.SoundChannel.rightPeakto monitor the amplitude of a sound channel. | |
| start() Method | flash.media.Sound.play() | The loopsparameter data type changed from Number to int. Added a third parameter,sndTransform, to specify the initial sound transform to be used by the sound channel. | |
| stop() Method | flash.media.SoundChannel.stop() | ||
| Stage class | flash.display.Stage | This class has been moved to the flash.display package. In ActionScript 3.0, the Stage is no longer a global object. You access the Stage by using the new DisplayObject.stageproperty. | |
| align Property | flash.display.Stage.align | ||
| height Property | flash.display.Stage.stageHeight | Name changed from heighttostageHeightso that it does not conflict with theflash.display.DisplayObject.heightproperty. | |
| scaleMode Property | flash.display.Stage.scaleMode | ||
| showMenu Property | flash.display.Stage.showDefaultContextMenu | Name changed to better reflect which menu is shown. | |
| width Property | flash.display.Stage.stageWidth | Name changed from widthtostageWidthso that it does not conflict with theflash.display.DisplayObject.widthproperty. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because the class inherits theaddEventListener()method from the EventDispatcher class. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because the class inherits theremoveEventListener()method from the EventDispatcher class. | |
| onResize Listener | flash.display.Stage dispatches event: resize | Replaced in the new event model by a resizeevent. | |
| String class | String | Adds support for regular expressions with three new methods: match(),replace(), andsearch(). | |
| concat() Method | String.concat() | Parameter changed to ...(rest) parameter format. | |
| StyleSheet class | flash.text.StyleSheet | This class has been moved to the flash.text package. The load()andonLoad()members have been removed, and some private functions and variables have been added. | |
| StyleSheet Constructor | flash.text.StyleSheet.StyleSheet() | ||
| clear() Method | flash.text.StyleSheet.clear() | ||
| getStyle() Method | flash.text.StyleSheet.getStyle() | Parameter name changed to n. | |
| getStyleNames() Method | flash.text.StyleSheet.styleNames | Changed to accessor property. | |
| load() Method | flash.net.URLLoader.load() | Use the new URLLoader and URLRequest classes for loading URLs. | |
| onLoad() EventHandler | flash.net.URLLoader dispatches event: complete | Replaced in the new event model by a completeevent. | |
| parseCSS() Method | flash.text.StyleSheet.parseCSS() | In ActionScript 3.0, returns voidinstead of a Boolean value. | |
| setStyle() Method | flash.text.StyleSheet.setStyle() | Parameter name changed to nand style tos. | |
| transform() Method | flash.text.StyleSheet.transform() | ||
| System class | flash.system.System | ||
| exactSettings Property | flash.system.Security.exactSettings | Moved to the flash.System.Security class. | |
| useCodepage Property | flash.system.System.useCodePage | In ActionScript 3.0, the letter 'P' in useCodePageis uppercase. | |
| onStatus() EventHandler | Removed | ||
| setClipboard() Method | flash.system.System.setClipboard() | ||
| showSettings() Method | flash.system.Security.showSettings() | ||
| TextField class | flash.text.TextField | This class has been moved to the flash.text package. | |
| _alpha Property | flash.display.DisplayObject.alpha | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| antiAliasType Property | flash.text.TextField.antiAliasType | ||
| autoSize Property | flash.text.TextField.autoSize | ||
| background Property | flash.text.TextField.background | ||
| backgroundColor Property | flash.text.TextField.backgroundColor | ||
| border Property | flash.text.TextField.border | ||
| borderColor Property | flash.text.TextField.borderColor | In ActionScript 3.0, returns a uint instead of a Number. | |
| bottomScroll Property[read-only] | flash.text.TextField.bottomScrollV | In ActionScript 3.0, returns a uint instead of a Number. | |
| condenseWhite Property | flash.text.TextField.condenseWhite | ||
| embedFonts Property | flash.text.TextField.embedFonts | ||
| filters Property | flash.display.DisplayObject.filters | ||
| gridFitType Property | flash.text.TextField.gridFitType | ||
| _height Property | flash.display.DisplayObject.height | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _highquality Property | flash.display.Stage.quality | Removed. Replaced by the qualityproperty of the Stage class. | |
| hscroll Property | flash.text.TextField.scrollH | Data type changed from Number to uint. Name changed from hscrolltoscrollH. | |
| html Property | flash.text.TextField.htmlText | Removed. In ActionScript 3.0, all text fields are treated as HTML text fields. Use the TextField.htmlTextproperty to set HTML text. | |
| htmlText Property | flash.text.TextField.htmlText | ||
| length Property[read-only] | flash.text.TextField.length | Data type changed from Number to uint. | |
| maxChars Property | flash.text.TextField.maxChars | Data type changed from Number to uint. | |
| maxhscroll Property[read-only] | flash.text.TextField.maxScrollH | Data type changed from Number to uint. | |
| maxscroll Property[read-only] | flash.text.TextField.maxScrollV | Data type changed from Number to uint. Name changed to use uppercase S and to add the letter V to represent vertical scrolling. | |
| menu Property | flash.display.InteractiveObject.contextMenu | This property is now inherited from the InteractiveObject class. | |
| mouseWheelEnabled Property | flash.text.TextField.mouseWheelEnabled | ||
| multiline Property | flash.text.TextField.multiline | ||
| _name Property | flash.display.DisplayObject.name | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _parent Property | flash.display.DisplayObject.parent | This property is now inherited from the DisplayObject class. Removed the initial underscore. Data type changed from MovieClip to DisplayObjectContainer. | |
| password Property | flash.text.TextField.displayAsPassword | Renamed property for consistency. | |
| _quality Property | flash.display.Stage.quality | Moved to Stage class. | |
| restrict Property | flash.text.TextField.restrict | ||
| _rotation Property | flash.display.DisplayObject.rotation | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| scroll Property | flash.text.TextField.scrollV | Data type changed from Number to uint and name changed from scrolltoscrollV. | |
| selectable Property | flash.text.TextField.selectable | ||
| sharpness Property | flash.text.TextField.sharpness | ||
| _soundbuftime Property | flash.media.SoundMixer.bufferTime | Properties and methods for global sound control in a SWF file are now in the flash.media.SoundMixer class. | |
| styleSheet Property | flash.text.TextField.styleSheet | ||
| tabEnabled Property | flash.display.InteractiveObject.tabEnabled | This property is now inherited from the InteractiveObject class. | |
| tabIndex Property | flash.display.InteractiveObject.tabIndex | This property is now inherited from the InteractiveObject class. | |
| _target Property[read-only] | Removed | ||
| text Property | flash.text.TextField.text | ||
| textColor Property | flash.text.TextField.textColor | Data type changed from Number to uint. | |
| textHeight Property | flash.text.TextField.textHeight | ||
| textWidth Property | flash.text.TextField.textWidth | ||
| thickness Property | flash.text.TextField.thickness | ||
| type Property | flash.text.TextField.type | ||
| _url Property[read-only] | flash.display.LoaderInfo.url | ||
| variable Property | Removed | ||
| _visible Property | flash.display.DisplayObject.visible | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _width Property | flash.display.DisplayObject.width | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| wordWrap Property | flash.text.TextField.wordWrap | ||
| _x Property | flash.display.DisplayObject.x | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _xmouse Property[read-only] | flash.display.DisplayObject.mouseX | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _xscale Property | flash.display.DisplayObject.scaleX | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _y Property | flash.display.DisplayObject.y | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _ymouse Property[read-only] | flash.display.DisplayObject.mouseY | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| _yscale Property | flash.display.DisplayObject.scaleY | This property is now inherited from the DisplayObject class. Removed the initial underscore. | |
| addListener() Method | flash.events.EventDispatcher.addEventListener() | In the new event model, there is no need to have a class-specific addListener()method, because the class inherits theaddEventListener()method from the EventDispatcher class. | |
| getDepth() Method | flash.display.DisplayObjectContainer | Removed. Use the methods of the DisplayObjectContainer class to ascertain text field depth. | |
| getFontList() Method | flash.text.Font.enumerateFonts() | Removed. Use Font.enumerateFonts()with theenumerateDeviceFontsparameter set totrue. | |
| getNewTextFormat() Method | flash.text.TextField.defaultTextFormat | Name changed from getNewTextFormattodefaultTextFormat. Changed from method to accessor property. | |
| getTextFormat() Method | flash.text.TextField.getTextFormat() | Data type of both parameters changed from Number to uint. | |
| onChanged() EventHandler | flash.text.TextField dispatches event: change | Replaced in the new event model by a changeevent. | |
| onKillFocus() EventHandler | flash.display.InteractiveObject dispatches event: focusOut | Replaced in the new event model by a focusOutevent. | |
| onScroller() EventHandler | flash.text.TextField dispatches event: scroll | Replaced in the new event model by a scrollevent. | |
| onSetFocus() EventHandler | flash.display.InteractiveObject dispatches event: focusIn | Replaced in the new event model by a focusInevent. | |
| removeListener() Method | flash.events.EventDispatcher.removeEventListener() | In the new event model, there is no need to have a class-specific removeListener()method, because the class inherits theremoveEventListener()method from the EventDispatcher class. | |
| removeTextField() Method | flash.display.DisplayObjectContainer.removeChild() | Removed. Call the removeChild()method of the parent display object container that contains the text field. | |
| replaceSel() Method | flash.text.TextField.replaceSelectedText() | Name changed from replacesel()toreplaceSelectedText(). Replaced thenewTextparameter with a string value. | |
| replaceText() Method | flash.text.TextField.replaceText() | Data types of first two parameters changed from Number to uint. | |
| setNewTextFormat() Method | flash.text.TextField.defaultTextFormat | Name changed from setNewTextFormattodefaultTextFormat. Changed from method to accessor property. | |
| setTextFormat() Method | flash.text.TextField.setTextFormat() | Order of parameters changed. Index parameters data type changed from Number to int. | |
| TextFormat class | flash.text.TextFormat | This class has been moved to the flash.text package. | |
| align Property | flash.text.TextFormat.align | ||
| blockIndent Property | flash.text.TextFormat.blockIndent | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| bold Property | flash.text.TextFormat.bold | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Boolean data type in ActionScript 3.0. | |
| bullet Property | flash.text.TextFormat.bullet | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Boolean data type in ActionScript 3.0. | |
| color Property | flash.text.TextFormat.color | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| font Property | flash.text.TextFormat.font | ||
| indent Property | flash.text.TextFormat.indent | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| italic Property | flash.text.TextFormat.bullet | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Boolean data type in ActionScript 3.0. | |
| kerning Property | flash.text.TextFormat.kerning | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Boolean data type in ActionScript 3.0. | |
| leading Property | flash.text.TextFormat.leading | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| leftMargin Property | flash.text.TextFormat.leftMargin | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| letterSpacing Property | flash.text.TextFormat.letterSpacing | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| rightMargin Property | flash.text.TextFormat.rightMargin | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| size Property | flash.text.TextFormat.size | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Number data type in ActionScript 3.0. | |
| underline Property | flash.text.TextFormat.underline | In ActionScript 3.0, data type changed to Object because one of the possible values is null, which is not a member of the Boolean data type in ActionScript 3.0. | |
| url Property | flash.text.TextFormat.url | ||
| TextFormat Constructor | flash.text.TextFormat.TextFormat() | The size,color,bold,italic,underline,url,leftMargin,rightMargin,indent, andleadingparameters have all been converted to objects. | |
| getTextExtent() Method | Removed | Use the properties of flash.text.TextField for the measurements of a field containing a line of text, and use flash.text.TextLineMetrics for the measurements of the content within the text field. | |
| TextRenderer class | flash.text.TextRenderer | Location changed. Moved to flash.text package. | |
| maxLevel Property | flash.text.TextRenderer.maxLevel | Defined as a uintin ActionScript 3.0. | |
| setAdvancedAntialiasingTable() Method | flash.text.TextRenderer.setAdvancedAntiAliasingTable() | The fontStyleandcolorTypeparameter values can now be set using the FontStyle and TextColorType constants, respectively. TheadvancedAntiAliasingTableparameter now takes an array of one or more CSMSettings objects. | |
| TextSnapshot class | flash.text.TextSnapshot | This class has been moved to the flash.text package. Several parameters have changed, as well as some method names and some return types. | |
| findText() Method | flash.text.TextSnapshot.findText() | Name of the startIndexparameter changed tobeginIndex. Data type of thestartIndexparameter changed from Number to int. | |
| getCount() Method | flash.text.TextSnapshot.charCount | Changed from method to accessor property. Data return type changed from Number to uint. | |
| getSelected() Method | flash.text.TextSnapshot.getSelected() | Data type of parameters changed from Number to uint and names changed from startandendtobeginIndexandEndIndex. | |
| getSelectedText() Method | flash.text.TextSnapshot.getSelectedText() | In ActionScript 3.0, the parameter has a default value of false. | |
| getText() Method | flash.text.TextSnapshot.getText() | Data type of startandendparameters changed from Number to uint and names changed fromstartandendtobeginIndexandendIndex. | |
| getTextRunInfo() Method | flash.text.TextSnapshot.getTextRunInfo() | Data type of parameters changed from Number to uint. | |
| hitTestTextNearPos() Method | flash.text.TextSnapshot.hitTestTextNearPos() | Name of the closeDistparameter changed tomaxDistance; now has a default value = 0. | |
| setSelectColor() Method | flash.text.TextSnapshot.setSelectColor() | Data type of parameter changed from Number to uint and has a default value = 0xFFFF00. | |
| setSelected() Method | flash.text.TextSnapshot.setSelected() | Data type of startandendparameters changed from Number to uint and names changed fromstartandendtobeginIndexandendIndex. | |
| Video class | flash.media.Video | This class has been moved to the flash.media package. Video objects can now be created dynamically in ActionScript with the Video()constructor. Attach a video stream to the Video object by usingattachCamera()orattachNetStream(). | |
| _alpha Property | flash.display.DisplayObject.alpha | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| deblocking Property | flash.media.Video.deblocking | Data type changed from Number to int. | |
| _height Property | flash.display.DisplayObject.height | This property is inherited from the DisplayObject class Removed the initial underscore. | |
| height Property[read-only] | flash.media.Video.videoHeight | Data type changed from Number to int. | |
| _name Property | flash.display.DisplayObject.name | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _parent Property | flash.display.DisplayObject.parent | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _rotation Property | flash.display.DisplayObject.rotation | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| smoothing Property | flash.media.Video.smoothing | ||
| _visible Property | flash.display.DisplayObject.visible | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _width Property | flash.display.DisplayObject.width | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| width Property[read-only] | flash.media.Video.videoWidth | Data type changed from Number to int. | |
| _x Property | flash.display.DisplayObject.x | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _xmouse Property[read-only] | flash.display.DisplayObject.mouseX | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _xscale Property | flash.display.DisplayObject.scaleX | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _y Property | flash.display.DisplayObject.y | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _ymouse Property[read-only] | flash.display.DisplayObject.mouseY | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| _yscale Property | flash.display.DisplayObject.scaleY | This property is inherited from the DisplayObject class. Removed the initial underscore. | |
| attachVideo() Method | flash.media.Video.attachNetStream() | To specify a video stream from a camera object, use flash.media.Video.attachCamera(). | |
| clear() Method | flash.media.Video.clear() | ||
| XML class | flash.xml.XMLDocument | This class has been moved to the flash.xml package and its name has been changed to XMLDocument to avoid conflict with the new top-level XML class that implements ECMAScript for XML (E4X). | |
| contentType Property | flash.net.URLRequest.contentType | ||
| docTypeDecl Property | flash.xml.XMLDocument.docTypeDecl | ||
| idMap Property | flash.xml.XMLDocument.idMap | ||
| ignoreWhite Property | flash.xml.XMLDocument.ignoreWhite | ||
| loaded Property | Removed | File loading functionality was removed from the XMLDocument class. Use URLLoader instead. | |
| status Property | Removed | Parse failures are now reported by exceptions. | |
| xmlDecl Property | flash.xml.XMLDocument.xmlDecl | ||
| XML Constructor | flash.xml.XMLDocument.XMLDocument() | ||
| addRequestHeader() Method | flash.net.URLRequest.requestHeaders | ||
| createElement() Method | flash.xml.XMLDocument.createElement() | ||
| createTextNode() Method | flash.xml.XMLDocument.createTextNode() | ||
| getBytesLoaded() Method | flash.net.URLLoader.bytesLoaded | File loading functionality was removed from the XMLDocument class. Use URLLoader instead. | |
| getBytesTotal() Method | flash.net.URLLoader.bytesTotal | File loading functionality was removed from the XMLDocument class. Use URLLoader instead. | |
| load() Method | Removed | File loading functionality was removed from the XMLDocument class (formerly the XML class in ActionScript 2.0). Use URLLoader instead. | |
| onData() EventHandler | flash.net.URLLoader dispatches event: complete | File loading functionality was removed from the XMLDocument class. Use URLLoader instead. Replaced in the new event model by a completeevent. | |
| onHTTPStatus() EventHandler | flash.net.URLLoader dispatches event: httpStatus | File loading functionality was removed from the XMLDocument class. Use URLLoader instead. Replaced in the new event model by an httpStatusevent. | |
| onLoad() EventHandler | flash.net.URLLoader dispatches event: complete | File loading functionality was removed from the XMLDocument class. Use URLLoader instead. Replaced in the new event model by a completeevent. | |
| parseXML() Method | flash.xml.XMLDocument.parseXML() | ||
| send() Method | Removed | Send functionality was removed from the XMLDocument class (formerly the XML class in ActionScript 2.0). Use the functions and classes of the flash.net package instead. | |
| sendAndLoad() Method | Removed | Send and load functionality were removed from the XMLDocument class (formerly the XML class in ActionScript 2.0). Use URLRequest and URLLoader instead. | |
| XMLNode class | flash.xml.XMLNode | Location changed. This class has been moved to the flash.xml package. | |
| nodeType Property[read-only] | flash.xml.XMLNode.nodeType | Data type changed from Number to uint. | |
| XMLNode Constructor | flash.xml.XMLNode.XMLNode() | Data type of the typeparameter changed from Number to uint. | |
| XMLSocket class | flash.net.XMLSocket | This class has been moved to the flash.net package. | |
| XMLSocket Constructor | flash.net.XMLSocket.XMLSocket() | Added two optional parameters to specify host and port. | |
| connect() Method | flash.net.XMLSocket.connect() | Data type of the portparameter changed to int. | |
| onClose() EventHandler | flash.net.XMLSocket dispatches event: close | Replaced in the new event model by a closeevent. | |
| onConnect() EventHandler | flash.net.XMLSocket dispatches event: connect | Replaced in the new event model by a connectevent. | |
| onData() EventHandler | flash.net.XMLSocket dispatches event: data | Replaced in the new event model by a dataevent. | |
| onXML() EventHandler | Removed | In ActionScript 3.0, only the dataevent is dispatched, so that you can choose whether to use E4X or the legacy XML (XMLDocument class) parser. The oldonXMLevent handler was called after XML was parsed, so it doesn't make sense in ActionScript 3.0 because you can now choose between the XML (E4X) class and the XMLDocument (legacy) class to parse the XML. | |
Thu Jun 22 2006, 10:24 PM GMT-07:00
No screen name said on Jul 22, 2006 at 7:59 AM : 
 
  djtechwriter said on Jul 24, 2006 at 11:55 AM :
 djtechwriter said on Jul 24, 2006 at 11:55 AM : 
 
  djtechwriter said on Jul 25, 2006 at 5:31 PM :
 djtechwriter said on Jul 25, 2006 at 5:31 PM : 
 
  peterd_mm said on Jul 25, 2006 at 6:49 PM :
 peterd_mm said on Jul 25, 2006 at 6:49 PM : 
Why was eval() removed?flashArchitect said on Jul 24, 2006 at 10:40 AM :
this document states that the AS2 event handler, onReleaseOutside() is replaced in AS3 by a mouseUp event after a call to flash.display.InteractiveObject.setCapture(). However, there is no such method or inherited method in InteractiveObject. So what replaces onReleaseOutside?
 
  djtechwriter said on Jul 24, 2006 at 11:55 AM :
 djtechwriter said on Jul 24, 2006 at 11:55 AM : 
flashArchitect,
The table shouldn't mention setCapture(), but onReleaseOutside() has been replaced by the flash.display.InteractiveObject event mouseUp, as stated. You should create an event listener and handler for mouseUp.
 
  djtechwriter said on Jul 25, 2006 at 5:31 PM :
 djtechwriter said on Jul 25, 2006 at 5:31 PM : 
eval() was removed because the implementation of it in AS2 was limited and you can use other more efficient operations for obtaining the same result. In the AS2 entry for eval():
http://livedocs.macromedia.com/flash/8/main/00001726.html
You'll notice the description suggests some alternatives.
 
  peterd_mm said on Jul 25, 2006 at 6:49 PM :
 peterd_mm said on Jul 25, 2006 at 6:49 PM : 
The InteractiveObject.setCapture() method no longer exists in ActionScript 3.0. If you need this functionality, you should use the capture phase of the event model by calling stage.addEventListener(MouseEvent.<event_name>, myMouseHandler, true) where <event_name> is the mouse event you wish to block. You can then emulate setCapture() by calling event.stopPropagation();
Peter
Flash Player documentation
Adobe Systems Incorporated
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}