AS2.0和AS3.0的区别

View comments | RSS feed

Adobe®  Flex™ 2 Language Reference
 
All Packages  | All Classes  | Language Elements  | Index  | Appendixes  | Conventions  | Frames
ActionScript 2.0 Migration
 

The following table describes the differences between ActionScript 2.0 and 3.0.


 ActionScript 2.0ActionScript 3.0Comments
 Compiler directives
 #endinitclipRemoved 
 #includeRemovedSee the include statement for similar functionality.
 #initclipRemoved 
 
 Constants
 falsefalse The value false , rather than undefined , is the default value of a Boolean object.
 NaNNaN The value NaN , rather than undefined , is the default value of a Number object.
 newlineRemovedUse the escape sequence composed of the backslash character followed by the character "n" (/n).
 nullnull The value null , rather than undefined , is the default value of the Object and String classes.
 undefinedundefined The value undefined can be assigned only to untyped variables; it is not the default value of any typed object.
 
 Global functions
 asfunctionflash.text.TextField dispatches event: link Replaced by the new event handling model. You now get the same functionality by using the syntax Event: instead of asfunction: . When a user clicks the link, Flash Player dispatches a TextEvent object of type TextEvent.LINK, which your code can listen for with the addEventListener() method. Any text that you decide to include is stored in the event object's text property.
 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()RemovedTo 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.length instead.
 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()RemovedSet all references to a movie clip to null to make the movie clip eligible for garbage collection.
 setInterval()flash.utils.setInterval() Moved to flash.utils package. Consider using the Timer class instead.
 setProperty()RemovedTo 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()RemovedUse the dot (.) operator or the with statement 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
 _accPropsflash.accessibility.AccessibilityProperties Replaced by the AccessibilityProperties class.
 _focusrectflash.display.InteractiveObject.focusRect Replaced by the focusRect property of the InteractiveObject class.
 _globalRemovedUse a static member of a class instead.
 _highqualityflash.display.Stage.quality Replaced by the quality property of the Stage class.
 _levelRemovedThe 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.
 maxscrollflash.text.TextField Replaced by the maxScrollH and maxScrollV properties of the TextField class.
 _parentflash.display.DisplayObject.parent Replaced by the parent property of the DisplayObject class.
 _qualityflash.display.Stage.quality Replaced by the quality property of the Stage class.
 _rootflash.display.DisplayObject.stage Removed. The closest equivalent is the Stage, which serves as the root of the ActionScript 3.0 display list.
 scrollflash.text.TextField Removed. Replaced by the scrollH and scrollV properties of the TextField class.
 _soundbuftimeflash.media.SoundMixer.bufferTime Replaced by the bufferTime property of the SoundMixer class.
 thisthis Instance methods are bound to the instance that implemented the method; therefore, the this reference inside the body of an instance method always refers to the instance that implemented the method.
 
 Operators
 add (concatenation (strings))RemovedUse the concatenation (+) operator instead.
 eq (equality (strings))RemovedUse the equality (==) operator instead.
 gt (greater than (strings))RemovedUse the greater than (> ) operator instead.
 ge (greater than or equal to (strings))RemovedUse the greater than or equal to (>= ) operator instead.
 <> (inequality)RemovedUse the inequality (!= ) operator instead.
 instanceofis Although the instanceof operator is available, it only checks the prototype chain, which is not the primary inheritance mechanism in ActionScript 3.0. Use the is operator to check whether an object is a member of a specific data type.
 lt (less than (strings))RemovedUse the less than (< ) operator instead.
 le (less than or equal to (strings))RemovedUse the less than or equal to (<= ) operator instead.
 and (logical AND)RemovedUse the logical AND (&& ) operator instead.
 not (logical NOT)RemovedUse the logical NOT (! ) operator instead.
 or (logical OR)RemovedUse the logical OR (|| ) operator instead.
 ne (not equal (strings))RemovedUse the inequality (!= ) operator instead.
 
 Statements
 deletedelete The delete operator works only on properties of objects, but not on variables that hold references to objects.
 importimport The import statement is not optional. To use a class, you must import it, whether or not you use a fully qualified name.
 intrinsicRemovedActionScript 3.0 has a similar, but not identical, keyword named native . The native keyword is similar to intrinsic in that it directs the compiler not to expect a function body, but is dissimilar in that native has no effect on compile-time type checking.
 privateprivate The ActionScript 3.0 private keyword specifies that an identifier is visible only within a class, and does not extend to subclasses. Moreover, in ActionScript 3.0 the private keyword is enforced at both compile time and run time.
 set variableRemovedUse the assignment (= ) operator instead.
 supersuper 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() Methodflash.accessibility.Accessibility.active Changed from function to accessor property. Name changed from isActive to active .
 updateProperties() Methodflash.accessibility.Accessibility.updateProperties()  
 
 arguments class arguments  
 caller PropertyRemovedYou can achieve the same functionality by passing arguments.callee from the caller function as an argument to the callee function. See the Examples section of arguments.callee for an example.
 
 Array class  
 CASEINSENSITIVE ConstantArray.CASEINSENSITIVE Data type changed to uint.
 DESCENDING ConstantArray.DESCENDING Data type changed to uint.
 length PropertyArray.length Data type changed to uint.
 NUMERIC ConstantArray.NUMERIC Data type changed to uint.
 RETURNINDEXEDARRAY ConstantArray.RETURNINDEXEDARRAY Data type changed to uint.
 UNIQUESORT ConstantArray.UNIQUESORT Data type changed to uint.
 Array ConstructorArray.Array() Parameter changed to use the ...(rest) parameter format.
 push() MethodArray.push() Parameter changed to use the ...(rest) parameter format.
 sort() MethodArray.sort() Data type of the options parameter changed to uint.
 sortOn() MethodArray.sortOn() Data type of the options parameter 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 the fieldName parameter, and each sort field can have its own matching options parameter if you also pass in a matching array of options flags for the options parameter.
 splice() MethodArray.splice() The parameters can have any data type, but the preferred data types are int and uint. The value parameter changed to the ...(rest) parameter format.
 unshift() MethodArray.unshift() The value parameter 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() Methodflash.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() Methodflash.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 the broadcastMessage() method sends messages directly to each registered listener object.
 initialize() MethodRemovedThere 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() Methodflash.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() Methodflash.display.BitmapData.copyChannel() The sourceChannel and destChannel parameters are now uint data types.
 draw() Methodflash.display.BitmapData.draw() The source parameter is now IBitmapDrawable; DisplayObject and BitmapData both implement the IBitmapDrawable interface, so you can pass either a DisplayObject or a BitmapData object to the source parameter.
 fillRect() Methodflash.display.BitmapData.fillRect() The color parameter is now a uint value.
 floodFill() Methodflash.display.BitmapData.floodFill() Now accepts int values for the x and y parameters and a uint value for color .
 getColorBoundsRect() Methodflash.display.BitmapData.getColorBoundsRect() Now accepts uint values for the mask and color parameters.
 getPixel() Methodflash.display.BitmapData.getPixel() Now accepts int parameter values and returns a uint value.
 getPixel32() Methodflash.display.BitmapData.getPixel32() Now accepts int parameter values and returns a uint value.
 hitTest() Methodflash.display.BitmapData.hitTest() Now accepts uint values for the firstAlphaThreshold and secondAlphaThreshold parameters.
 loadBitmap() MethodRemoved 
 merge() Methodflash.display.BitmapData.merge() Now accepts uint values for the multiplier parameters.
 noise() Methodflash.display.BitmapData.noise() Now accepts an int value for the randomSeed parameter and uint values for the low , high , and channelOptions parameters.
 perlinNoise() Methodflash.display.BitmapData.perlinNoise() Now accepts an int value for the randomSeed parameter and uint values for the numOctaves and channelOptions parameters.
 pixelDissolve() Methodflash.display.BitmapData.pixelDissolve() Now accepts an int value for the randomSeed and numPixels parameters and a uint value for the fillColor parameter. (The numPixels parameter is named numberOfPixels in ActionScript 2.0.)
 scroll() Methodflash.display.BitmapData.scroll() Now accepts int values for the x and y parameters.
 setPixel() Methodflash.display.BitmapData.setPixel() Now accepts int values for the x and y parameters and a uint value for color .
 setPixel32() Methodflash.display.BitmapData.setPixel32() Now accepts int values for the x and y parameters and a unit value for color .
 threshold() Methodflash.display.BitmapData.threshold() Now accepts uint values for the threshold , color , and mask parameters, and returns a uint value.
 
 BlurFilter class  
 quality Propertyflash.filters.BlurFilter.quality The quality property data type changed from a Number to uint.
 
 Button class flash.display.SimpleButton  
 _alpha Propertyflash.display.DisplayObject.alpha  
 blendMode Propertyflash.display.DisplayObject.blendMode  
 cacheAsBitmap Propertyflash.display.DisplayObject.cacheAsBitmap  
 enabled Propertyflash.display.SimpleButton.enabled  
 filters Propertyflash.display.DisplayObject.filters In ActionScript 3.0, the data type is Array.
 _focusrect Propertyflash.display.InteractiveObject.focusRect  
 _height Propertyflash.display.DisplayObject.height  
 _highquality PropertyRemoved 
 _name Propertyflash.display.DisplayObject.name  
 _parent Propertyflash.display.DisplayObject.parent  
 _quality PropertyRemovedYou can set rendering quality for all display objects by using flash.display.Stage.quality .
 _rotation Propertyflash.display.DisplayObject.rotation  
 scale9Grid Propertyflash.display.DisplayObject.scale9Grid  
 _soundbuftime Propertyflash.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 Propertyflash.display.InteractiveObject.tabEnabled  
 tabIndex Propertyflash.display.InteractiveObject.tabIndex  
 _target Property[read-only]Removed 
 trackAsMenu Propertyflash.display.SimpleButton.trackAsMenu  
 _url Property[read-only]Removed 
 useHandCursor Propertyflash.display.SimpleButton.useHandCursor  
 _visible Propertyflash.display.DisplayObject.visible  
 _width Propertyflash.display.DisplayObject.width  
 _x Propertyflash.display.DisplayObject.x  
 _xmouse Property[read-only]flash.display.DisplayObject.mouseX  
 _xscale Propertyflash.display.DisplayObject.scaleX  
 _y Propertyflash.display.DisplayObject.y  
 _ymouse Property[read-only]flash.display.DisplayObject.mouseY  
 _yscale Propertyflash.display.DisplayObject.scaleY  
 getDepth() Methodflash.display.DisplayObjectContainer.getChildIndex() ActionScript 3.0 provides direct access to the display list, so depth is handled differently.
 onDragOut() EventHandlerflash.display.InteractiveObject dispatches event: mouseOut Replaced in the new event model by a mouseOut event, after a call to InteractiveObject.setCapture() .
 onDragOver() EventHandlerflash.display.InteractiveObject dispatches event: mouseOver Replaced in the new event model by a mouseOver event after a call to the InteractiveObject.setCapture() method.
 onKeyDown() EventHandlerflash.display.InteractiveObject dispatches event: keyDown Replaced in the new event model by a keyDown event.
 onKeyUp() EventHandlerflash.display.InteractiveObject dispatches event: keyUp Replaced in the new event model by a keyUp event.
 onKillFocus() EventHandlerflash.display.InteractiveObject dispatches event: focusOut Replaced in the new event model by a focusOut event.
 onPress() EventHandlerflash.display.InteractiveObject dispatches event: mouseDown Replaced in the new event model by a mouseDown event.
 onRelease() EventHandlerflash.display.InteractiveObject dispatches event: mouseUp Replaced in the new event model by a mouseUp event.
 onReleaseOutside() EventHandlerflash.display.InteractiveObject dispatches event: mouseUp Replaced in the new event model by a mouseUp event after a call to flash.display.InteractiveObject.setCapture() .
 onRollOut() EventHandlerflash.display.InteractiveObject dispatches event: mouseOut Replaced in the new event model by a mouseOut event.
 onRollOver() EventHandlerflash.display.InteractiveObject dispatches event: mouseOver Replaced in the new event model by a mouseOver event.
 onSetFocus() EventHandlerflash.display.InteractiveObject dispatches event: focusIn Replaced in the new event model by a focusIn event.
 
 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() Methodflash.media.Camera.getCamera()  
 onActivity() EventHandlerflash.events.ActivityEvent.ACTIVITY  
 onStatus() EventHandlerflash.media.Camera dispatches event: status Replaced in the new event model by a status StatusEvent object.
 setMode() Methodflash.media.Camera.setMode() The width and height parameters changed to data type int.
 setMotionLevel() Methodflash.media.Camera.setMotionLevel() Both parameters changed to data type int.
 setQuality() Methodflash.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 colorTransform property of a Transform object, which in turn can be assigned to the transform property of a DisplayObject instance.
 Color Constructorflash.geom.ColorTransform.ColorTransform() Removed. You can specify color values by using the ColorTransform() constructor.
 getRGB() Methodflash.geom.ColorTransform.color The RGB color value can be accessed by using the color accessor property of the ColorTransform class.
 getTransform() MethodRemovedColor values can be assigned directly by using the ColorTransform() class constructor or properties.
 setRGB() Methodflash.geom.ColorTransform.color The RGB color value can be set by using the color accessor property of the ColorTransform class.
 setTransform() MethodRemovedColor 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 Propertyflash.ui.ContextMenu.builtInItems  
 customItems Propertyflash.ui.ContextMenu.customItems  
 ContextMenu Constructorflash.ui.ContextMenu.ContextMenu()  
 copy() Methodflash.ui.ContextMenu.clone()  
 hideBuiltInItems() Methodflash.ui.ContextMenu.hideBuiltInItems()  
 onSelect() EventHandlerflash.ui.ContextMenu dispatches event: menuSelect Instead of invoking the onSelect() event handler, the ActionScript 3.0 class dispatches a menuSelect event.
 
 ContextMenuItem class flash.ui.ContextMenuItem The ContextMenuItem class is now part of the flash.ui package.
 caption Propertyflash.ui.ContextMenuItem.caption  
 enabled Propertyflash.ui.ContextMenuItem.enabled  
 separatorBefore Propertyflash.ui.ContextMenuItem.separatorBefore  
 visible Propertyflash.ui.ContextMenuItem.visible  
 ContextMenuItem Constructorflash.ui.ContextMenuItem.ContextMenuItem()  
 copy() Methodflash.ui.ContextMenuItem.clone()  
 onSelect() EventHandlerflash.ui.ContextMenuItem dispatches event: menuItemSelect Instead of invoking the onSelect() event handler, the ActionScript 3.0 class dispatches a menuSelect event.
 
 ConvolutionFilter class  
 clone() Methodflash.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() and Date.date return the same value.
 getUTCYear() MethodDate.getUTCFullYear() This method was removed because it is not part of ECMAScript. Use Date.getUTCFullYear() instead.
 getYear() MethodDate.getFullYear() This method was removed because it is not part of ECMAScript. Use Date.getFullYear() instead.
 setYear() MethodDate.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 Propertyflash.filters.DisplacementMapFilter.color The data type of this parameter is now uint.
 componentX Propertyflash.filters.DisplacementMapFilter.componentX The data type of this parameter is now uint.
 componentY Propertyflash.filters.DisplacementMapFilter.componentY The data type of this parameter is now uint.
 DisplacementMapFilter Constructorflash.filters.DisplacementMapFilter.DisplacementMapFilter() The data type of the componentX , componentY , and color parameters is now uint.
 clone() Methodflash.filters.DisplacementMapFilter.clone() Now returns a BitmapFilter object.
 
 DropShadowFilter class flash.filters.DropShadowFilter  
 color Propertyflash.filters.DropShadowFilter.color The data type of this parameter changed from Number to uint.
 quality Propertyflash.filters.DropShadowFilter.quality The data type of this parameter changed from Number to uint.
 DropShadowFilter Constructorflash.filters.DropShadowFilter.DropShadowFilter() All parameters now have a default value, and some parameter types have changed.
 clone() Methodflash.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() Methodflash.external.ExternalInterface.addCallback() The ActionScript 3.0 version of this method does not accept the instance parameter. The method parameter is replaced by a closure parameter, 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 the closure reference for security reasons, a SecurityError exception is thrown.
 call() Methodflash.external.ExternalInterface.call() If a problem occurs, the ActionScript 3.0 version of this method throws an Error or SecurityError exception, in addition to returning null .
 
 FileReference class flash.net.FileReference The ActionScript 3.0 version inherits the addEventListener() and removeEventListener() methods from the EventDispatcher class. Dispatched events replace the event handler functions.
 postData Propertyflash.net.URLRequest.data The postData property 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 the data property of the URLRequest class to send either POST or GET data. See flash.net.URLRequest.data in 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() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because the class inherits the addEventListener() method from the EventDispatcher class.
 browse() Methodflash.net.FileReference.browse() In ActionScript 2.0, returns false when there is an error. In ActionScript 3.0, throws an IllegalOperationError or ArgumentError exception. However, the method still returns false if the parameters are invalid, the file-browsing dialog box does not open, or another browser session is in progress. Also, the typelist parameter changed. In ActionScript 2.0, you can pass the browse() method an array of strings to specify a file filter. In ActionScript 3.0, you pass an array of FileFilter objects.
 download() Methodflash.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 to download() is a string. In ActionScript 3.0, you pass a URLRequest object.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because the class inherits the removeEventListener() method from the EventDispatcher class.
 upload() Methodflash.net.FileReference.upload() Various changes have occurred:
  • The data type for the first parameter has changed. In ActionScript 2.0, the first parameter you pass to upload() is a string. In ActionScript 3.0, you pass a URLRequest object.
  • In ActionScript 3.0, there is a new second parameter, uploadDataFieldName , which is the field name that precedes the file data in the upload POST operation.
  • In ActionScript 3.0, there is a new third parameter, testUpload , that lets you control whether Flash Player performs a test upload before uploading the file.
  • When an error occurs, browse() throws exceptions instead of returning false .
 onCancel Listenerflash.net.FileReference dispatches event: cancel In ActionScript 3.0, instead of invoking the onCancel() event handler, this class dispatches an event named cancel .
 onComplete Listenerflash.net.FileReference dispatches event: complete In ActionScript 3.0, instead of invoking the onComplete() event handler, this class dispatches an event named complete .
 onHTTPError Listenerflash.net.FileReference dispatches event: httpStatus In ActionScript 3.0, instead of invoking the onHTTPError() event handler, this class dispatches an event named httpStatus .
 onIOError Listenerflash.net.FileReference dispatches event: ioError In ActionScript 3.0, instead of invoking the onIOError() event handler, this class dispatches an event named ioError .
 onOpen Listenerflash.net.FileReference dispatches event: open In ActionScript 3.0, instead of invoking the onOpen() event handler, this class dispatches an event named open .
 onProgress Listenerflash.net.FileReference dispatches event: progress In ActionScript 3.0, instead of invoking the onProgress() event handler, this class dispatches an event named progress .
 onSecurityError Listenerflash.net.FileReference dispatches event: securityError In ActionScript 3.0, instead of invoking the onSecurityError() event handler, this class dispatches an event named securityError .
 onSelect Listenerflash.net.FileReference dispatches event: select In ActionScript 3.0, instead of invoking the onSelect() event handler, this class dispatches an event named select .
 
 FileReferenceList class flash.net.FileReferenceList The ActionScript 3.0 class inherits the addEventListener() and removeEventListener() methods from the EventDispatcher class. Instead of the onCancel() and onSelect() event handlers, the ActionScript 3.0 class uses events named cancel and select .
 addListener() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because the class inherits the addEventListener() method from the EventDispatcher class.
 browse() Methodflash.net.FileReferenceList.browse() In ActionScript 3.0, instead of returning false when there is an error, this method throws an IllegalOperationError exception. Also, the typelist parameter changed. In ActionScript 2.0, you can pass the browse() method an array of strings to specify a file filter. In ActionScript 3.0, you pass an array of FileFilter objects.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because the class inherits the removeEventListener() method from the EventDispatcher class.
 onCancel Listenerflash.net.FileReferenceList dispatches event: cancel In ActionScript 3.0, instead of invoking the onCancel() event handler, this class dispatches an event named cancel .
 onSelect Listenerflash.net.FileReferenceList dispatches event: select In ActionScript 3.0, instead of invoking the onSelect() event handler, this class dispatches an event named select .
 
 GlowFilter class flash.filters.GlowFilter The data type of several properties changed from Number to unit.
 color Propertyflash.filters.GlowFilter.color The data type of this property changed from Number to unit.
 quality Propertyflash.filters.GlowFilter.quality The data type of this property changed from Number to unit.
 GlowFilter Constructorflash.filters.GlowFilter.GlowFilter() The color and quality parameters are now uint and int data types, respectively, instead of Number. All parameters are now assigned a default value.
 clone() Methodflash.filters.GlowFilter.clone() Returns a BitmapFilter object instead of a GlowFilter object.
 
 GradientBevelFilter class flash.filters.GradientBevelFilter  
 quality Propertyflash.filters.GradientBevelFilter.quality The data type of this property changed from Number to int.
 clone() Methodflash.filters.GradientBevelFilter.clone() Returns a BitmapFilter object instead of a GradientBevelFilter object.
 
 GradientGlowFilter class flash.filters.GradientGlowFilter  
 quality Propertyflash.filters.GradientGlowFilter.quality The data type of this property changed from Number to int.
 GradientGlowFilter Constructorflash.filters.GradientGlowFilter.GradientGlowFilter() Default values added to all parameters and the data type of the quality parameter changed from Number to int.
 clone() Methodflash.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 Constantflash.system.IMEConversionMode.ALPHANUMERIC_FULL  
 ALPHANUMERIC_HALF Constantflash.system.IMEConversionMode.ALPHANUMERIC_HALF  
 CHINESE Constantflash.system.IMEConversionMode.CHINESE  
 JAPANESE_HIRAGANA Constantflash.system.IMEConversionMode.JAPANESE_HIRAGANA  
 JAPANESE_KATAKANA_FULL Constantflash.system.IMEConversionMode.JAPANESE_KATAKANA_FULL  
 JAPANESE_KATAKANA_HALF Constantflash.system.IMEConversionMode.JAPANESE_KATAKANA_HALF  
 KOREAN Constantflash.system.IMEConversionMode.KOREAN  
 UNKNOWN Constantflash.system.IMEConversionMode.UNKNOWN  
 addListener() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because the class inherits the addEventListener() method from the EventDispatcher class.
 getConversionMode() Methodflash.system.IME.conversionMode Changed to an accessor property.
 getEnabled() Methodflash.system.IME.enabled Changed to an accessor property.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because the class inherits the removeEventListener() method from the EventDispatcher class.
 setConversionMode() Methodflash.system.IME.conversionMode Changed to an accessor property.
 setEnabled() Methodflash.system.IME.enabled Changed to an accessor property.
 onIMEComposition Listenerflash.system.IME dispatches event: imeComposition In ActionScript 3.0, instead of invoking the onIMEComposition() event handler, this class dispatches an event named imeComposition .
 
 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 Constantflash.ui.Keyboard.BACKSPACE Declared as a constant in ActionScript 3.0 and data type changed to unit.
 CAPSLOCK Constantflash.ui.Keyboard.CAPS_LOCK Declared as a constant in ActionScript 3.0, underscore added, and data type changed to uint.
 CONTROL Constantflash.ui.Keyboard.CONTROL Declared as a constant in ActionScript 3.0 and data type changed to uint.
 DELETEKEY Constantflash.ui.Keyboard.DELETE Name changed to DELETE in ActionScript 3.0, declared as a constant, and data type changed to uint.
 DOWN Constantflash.ui.Keyboard.DOWN Declared as a constant in ActionScript 3.0 and data type changed to uint.
 END Constantflash.ui.Keyboard.END Declared as a constant in ActionScript 3.0 and data type changed to uint.
 ENTER Constantflash.ui.Keyboard.ENTER Declared as a constant in ActionScript 3.0 and data type changed to uint.
 ESCAPE Constantflash.ui.Keyboard.ESCAPE Declared as a constant in ActionScript 3.0 and data type changed to uint.
 HOME Constantflash.ui.Keyboard.HOME Declared as a constant in ActionScript 3.0 and data type changed to uint.
 INSERT Constantflash.ui.Keyboard.INSERT Declared as a constant in ActionScript 3.0 and data type changed to uint.
 LEFT Constantflash.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 Constantflash.ui.Keyboard.PAGE_DOWN Name changed to PAGE_DOWN in ActionScript 3.0, declared as a constant, and data type changed to uint.
 PGUP Constantflash.ui.Keyboard.PAGE_UP Name changed to PAGE_UP in ActionScript 3.0, declared as a constant, and data type changed to uint.
 RIGHT Constantflash.ui.Keyboard.RIGHT Declared as a constant in ActionScript 3.0 and data type changed to uint.
 SHIFT Constantflash.ui.Keyboard.SHIFT Declared as a constant in ActionScript 3.0 and data type changed to uint.
 SPACE Constantflash.ui.Keyboard.SPACE Declared as a constant in ActionScript 3.0 and data type changed to uint.
 TAB Constantflash.ui.Keyboard.TAB Declared as a constant in ActionScript 3.0 and data type changed to uint.
 UP Constantflash.ui.Keyboard.UP Declared as a constant in ActionScript 3.0 and data type changed to uint.
 addListener() Methodflash.events.EventDispatcher.addEventListener() In ActionScript 3.0, there is no need to have a class-specific addListener() method, because all display objects inherit the addEventListener() method from the EventDispatcher class.
 getAscii() Methodflash.events.KeyboardEvent.charCode  
 getCode() Methodflash.events.KeyboardEvent.keyCode  
 isAccessible() Methodflash.ui.Keyboard.isAccessible()  
 isDown() MethodRemovedRemoved for security reasons.
 isToggled() MethodRemovedRemoved for security reasons.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In ActionScript 3.0, there is no need to have a class-specific removeListener() method, because all display objects inherit the removeEventListener() method from the EventDispatcher class.
 onKeyDown Listenerflash.display.InteractiveObject dispatches event: keyDown In ActionScript 3.0, instead of invoking the onKeyDown event handler, the InteractiveObject class dispatches a keyDown KeyboardEvent object.
 onKeyUp Listenerflash.display.InteractiveObject dispatches event: keyUp In ActionScript 3.0, instead of invoking the onKeyUp event handler, the InteractiveObject class dispatches a keyUp KeyboardEvent object.
 
 LoadVars class flash.net.URLLoader The LoadVars class functionality is replaced by the URLLoader, URLRequest, URLStream, and URLVariables classes.
 contentType Propertyflash.net.URLRequest.contentType  
 loaded PropertyRemovedThere is no corresponding Boolean property in ActionScript 3.0, but you can use flash.events.Event.COMPLETE to set up listeners that receive notification when data is loaded.
 LoadVars Constructorflash.net.URLLoader.URLLoader()  
 addRequestHeader() Methodflash.net.URLRequestHeader  
 decode() Methodflash.net.URLVariables.decode()  
 getBytesLoaded() Methodflash.net.URLLoader.bytesLoaded Class changed to URLLoader; changed from function to property accessor; and name changed from getBytesLoaded to bytesLoaded .
 getBytesTotal() Methodflash.net.URLLoader.bytesTotal Class changed to URLLoader; changed from function to property accessor; and name changed from getBytesTotal to bytesTotal .
 load() Methodflash.net.URLLoader.load()  
 onData() EventHandlerflash.net.URLLoader dispatches event: complete See the URLLoader class. A complete event is dispatched when the download operation is complete but before any data is parsed.
 onHTTPStatus() EventHandlerflash.net.URLLoader dispatches event: httpStatus In ActionScript 3.0, instead of invoking the onHTTPStatus event handler, the URLLoader class dispatches an HTTPStatusEvent object named httpStatus .
 onLoad() EventHandlerflash.net.URLLoader dispatches event: complete See the URLLoader class. A complete event is dispatched when the download operation is complete.
 send() Methodflash.net.sendToURL()  
 sendAndLoad() Methodflash.net.sendToURL() The sendToURL() method sends a URL request to the server, but ignores the response. To receive the response, use flash.net.sendToURL() .
 toString() MethodRemoved 
 
 LocalConnection class flash.net.LocalConnection This class has been moved to the flash.net package.
 LocalConnection Constructorflash.net.LocalConnection.LocalConnection()  
 allowDomain() EventHandlerflash.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() EventHandlerflash.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() Methodflash.net.LocalConnection.close()  
 connect() Methodflash.net.LocalConnection.connect()  
 domain() Methodflash.net.LocalConnection.domain Changed to a property accessor.
 onStatus() EventHandlerflash.net.LocalConnection dispatches event: status In the new event model, callback functions are replaced by event objects.
 send() Methodflash.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() Methodflash.media.Microphone.getMicrophone() Name changed from get() to getMicrophone() . Data type of parameter changed to uint.
 onActivity() EventHandlerflash.media.Microphone dispatches event: activity In ActionScript 3.0, instead of invoking the onActivity event handler, this class dispatches an activity event.
 onStatus() EventHandlerflash.media.Microphone dispatches event: status In ActionScript 3.0, instead of invoking the onStatus event handler, this class dispatches a status event.
 setGain() Methodflash.media.Microphone.gain Combined gain property and setGain() method into a get/set property accessor named gain . Data type changed to uint.
 setRate() Methodflash.media.Microphone.rate Combined rate property and setRate() method into a get/set property accessor named rate . Data type changed to uint.
 setSilenceLevel() Methodflash.media.Microphone.setSilenceLevel() Data type of timeOut parameter changed to int. Capitalization of the timeOut parameter changed to timeout .
 setUseEchoSuppression() Methodflash.media.Microphone.setUseEchoSuppression()  
 
 Mouse class flash.ui.Mouse  
 addListener() Methodflash.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 the addEventListener() method from the EventDispatcher class.
 hide() Methodflash.ui.Mouse.hide() Changed to return void .
 removeListener() Methodflash.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 the removeEventListener() method from the EventDispatcher class.
 show() Methodflash.ui.Mouse.show() Changed to return void .
 onMouseDown Listenerflash.display.InteractiveObject dispatches event: mouseDown Replaced in the new event model by a mouseDown event.
 onMouseMove Listenerflash.display.InteractiveObject dispatches event: mouseMove Replaced in the new event model by a mouseMove event.
 onMouseUp Listenerflash.display.InteractiveObject dispatches event: mouseUp Replaced in the new event model by a mouseUp event.
 onMouseWheel Listenerflash.display.InteractiveObject dispatches event: mouseWheel Replaced in the new event model by a mouseWheel event.
 
 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 Propertyflash.display.DisplayObject.alpha Moved to DisplayObject class and removed initial underscore from name.
 blendMode Propertyflash.display.DisplayObject.blendMode  
 cacheAsBitmap Propertyflash.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 Propertyflash.display.DisplayObject.filters  
 focusEnabled PropertyRemoved 
 _focusrect Propertyflash.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 Propertyflash.display.DisplayObject.height Moved to DisplayObject class and removed initial underscore from name.
 _highquality PropertyRemoved 
 hitArea Propertyflash.display.Sprite.hitArea Moved to Sprite class.
 _lockroot PropertyRemoved 
 menu PropertyRemoved 
 _name Propertyflash.display.DisplayObject.name Moved to DisplayObject class and removed initial underscore from name.
 opaqueBackground Propertyflash.display.DisplayObject.opaqueBackground  
 _parent Propertyflash.display.DisplayObject.parent Moved to DisplayObject class and removed initial underscore from name.
 _quality Propertyflash.display.Stage.quality  
 _rotation Propertyflash.display.DisplayObject.rotation Moved to DisplayObject class and removed initial underscore from name.
 scale9Grid Propertyflash.display.DisplayObject.scale9Grid  
 scrollRect Propertyflash.display.DisplayObject.scrollRect Changed to Rectangle data type.
 _soundbuftime Propertyflash.media.SoundMixer.bufferTime Moved to SoundMixer class, which is used for global sound control, renamed without abbreviations, and removed initial underscore from name.
 tabChildren Propertyflash.display.DisplayObjectContainer.tabChildren  
 tabEnabled Propertyflash.display.InteractiveObject.tabEnabled  
 tabIndex Propertyflash.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 Propertyflash.display.MovieClip.trackAsMenu  
 transform Propertyflash.display.DisplayObject.transform  
 _url Property[read-only]flash.display.Loader.contentLoaderInfo  
 useHandCursor Propertyflash.display.Sprite.useHandCursor  
 _visible Propertyflash.display.DisplayObject.visible Moved to DisplayObject class and removed initial underscore from name.
 _width Propertyflash.display.DisplayObject.width Moved to DisplayObject class and removed initial underscore from name.
 _x Propertyflash.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 Propertyflash.display.DisplayObject.scaleX Moved to DisplayObject class, changed name to scaleX , and removed initial underscore from name.
 _y Propertyflash.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 Propertyflash.display.DisplayObject.scaleY Moved to DisplayObject class, changed name to scaleY , and removed initial underscore from name.
 attachAudio() MethodRemovedIf the audio source is a Microphone object, use NetStream.attachAudio() or Microphone.setLoopBack() .

If the audio source is an FLV file, use Video.attachNetStream() and a NetStream object.

 attachBitmap() MethodRemovedIn ActionScript 3.0, use addChild() to add child display objects.
 attachMovie() MethodRemovedIn ActionScript 3.0, use addChild() to add child display objects.
 beginBitmapFill() Methodflash.display.Graphics.beginBitmapFill()  
 beginFill() Methodflash.display.Graphics.beginFill() Moved to Graphics class and changed data type of the first parameter to uint.
 beginGradientFill() Methodflash.display.Graphics.beginGradientFill()  
 clear() Methodflash.display.Graphics.clear()  
 createEmptyMovieClip() MethodRemovedIn ActionScript 3.0, use the new operator to create movie clips.
 createTextField() MethodRemovedIn ActionScript 3.0, use the new operator to create text fields.
 curveTo() Methodflash.display.Graphics.curveTo()  
 duplicateMovieClip() MethodRemovedIn ActionScript 3.0, use the new operator to create a new instance.
 endFill() Methodflash.display.Graphics.endFill()  
 getBounds() Methodflash.display.DisplayObject.getBounds()  
 getBytesLoaded() Methodflash.net.URLLoader.bytesLoaded Moved to URLLoader class and data type changed from Number to int.
 getBytesTotal() Methodflash.net.URLLoader.bytesTotal Moved to URLLoader class and data type changed from Number to int.
 getDepth() Methodflash.display.DisplayObjectContainer.getChildIndex() ActionScript 3.0 provides direct access to the display list, so depth is handled differently.
 getInstanceAtDepth() Methodflash.display.DisplayObjectContainer.getChildAt() ActionScript 3.0 provides direct access to the display list, so depth is handled differently.
 getNextHighestDepth() Methodflash.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() Methodflash.display.DisplayObject.getRect()  
 getSWFVersion() Methodflash.display.LoaderInfo.swfVersion Moved to LoaderInfo class and changed data type to uint.
 getTextSnapshot() Methodflash.display.DisplayObjectContainer.textSnapshot  
 getURL() Methodflash.net.navigateToURL() Replaced by the flash.net.navigateToURL() and flash.net.sentToURL() methods. Also see URLLoader class.
 globalToLocal() Methodflash.display.DisplayObject.globalToLocal()  
 gotoAndStop() Methodflash.display.MovieClip.gotoAndStop()  
 hitTest() Methodflash.display.DisplayObject.hitTestObject()  
 lineGradientStyle() Methodflash.display.Graphics.lineGradientStyle()  
 lineStyle() Methodflash.display.Graphics.lineStyle()  
 lineTo() Methodflash.display.Graphics.lineTo()  
 loadMovie() Methodflash.display.Loader.load() See Loader class.
 loadVariables() Methodflash.net.URLLoader Removed. See URLLoader class.
 localToGlobal() Methodflash.display.DisplayObject.localToGlobal()  
 moveTo() Methodflash.display.Graphics.moveTo()  
 nextFrame() Methodflash.display.MovieClip.nextFrame()  
 onData() EventHandlerflash.display.LoaderInfo dispatches event: complete Replaced in the new event model by a complete event, which is dispatched when the download operation is complete but before any data is parsed.
 onDragOut() EventHandlerflash.display.InteractiveObject dispatches event: mouseOut Replaced in the new event model by a mouseOut event, after a call to InteractiveObject.setCapture() .
 onDragOver() EventHandlerflash.display.InteractiveObject dispatches event: mouseOver Replaced in the new event model by a mouseOver event, after a call to InteractiveObject.setCapture() .
 onEnterFrame() EventHandlerflash.display.DisplayObject dispatches event: enterFrame Replaced in the new event model by an enterFrame event.
 onKeyDown() EventHandlerflash.display.InteractiveObject dispatches event: keyDown Replaced in the new event model by a keyDown event.
 onKeyUp() EventHandlerflash.display.InteractiveObject dispatches event: keyUp Replaced in the new event model by a keyUp event.
 onKillFocus() EventHandlerflash.display.InteractiveObject dispatches event: focusOut Replaced in the new event model by a focusOut event.
 onLoad() EventHandlerflash.display.LoaderInfo dispatches event: complete Also see URLLoader class. A complete event is dispatched when the download operation is complete.
 onMouseDown() EventHandlerflash.display.InteractiveObject dispatches event: mouseDown Replaced in the new event model by a mouseDown event.
 onMouseMove() EventHandlerflash.display.InteractiveObject dispatches event: mouseMove Replaced in the new event model by a mouseMove event.
 onMouseUp() EventHandlerflash.display.InteractiveObject dispatches event: mouseUp Replaced in the new event model by a mouseUp event.
 onPress() EventHandlerflash.display.InteractiveObject dispatches event: mouseDown Replaced in the new event model by a mouseDown event.
 onRelease() EventHandlerflash.display.InteractiveObject dispatches event: mouseUp Replaced in the new event model by a mouseUp event.
 onReleaseOutside() EventHandlerflash.display.InteractiveObject dispatches event: mouseUp Replaced in the new event model by a mouseUp event after a call to flash.display.InteractiveObject.setCapture() .
 onRollOut() EventHandlerflash.display.InteractiveObject dispatches event: mouseOut Replaced in the new event model by a mouseOut event.
 onRollOver() EventHandlerflash.display.InteractiveObject dispatches event: mouseOver Replaced in the new event model by a mouseOver event.
 onSetFocus() EventHandlerflash.display.InteractiveObject dispatches event: focusIn Replaced in the new event model by a focusIn event.
 onUnload() EventHandlerflash.display.LoaderInfo dispatches event: unload Replaced in the new event model by an unload event.
 play() Methodflash.display.MovieClip.play()  
 prevFrame() Methodflash.display.MovieClip.prevFrame()  
 removeMovieClip() Methodflash.display.DisplayObjectContainer.removeChild() Removed. Call the removeChild() method of the parent display object container that contains the movie clip.
 setMask() Methodflash.display.DisplayObject.mask  
 startDrag() Methodflash.display.Sprite.startDrag()  
 stop() Methodflash.display.MovieClip.stop()  
 stopDrag() Methodflash.display.Sprite.stopDrag()  
 swapDepths() MethodRemovedIn ActionScript 3.0, you can achieve similar functionality by using the methods of the DisplayObjectContainer class, such as the addChildAt() , setChildIndex() , swapChildren() , and swapChildrenAt() methods.
 unloadMovie() Methodflash.display.Loader.unload()  
 
 MovieClipLoader class flash.display.Loader Replaced by the flash.display.Loader class.
 MovieClipLoader Constructorflash.display.Loader.Loader()  
 addListener() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because the class inherits the addEventListener() method from the EventDispatcher class.
 getProgress() Methodflash.display.LoaderInfo dispatches event: progress Replaced in the new event model by a progress event. Event objects of progress type contain properties named bytesLoaded and bytesTotal .
 loadClip() Methodflash.display.Loader.load() Replaced by the load() method of flash.display.Loader class.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because the class inherits the removeEventListener() method from the EventDispatcher class.
 unloadClip() Methodflash.display.Loader.unload() Replaced by unload() method of flash.display.Loader class.
 onLoadComplete Listenerflash.display.LoaderInfo dispatches event: complete Replaced in the new event model by a complete event.
 onLoadError Listenerflash.display.LoaderInfo dispatches event: ioError Replaced in the new event model by an ioError event.
 onLoadInit Listenerflash.display.LoaderInfo dispatches event: init Replaced in the new event model by an init event.
 onLoadProgress Listenerflash.display.LoaderInfo dispatches event: progress Replaced in the new event model by a progress event.
 onLoadStart Listenerflash.display.LoaderInfo dispatches event: open Replaced in the new event model by an open event.
 
 NetConnection class flash.net.NetConnection This class has been moved to the flash.net package.
 NetConnection Constructorflash.net.NetConnection.NetConnection()  
 connect() Constructorflash.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() EventHandlerflash.net.NetStream dispatches event: netStatus Replaced in the new event model by a netStatus event.
 pause() Methodflash.net.NetStream.pause() In ActionScript 3.0, the pause method does not take a parameter. Two new methods are available to achieve the same functionality: resume() and togglePause() .
 play() Methodflash.net.NetStream.play() The name , start , len , and reset parameters are no longer valid; ...arguments is used instead.
 setBufferTime() Methodflash.net.NetStream.bufferTime In ActionScript 3.0, changed to read-write accessor property.
 
 Number class Number  
 Number ConstructorNumber.Number() In ActionScript 3.0, the Number() constructor and the Number() global function have the same effect. Also, there is no difference between a Number object and a literal Number value.
 
 Object class Object  
 __proto__ PropertyRemovedIn ActionScript 3.0, direct manipulation of the prototype chain is not allowed. To create a subclass, use the extends statement in the subclass declaration. For information about an object's inheritance tree and data type, use the new reflection API flash.utils.describeType() .
 __resolve Propertyflash.utils.Proxy Use the new Proxy class for similar functionality.
 addProperty() MethodRemovedIn ActionScript 3.0, accessor properties can be created directly using the keywords get and set .
 registerClass() MethodRemovedIn 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() MethodRemoved 
 watch() MethodRemovedUse 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 Constructorflash.printing.PrintJob.PrintJob()  
 addPage() Methodflash.printing.PrintJob.addPage() In ActionScript 3.0, changed data types of parameters: First parameter target is a Sprite data type; second parameter printArea is a Rectangle data type; third parameter options is the new PrintJobOptions data type; and fourth parameter frameNum is an int data type.
 send() Methodflash.printing.PrintJob.send()  
 start() Methodflash.printing.PrintJob.start()  
 
 Rectangle class  
 containsRectangle() Methodflash.geom.Rectangle.containsRect() Renamed for consistency.
 
 security class flash.system.Security This class has been moved to the flash.system package.
 
 Selection class RemovedMethods of this class have been moved to other classes.
 addListener() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because any display object inherits the addEventListener() method from the EventDispatcher class.
 getBeginIndex() Methodflash.text.TextField.selectionBeginIndex Changed from method to accessor property and name changed to selectionBeginIndex .
 getCaretIndex() Methodflash.text.TextField.caretIndex Changed from method to accessor property and name changed to caretIndex .
 getEndIndex() Methodflash.text.TextField.selectionEndIndex Changed from method to accessor property and name changed to selectionEndIndex .
 getFocus() Methodflash.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() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because display objects inherit the removeEventListener() method from the EventDispatcher class.
 setFocus() Methodflash.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() Methodflash.text.TextField.setSelection() Both parameters changed from Number to uint data type.
 onSetFocus Listenerflash.display.InteractiveObject dispatches event: focusIn Replaced in the new event model by a focusIn event.
 
 SharedObject class flash.net.SharedObject This class has been moved to the flash.net package.
 flush() Methodflash.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 the minDiskSpace parameter changed to int.
 getSize() Methodflash.net.SharedObject.size Changed to accessor property. Data type changed to uint.
 onStatus() EventHandlerflash.net.SharedObject dispatches event: netStatus Replaced in the new event model by a netStatus event.
 
 Sound class flash.media.Sound This class has been moved to the flash.media package.
 checkPolicyFileflash.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 songname property changed to songName .
 position Property[read-only]flash.media.SoundChannel.position Moved to the SoundChannel class.
 attachSound() MethodRemovedCreate an instance of a Sound subclass that is associated with sound data; for example, by using new Sound() instead.
 getBytesLoaded() Methodflash.media.Sound.bytesLoaded Changed to accessor property and data type changed to uint.
 getBytesTotal() Methodflash.media.Sound.bytesTotal Changed to property accessor and data type changed to uint.
 getPan() Methodflash.media.SoundTransform.pan Changed to accessor property and moved to the SoundTransform class.
 getTransform() Methodflash.media.SoundMixer.soundTransform Changed to accessor property and data type changed to SoundTransform.
 getVolume() Methodflash.media.SoundTransform.volume Set the flash.media.SoundTransform.volume property to control sound volume.
 loadSound() Methodflash.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() EventHandlerflash.media.Sound dispatches event: id3 Replaced in the new event model by an id3 event.
 onLoad() EventHandlerflash.media.Sound dispatches event: complete Replaced in the new event model by a complete event.
 onSoundComplete() EventHandlerflash.media.SoundChannel dispatches event: soundComplete Replaced in the new event model by a soundComplete event.
 setPan() Methodflash.media.SoundTransform.pan Changed to accessor property and moved to SoundTransform class.
 setTransform() Methodflash.media.SoundMixer.soundTransform Changed to accessor property and data type changed to SoundTransform.
 setVolume() Methodflash.media.SoundChannel Removed. Use flash.media.SoundChannel.leftPeak and flash.media.SoundChannel.rightPeak to monitor the amplitude of a sound channel.
 start() Methodflash.media.Sound.play() The loops parameter 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() Methodflash.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.stage property.
 align Propertyflash.display.Stage.align  
 height Propertyflash.display.Stage.stageHeight Name changed from height to stageHeight so that it does not conflict with the flash.display.DisplayObject.height property.
 scaleMode Propertyflash.display.Stage.scaleMode  
 showMenu Propertyflash.display.Stage.showDefaultContextMenu Name changed to better reflect which menu is shown.
 width Propertyflash.display.Stage.stageWidth Name changed from width to stageWidth so that it does not conflict with the flash.display.DisplayObject.width property.
 addListener() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because the class inherits the addEventListener() method from the EventDispatcher class.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because the class inherits the removeEventListener() method from the EventDispatcher class.
 onResize Listenerflash.display.Stage dispatches event: resize Replaced in the new event model by a resize event.
 
 String class String Adds support for regular expressions with three new methods: match() , replace() , and search() .
 concat() MethodString.concat() Parameter changed to ...(rest) parameter format.
 
 StyleSheet class flash.text.StyleSheet This class has been moved to the flash.text package. The load() and onLoad() members have been removed, and some private functions and variables have been added.
 StyleSheet Constructorflash.text.StyleSheet.StyleSheet()  
 clear() Methodflash.text.StyleSheet.clear()  
 getStyle() Methodflash.text.StyleSheet.getStyle() Parameter name changed to n .
 getStyleNames() Methodflash.text.StyleSheet.styleNames Changed to accessor property.
 load() Methodflash.net.URLLoader.load() Use the new URLLoader and URLRequest classes for loading URLs.
 onLoad() EventHandlerflash.net.URLLoader dispatches event: complete Replaced in the new event model by a complete event.
 parseCSS() Methodflash.text.StyleSheet.parseCSS() In ActionScript 3.0, returns void instead of a Boolean value.
 setStyle() Methodflash.text.StyleSheet.setStyle() Parameter name changed to n and style to s .
 transform() Methodflash.text.StyleSheet.transform()  
 
 System class flash.system.System  
 exactSettings Propertyflash.system.Security.exactSettings Moved to the flash.System.Security class.
 useCodepage Propertyflash.system.System.useCodePage In ActionScript 3.0, the letter 'P' in useCodePage is uppercase.
 onStatus() EventHandlerRemoved 
 setClipboard() Methodflash.system.System.setClipboard()  
 showSettings() Methodflash.system.Security.showSettings()  
 
 TextField class flash.text.TextField This class has been moved to the flash.text package.
 _alpha Propertyflash.display.DisplayObject.alpha This property is now inherited from the DisplayObject class. Removed the initial underscore.
 antiAliasType Propertyflash.text.TextField.antiAliasType  
 autoSize Propertyflash.text.TextField.autoSize  
 background Propertyflash.text.TextField.background  
 backgroundColor Propertyflash.text.TextField.backgroundColor  
 border Propertyflash.text.TextField.border  
 borderColor Propertyflash.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 Propertyflash.text.TextField.condenseWhite  
 embedFonts Propertyflash.text.TextField.embedFonts  
 filters Propertyflash.display.DisplayObject.filters  
 gridFitType Propertyflash.text.TextField.gridFitType  
 _height Propertyflash.display.DisplayObject.height This property is now inherited from the DisplayObject class. Removed the initial underscore.
 _highquality Propertyflash.display.Stage.quality Removed. Replaced by the quality property of the Stage class.
 hscroll Propertyflash.text.TextField.scrollH Data type changed from Number to uint. Name changed from hscroll to scrollH .
 html Propertyflash.text.TextField.htmlText Removed. In ActionScript 3.0, all text fields are treated as HTML text fields. Use the TextField.htmlText property to set HTML text.
 htmlText Propertyflash.text.TextField.htmlText  
 length Property[read-only]flash.text.TextField.length Data type changed from Number to uint.
 maxChars Propertyflash.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 Propertyflash.display.InteractiveObject.contextMenu This property is now inherited from the InteractiveObject class.
 mouseWheelEnabled Propertyflash.text.TextField.mouseWheelEnabled  
 multiline Propertyflash.text.TextField.multiline  
 _name Propertyflash.display.DisplayObject.name This property is now inherited from the DisplayObject class. Removed the initial underscore.
 _parent Propertyflash.display.DisplayObject.parent This property is now inherited from the DisplayObject class. Removed the initial underscore. Data type changed from MovieClip to DisplayObjectContainer.
 password Propertyflash.text.TextField.displayAsPassword Renamed property for consistency.
 _quality Propertyflash.display.Stage.quality Moved to Stage class.
 restrict Propertyflash.text.TextField.restrict  
 _rotation Propertyflash.display.DisplayObject.rotation This property is now inherited from the DisplayObject class. Removed the initial underscore.
 scroll Propertyflash.text.TextField.scrollV Data type changed from Number to uint and name changed from scroll to scrollV .
 selectable Propertyflash.text.TextField.selectable  
 sharpness Propertyflash.text.TextField.sharpness  
 _soundbuftime Propertyflash.media.SoundMixer.bufferTime Properties and methods for global sound control in a SWF file are now in the flash.media.SoundMixer class.
 styleSheet Propertyflash.text.TextField.styleSheet  
 tabEnabled Propertyflash.display.InteractiveObject.tabEnabled This property is now inherited from the InteractiveObject class.
 tabIndex Propertyflash.display.InteractiveObject.tabIndex This property is now inherited from the InteractiveObject class.
 _target Property[read-only]Removed 
 text Propertyflash.text.TextField.text  
 textColor Propertyflash.text.TextField.textColor Data type changed from Number to uint.
 textHeight Propertyflash.text.TextField.textHeight  
 textWidth Propertyflash.text.TextField.textWidth  
 thickness Propertyflash.text.TextField.thickness  
 type Propertyflash.text.TextField.type  
 _url Property[read-only]flash.display.LoaderInfo.url  
 variable PropertyRemoved 
 _visible Propertyflash.display.DisplayObject.visible This property is now inherited from the DisplayObject class. Removed the initial underscore.
 _width Propertyflash.display.DisplayObject.width This property is now inherited from the DisplayObject class. Removed the initial underscore.
 wordWrap Propertyflash.text.TextField.wordWrap  
 _x Propertyflash.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 Propertyflash.display.DisplayObject.scaleX This property is now inherited from the DisplayObject class. Removed the initial underscore.
 _y Propertyflash.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 Propertyflash.display.DisplayObject.scaleY This property is now inherited from the DisplayObject class. Removed the initial underscore.
 addListener() Methodflash.events.EventDispatcher.addEventListener() In the new event model, there is no need to have a class-specific addListener() method, because the class inherits the addEventListener() method from the EventDispatcher class.
 getDepth() Methodflash.display.DisplayObjectContainer Removed. Use the methods of the DisplayObjectContainer class to ascertain text field depth.
 getFontList() Methodflash.text.Font.enumerateFonts() Removed. Use Font.enumerateFonts() with the enumerateDeviceFonts parameter set to true .
 getNewTextFormat() Methodflash.text.TextField.defaultTextFormat Name changed from getNewTextFormat to defaultTextFormat . Changed from method to accessor property.
 getTextFormat() Methodflash.text.TextField.getTextFormat() Data type of both parameters changed from Number to uint.
 onChanged() EventHandlerflash.text.TextField dispatches event: change Replaced in the new event model by a change event.
 onKillFocus() EventHandlerflash.display.InteractiveObject dispatches event: focusOut Replaced in the new event model by a focusOut event.
 onScroller() EventHandlerflash.text.TextField dispatches event: scroll Replaced in the new event model by a scroll event.
 onSetFocus() EventHandlerflash.display.InteractiveObject dispatches event: focusIn Replaced in the new event model by a focusIn event.
 removeListener() Methodflash.events.EventDispatcher.removeEventListener() In the new event model, there is no need to have a class-specific removeListener() method, because the class inherits the removeEventListener() method from the EventDispatcher class.
 removeTextField() Methodflash.display.DisplayObjectContainer.removeChild() Removed. Call the removeChild() method of the parent display object container that contains the text field.
 replaceSel() Methodflash.text.TextField.replaceSelectedText() Name changed from replacesel() to replaceSelectedText() . Replaced the newText parameter with a string value.
 replaceText() Methodflash.text.TextField.replaceText() Data types of first two parameters changed from Number to uint.
 setNewTextFormat() Methodflash.text.TextField.defaultTextFormat Name changed from setNewTextFormat to defaultTextFormat . Changed from method to accessor property.
 setTextFormat() Methodflash.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 Propertyflash.text.TextFormat.align  
 blockIndent Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.text.TextFormat.font  
 indent Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.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 Propertyflash.text.TextFormat.url  
 TextFormat Constructorflash.text.TextFormat.TextFormat() The size , color , bold , italic , underline , url , leftMargin , rightMargin , indent , and leading parameters have all been converted to objects.
 getTextExtent() MethodRemovedUse 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 Propertyflash.text.TextRenderer.maxLevel Defined as a uint in ActionScript 3.0.
 setAdvancedAntialiasingTable() Methodflash.text.TextRenderer.setAdvancedAntiAliasingTable() The fontStyle and colorType parameter values can now be set using the FontStyle and TextColorType constants, respectively. The advancedAntiAliasingTable parameter 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() Methodflash.text.TextSnapshot.findText() Name of the startIndex parameter changed to beginIndex . Data type of the startIndex parameter changed from Number to int.
 getCount() Methodflash.text.TextSnapshot.charCount Changed from method to accessor property. Data return type changed from Number to uint.
 getSelected() Methodflash.text.TextSnapshot.getSelected() Data type of parameters changed from Number to uint and names changed from start and end to beginIndex and EndIndex .
 getSelectedText() Methodflash.text.TextSnapshot.getSelectedText() In ActionScript 3.0, the parameter has a default value of false .
 getText() Methodflash.text.TextSnapshot.getText() Data type of start and end parameters changed from Number to uint and names changed from start and end to beginIndex and endIndex .
 getTextRunInfo() Methodflash.text.TextSnapshot.getTextRunInfo() Data type of parameters changed from Number to uint.
 hitTestTextNearPos() Methodflash.text.TextSnapshot.hitTestTextNearPos() Name of the closeDist parameter changed to maxDistance ; now has a default value = 0.
 setSelectColor() Methodflash.text.TextSnapshot.setSelectColor() Data type of parameter changed from Number to uint and has a default value = 0xFFFF00.
 setSelected() Methodflash.text.TextSnapshot.setSelected() Data type of start and end parameters changed from Number to uint and names changed from start and end to beginIndex and endIndex .
 
 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 using attachCamera() or attachNetStream() .
 _alpha Propertyflash.display.DisplayObject.alpha This property is inherited from the DisplayObject class. Removed the initial underscore.
 deblocking Propertyflash.media.Video.deblocking Data type changed from Number to int.
 _height Propertyflash.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 Propertyflash.display.DisplayObject.name This property is inherited from the DisplayObject class. Removed the initial underscore.
 _parent Propertyflash.display.DisplayObject.parent This property is inherited from the DisplayObject class. Removed the initial underscore.
 _rotation Propertyflash.display.DisplayObject.rotation This property is inherited from the DisplayObject class. Removed the initial underscore.
 smoothing Propertyflash.media.Video.smoothing  
 _visible Propertyflash.display.DisplayObject.visible This property is inherited from the DisplayObject class. Removed the initial underscore.
 _width Propertyflash.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 Propertyflash.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 Propertyflash.display.DisplayObject.scaleX This property is inherited from the DisplayObject class. Removed the initial underscore.
 _y Propertyflash.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 Propertyflash.display.DisplayObject.scaleY This property is inherited from the DisplayObject class. Removed the initial underscore.
 attachVideo() Methodflash.media.Video.attachNetStream() To specify a video stream from a camera object, use flash.media.Video.attachCamera() .
 clear() Methodflash.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 Propertyflash.net.URLRequest.contentType  
 docTypeDecl Propertyflash.xml.XMLDocument.docTypeDecl  
 idMap Propertyflash.xml.XMLDocument.idMap  
 ignoreWhite Propertyflash.xml.XMLDocument.ignoreWhite  
 loaded PropertyRemovedFile loading functionality was removed from the XMLDocument class. Use URLLoader instead.
 status PropertyRemovedParse failures are now reported by exceptions.
 xmlDecl Propertyflash.xml.XMLDocument.xmlDecl  
 XML Constructorflash.xml.XMLDocument.XMLDocument()  
 addRequestHeader() Methodflash.net.URLRequest.requestHeaders  
 createElement() Methodflash.xml.XMLDocument.createElement()  
 createTextNode() Methodflash.xml.XMLDocument.createTextNode()  
 getBytesLoaded() Methodflash.net.URLLoader.bytesLoaded File loading functionality was removed from the XMLDocument class. Use URLLoader instead.
 getBytesTotal() Methodflash.net.URLLoader.bytesTotal File loading functionality was removed from the XMLDocument class. Use URLLoader instead.
 load() MethodRemovedFile loading functionality was removed from the XMLDocument class (formerly the XML class in ActionScript 2.0). Use URLLoader instead.
 onData() EventHandlerflash.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 complete event.
 onHTTPStatus() EventHandlerflash.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 httpStatus event.
 onLoad() EventHandlerflash.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 complete event.
 parseXML() Methodflash.xml.XMLDocument.parseXML()  
 send() MethodRemovedSend 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() MethodRemovedSend 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 Constructorflash.xml.XMLNode.XMLNode() Data type of the type parameter changed from Number to uint.
 
 XMLSocket class flash.net.XMLSocket This class has been moved to the flash.net package.
 XMLSocket Constructorflash.net.XMLSocket.XMLSocket() Added two optional parameters to specify host and port.
 connect() Methodflash.net.XMLSocket.connect() Data type of the port parameter changed to int.
 onClose() EventHandlerflash.net.XMLSocket dispatches event: close Replaced in the new event model by a close event.
 onConnect() EventHandlerflash.net.XMLSocket dispatches event: connect Replaced in the new event model by a connect event.
 onData() EventHandlerflash.net.XMLSocket dispatches event: data Replaced in the new event model by a data event.
 onXML() EventHandlerRemovedIn ActionScript 3.0, only the data event is dispatched, so that you can choose whether to use E4X or the legacy XML (XMLDocument class) parser. The old onXML event 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.
 
© 2004-2006 Adobe Systems Incorporated. All rights reserved.
Thu Jun 22 2006, 10:24 PM GMT-07:00
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值