Flash 8 Documentation |
|||
| Learning ActionScript 2.0 in Flash > What's New in Flash 8 ActionScript > New in ActionScript 2.0 and Flash 8 > Additions to the ActionScript language | |||
This section lists additions to ActionScript language elements and classes that are new or changed in Flash 8. The following classes and language elements are new additions or newly supported in Flash Player 8.
The following classes were added to ActionScript 2.0 in Flash 8:
|
NOTE |
|
Official support is added for the AsBroadcaster class in Flash 8. |
New language elements, methods, and functions added to existing classes in ActionScript include:
showRedrawRegions global function provides the ability for the debugger player to outline the regions of the screen that are being redrawn (that is, dirty regions that are being updated). The function has the player show what was redrawn, but does not let you control redraw regions.blendMode property in the Button class, which sets the blending mode for the button instance.cacheAsBitmap property in the Button class, which lets you cache the object as an internal bitmap representation of the instance.filters property in the Button class, which is an indexed array that contains each filter object associated with the button.scale9Grid property in the Button class, which is the rectangular region that defines nine scaling regions for the instance.hasIME property in the System.capabilities class, which indicates if the system has an IME installed.getUTCYear property in the Date class, which returns the year of this date, according to universal time.isAccessible() method in the Key class returns a Boolean value that indicates whether the last key pressed may be accessed by other SWF files, depending on security restrictions.onHTTPStatus event handler of the LoadVars class returns the status code that's returned from the server (for example, the value 404 for page not found). For more information, see onHTTPStatus (LoadVars.onHTTPStatus handler) in the ActionScript 2.0 Language Reference.attachBitmap() method of the MovieClip class, which attaches a bitmap image to a movie clip. For information, see the BitmapData (flash.display.BitmapData) in the ActionScript 2.0 Language Reference.beginBitmapFill() method of the MovieClip class, which fills a movie clip with a bitmap image.spreadMethod, interpolationMethod, and focalPointRatio parameters of the beginGradientFill() method in the MovieClip class. This method fills a drawing area with a bitmap image, and the bitmap can be repeated or tiled to fill the area. blendMode property of the MovieClip class, which lets you set the blending mode for the instance.cacheAsBitmap property of the MovieClip class, which lets you cache the object as an internal bitmap representation of the instance.filters property of the MovieClip class, which is an indexed array that contains each filter object that's currently associated with the instance.getRect() method of the MovieClip class, which returns properties that are the minimum and maximum coordinate values of the specified instance.lineGradientStyle() method of the MovieClip class, which specifies a gradient line style that Flash uses when drawing a path.pixelHinting, noScale, capsStyle, jointStyle, and miterLimit parameters of the lineStyle() method in the MovieClip class. These parameters specify kinds of line styles you can use when drawing lines.opaqueBackground property of the MovieClip class, which sets the color of the movie clip's opaque (not transparent) background to the color that the RGB hexadecimal value specifies.scale9Grid property of the MovieClip class, which is the rectangular region that defines nine scaling regions for the instance.scrollRect property of the MovieClip class, which lets you quickly scroll movie clip content and have a window viewing larger content.transform property of the MovieClip class, which lets you make settings regarding a movie clip's matrix, color transform, and pixel bounds. For more information, see Transform (flash.geom.Transform) in the ActionScript 2.0 Language Reference.status parameter of the MovieClipLoader.onLoadComplete event handler returns the status code that's returned from the server (for example, the value 404 for page not found). For more information, see onLoadComplete (MovieClipLoader.onLoadComplete event listener) in the ActionScript 2.0 Language Reference.onLoadError event handler of the MovieClipLoader class is invoked when a file loaded with MovieClipLoader.loadClip() fails to load.secure parameter of the SharedObject.getLocal() method determines whether access to this shared object is restricted to SWF files delivered over an HTTPS connection. For more information, see getLocal (SharedObject.getLocal method) in the ActionScript 2.0 Language Reference.antiAliasType property in the TextField class, which sets the type of anti-aliasing that you use for the TextField instance.filters property in the TextField class, which is an indexed array that contains each filter object that's currently associated with the TextField instance.gridFitType property in the TextField class, which sets the type of grid fitting that you use for the instance. For information on grid fitting and TextField.gridFitType, see gridFitType (TextField.gridFitType property) in the ActionScript 2.0 Language Reference.sharpness property in the TextField class, which sets the sharpness of the glyph edges for the TextField instance. You must set the antiAliasType() method to advanced if you use this property.thickness property in the TextField class, which sets the thickness of the glyph edges in the TextField instance. You must set the antiAliasType() method to advanced if you use this property.justify value for the align property of the TextFormat class, which lets you justify a specified paragraph.indent property of the TextFormat class, which lets you use negative values.kerning property in the TextFormat class, which lets you turn kerning on or off for the TextFormat object.leading property of the TextFormat class, which lets you use negative leading, so the space between lines is less than the text height. This lets you put lines of text close together in your applications. letterSpacing property in the TextFormat class, which lets you specify the amount of space that is uniformly distributed between characters._alpha property in the Video class, which is the specified amount of transparency for the video object._height property in the Video class, which indicates the height of the video instance._name property in the Video class, which indicates the instance name of the video._parent property in the Video class, which indicates the movie clip instance or object that contains the video instance._rotation property in the Video class, which lets you set the amount of rotation of the video instance in degrees._visible property in the Video class, which lets you set the visibility of a video instance._width property in the Video class, which lets you set the width of the video instance._x property in the Video class, which lets you set the x coordinate of the video instance._xmouse property in the Video class, which lets you set the x coordinate of the mouse pointer position._xscale property in the Video class, which lets you set the horizontal scale percentage of the video instance._y property in the Video class, which lets you set the y coordinate of the video instance._ymouse property in the Video class, which lets you set the y coordinate of the mouse pointer position._yscale property in the Video class, which lets you set the vertical scale percentage of the video instance.onHTTPStatus event handler in the XML class returns the status code that's returned from the server (for example, the value 404 for page not found). For more information, see onHTTPStatus (XML.onHTTPStatus handler) in the ActionScript 2.0 Language Reference.localName property of the XMLNode class, which returns the full name of the XML node object (including both the prefix and the local name).namespaceURI property of the XMLNode class, which reads the URI of the namespace to which the XML node's prefix resolves. For more information, see namespaceURI (XMLNode.namespaceURI property) in the ActionScript 2.0 Language Reference. prefix property of the XMLNode class, which reads the prefix of the node name.getNamespaceForPrefix() method of the XMLNode class, which returns the namespace URI associated with the specified prefix for the node.getPrefixForNamespace method of the XMLNode class, which returns the prefix associated with a specified namespace URI for the node.Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001133.html
Comments
jdehaan said on Sep 13, 2005 at 12:30 PM :