com.flagstone.transform.action
Class Property

java.lang.Object
  extended by com.flagstone.transform.action.Property

public final class Property
extends Object

Property defines the set of attributes that can accessed for movies and movie clips when executing actions.

See Also:
Push

Field Summary
static Property ALPHA
          The transparency of the movie clip.
static Property CURRENT_FRAME
          The number of the current frame playing in the movie clip.
static Property DROP_TARGET
          The name of the movie clip currently being dragged.
static Property FOCUS_RECT
          Identifies whether a rectangle is drawn around a button or text field that has the current focus This is equivalent to the _focusrect property in actionscript.
static Property FRAMES_LOADED
          The number of frames form the movie clip loaded.
static Property HEIGHT
          The height of the movie clip in pixels.
static Property HIGH_QUALITY
          Identifies the level of aliasing being performed by the Player.
static Property NAME
          The name of movie clip.
static Property QUALITY
          Identifies the level of rendering quality being performed by the Player.
static Property ROTATION
          The angle of rotation of the movie clip in degrees.
static Property SOUND_BUF_TIME
          The amount of time streaming sound is buffered by the Player before playing.
static Property TARGET
          The path of the movie clip relative to the root movie in the Player.
static Property TOTAL_FRAMES
          The total number of frames in the movie clip.
static Property URL
          The URL from which the movie clip was loaded.
static int VERSION_WITH_INTS
          The first version of Flash that uses integers values for properties.
static Property VISIBLE
          Whether the movie clip is visible.
static Property WIDTH
          The width of the movie clip in pixels.
static Property XCOORD
          The x-origin of the movie clip relative to the parent clip.
static Property XMOUSE
          The current x-coordinate of the mouse pointer on the Player screen.
static Property XSCALE
          The scaling factor of the movie clip in the x direction.
static Property YCOORD
          The y-origin of the movie clip relative to the parent clip.
static Property YMOUSE
          The current y-coordinate of the mouse pointer on the Player screen.
static Property YSCALE
          The scaling factor of the movie clip in the x direction.
 
Constructor Summary
Property(int pval)
          Creates a Property object with the specified value.
 
Method Summary
 int getValue()
          Get value used to encode the Property.
 int getValue(int version)
          Returns value of the Property as it would be written to a Flash file.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION_WITH_INTS

public static final int VERSION_WITH_INTS
The first version of Flash that uses integers values for properties.

See Also:
Constant Field Values

XCOORD

public static final Property XCOORD
The x-origin of the movie clip relative to the parent clip. This is equivalent to the _x property in actionscript.


YCOORD

public static final Property YCOORD
The y-origin of the movie clip relative to the parent clip. This is equivalent to the _y property in actionscript.


XSCALE

public static final Property XSCALE
The scaling factor of the movie clip in the x direction. This is equivalent to the _xscale property in actionscript.


YSCALE

public static final Property YSCALE
The scaling factor of the movie clip in the x direction. This is equivalent to the _yscale property in actionscript.


CURRENT_FRAME

public static final Property CURRENT_FRAME
The number of the current frame playing in the movie clip. This is equivalent to the _currentframe property in actionscript.


TOTAL_FRAMES

public static final Property TOTAL_FRAMES
The total number of frames in the movie clip. This is equivalent to the _totalframes property in actionscript.


ALPHA

public static final Property ALPHA
The transparency of the movie clip. This is equivalent to the _alpha property in actionscript.


VISIBLE

public static final Property VISIBLE
Whether the movie clip is visible. This is equivalent to the _visible property in actionscript.


WIDTH

public static final Property WIDTH
The width of the movie clip in pixels. This is equivalent to the _width property in actionscript.


HEIGHT

public static final Property HEIGHT
The height of the movie clip in pixels. This is equivalent to the _height property in actionscript.


ROTATION

public static final Property ROTATION
The angle of rotation of the movie clip in degrees. This is equivalent to the _height property in actionscript.


TARGET

public static final Property TARGET
The path of the movie clip relative to the root movie in the Player. This is equivalent to the _rotation property in actionscript.


FRAMES_LOADED

public static final Property FRAMES_LOADED
The number of frames form the movie clip loaded. This is equivalent to the _framesloaded property in actionscript.


NAME

public static final Property NAME
The name of movie clip. This is equivalent to the _name property in actionscript.


DROP_TARGET

public static final Property DROP_TARGET
The name of the movie clip currently being dragged. This is equivalent to the _target property in actionscript.


URL

public static final Property URL
The URL from which the movie clip was loaded. This is equivalent to the _url property in actionscript.


HIGH_QUALITY

public static final Property HIGH_QUALITY
Identifies the level of aliasing being performed by the Player. This is equivalent to the _highquality property in actionscript.


FOCUS_RECT

public static final Property FOCUS_RECT
Identifies whether a rectangle is drawn around a button or text field that has the current focus This is equivalent to the _focusrect property in actionscript. .


SOUND_BUF_TIME

public static final Property SOUND_BUF_TIME
The amount of time streaming sound is buffered by the Player before playing. This is equivalent to the _soundbuftime property in actionscript.


QUALITY

public static final Property QUALITY
Identifies the level of rendering quality being performed by the Player. This is equivalent to the _quality property in actionscript.


XMOUSE

public static final Property XMOUSE
The current x-coordinate of the mouse pointer on the Player screen. This is equivalent to the _xmouse property in actionscript.


YMOUSE

public static final Property YMOUSE
The current y-coordinate of the mouse pointer on the Player screen. This is equivalent to the _ymouse property in actionscript.

Constructor Detail

Property

public Property(int pval)
Creates a Property object with the specified value.

Parameters:
pval - the value for the property.
Method Detail

getValue

public int getValue()
Get value used to encode the Property.

Returns:
the encoded property value.

getValue

public int getValue(int version)
Returns value of the Property as it would be written to a Flash file. For Flash version 4 and earlier Properties were encoded as floating point values while for Flash 5 and later they are encoded as integers.

Parameters:
version - the Flash version that the property will be encoded for.
Returns:
the value the Property will be encoded as.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.