DisplayShortcuts

This class creates special properties used when controlling certain display classes, such as MovieClip.

Usage

First, import then initialize the class.

import caurina.transitions.properties.DisplayShortcuts;
DisplayShortcuts.init();

Then, you can use any of the special properties listed below on a normal tweening. See the introduction to special properties for more information.

Property name (AS2/AS3) Description Target type Type Compatibility Notes Usual values Related reference
_frame The current frame of a MovieClip. MovieClip Number   From 1 to the object's total frame count AS2: MovieClip._currentframe, MovieClip.gotoAndStop
AS3: MovieClip.currentFrame, MovieClip.gotoAndStop
_autoAlpha Opacity of an object. The same as _alpha (AS2) or alpha (AS3), but it automatically hides the object when the value reaches 0, setting its _visible (AS2) or visible (AS3) property to false, or show it when the value is above 0, setting it to true. AS2: MovieClip, TextField
AS3: DisplayObject
Number   AS2: 0 to 100
AS3: 0 to 1
AS2: MovieClip._alpha
AS3: DisplayObject.alpha
_scale Scale of an object. This is a shortcut that refers to both the horizontal and vertical scales of an object. AS2: MovieClip, TextField
AS3: DisplayObject
Number   AS2: 0 to 100
AS3: 0 to 1
AS2: MovieClip._xscale
AS3: DisplayObject.scaleX
_scrollRect Scrolling rectangle for the masking of an object, that is applied to the object as its scrollRect property. Any scrollRect property tweening will use rounded numbers only, as this property doesn't allow floating point dimensions. If the object already has a scrollRect defined, the values of the existing scrollRect are tweened to match the new rectangle. If the object doesn't have a scrollRect defined, a rectangle of values (0, 0, 100, 100) is applied prior to tweening. AS2: MovieClip, TextField
AS3: DisplayObject
Rectangle Not available in Flash 7/FL2/FL3 A rectangle with any given pixel dimensions. AS2: MovieClip.scrollRect
AS3: DisplayObject.scrollRect
_scrollRect_x The x property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_y The y property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_left The left property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_right The right property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_top The top property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_bottom The bottom property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_width The width property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.  
_scrollRect_height The height property of an object's scrollRect. The rules from the _scrollRect special property (as mentioned above) apply. AS2: MovieClip, TextField
AS3: DisplayObject
Number Not available in Flash 7/FL2/FL3 Any dimension or position in pixels.