Naslaggids voor Adobe ActionScript® 3.0 voor het Adobe® Flash®-platform
Startpagina  |  Lijst met pakketten en klassen verbergen |  Pakketten  |  Klassen  |  Nieuw  |  Index  |  Bijlagen  |  Waarom in het Engels?
Filters: Gegevens ophalen van server...
Gegevens ophalen van server...
spark.primitives 

Rect  - AS3 Flex

Pakketspark.primitives
Klassepublic class Rect
OverervingRect Inheritance FilledElement Inheritance StrokedElement Inheritance GraphicElement Inheritance EventDispatcher Inheritance Object
Subklassen BeveledBorder

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The Rect class is a filled graphic element that draws a rectangle. The corners of the rectangle can be rounded. The drawElement() method calls the Graphics.drawRect() and Graphics.drawRoundRect() methods.

Note: By default, the stroke of the border is rounded. If you do not want rounded corners, set the joints property of the stroke to JointStyle.MITER.

Bekijk de voorbeelden

Meer voorbeelden

Verwante API-elementen



Openbare eigenschappen
 EigenschapGedefinieerd door
 Inheritedalpha : Number
The level of transparency of the graphic element.
GraphicElement
 InheritedalwaysCreateDisplayObject : Boolean
Specifies that this GraphicElement is to be associated with and be rendered to its own DisplayObject.
GraphicElement
 Inheritedbaseline : Object
The vertical distance in pixels from the anchor target to the control's baseline position.
GraphicElement
 InheritedbaselinePosition : Number
[alleen-lezen] The y-coordinate of the baseline of the first line of text of the component.
GraphicElement
 InheritedblendMode : String
A value from the BlendMode class that specifies which blend mode to use.
GraphicElement
 Inheritedbottom : Object
The vertical distance in pixels from the bottom edge of the component to the anchor target's bottom edge.
GraphicElement
  bottomLeftRadiusX : Number
The x radius of the bottom left corner of the rectangle.
Rect
  bottomLeftRadiusY : Number
The y radius of the bottom left corner of the rectangle.
Rect
  bottomRightRadiusX : Number
The x radius of the bottom right corner of the rectangle.
Rect
  bottomRightRadiusY : Number
The y radius of the bottom right corner of the rectangle.
Rect
 Inheritedconstructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie.
Object
 Inheriteddepth : Number
Determines the order in which items inside of containers are rendered.
GraphicElement
 InheriteddesignLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual element.
GraphicElement
 InheriteddisplayObject : DisplayObject
[alleen-lezen] The shared DisplayObject where this IGraphicElement is drawn.
GraphicElement
 InheriteddisplayObjectSharingMode : String
Indicates the association between this IGraphicElement and its display objects.
GraphicElement
 InheritedexplicitHeight : Number
Number that specifies the explicit height of the component, in pixels, in the component's coordinates.
GraphicElement
 InheritedexplicitMaxHeight : Number
The maximum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitMaxWidth : Number
The maximum recommended width of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitMinHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitMinWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitWidth : Number
Number that specifies the explicit width of the component, in pixels, in the component's coordinates.
GraphicElement
 Inheritedfill : IFill
The object that defines the properties of the fill.
FilledElement
 Inheritedfilters : Array
An indexed array that contains each filter object currently associated with the graphic element.
GraphicElement
 InheritedhasLayoutMatrix3D : Boolean
[alleen-lezen] Contains true if the element has 3D Matrix.
GraphicElement
 Inheritedheight : Number
The height of the graphic element.
GraphicElement
 InheritedhorizontalCenter : Object
The horizontal distance in pixels from the center of the component to the center of the anchor target's content area.
GraphicElement
 Inheritedid : String
The identity of the component.
GraphicElement
 InheritedincludeInLayout : Boolean
Specifies whether this element is included in the layout of the parent.
GraphicElement
 Inheritedis3D : Boolean
[alleen-lezen] Contains true when the element is in 3D.
GraphicElement
 InheritedlayoutDirection : String
Specifies the desired layout direction for an element: one of LayoutDirection.LTR (left to right), LayoutDirection.RTL (right to left), or null (inherit).
GraphicElement
 Inheritedleft : Object
The horizontal distance in pixels from the left edge of the component to the anchor target's left edge.
GraphicElement
 InheritedluminosityClip : Boolean
A property that controls whether the luminosity mask clips the masked content.
GraphicElement
 InheritedluminosityInvert : Boolean
A property that controls the calculation of the RGB color value of a graphic element being masked by a luminosity mask.
GraphicElement
 Inheritedmask : DisplayObject
The calling display object is masked by the specified mask object.
GraphicElement
 InheritedmaskType : String
Defines how the mask is applied to the GraphicElement. The possible values are MaskType.CLIP, MaskType.ALPHA, and MaskType.LUMINOSITY. Clip Masking When masking in clip mode, a clipping masks is reduced to 1-bit.
GraphicElement
 InheritedmaxHeight : Number
The maximum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedmaxWidth : Number
The maximum recommended width of the component to be considered by the parent during layout.
GraphicElement
 InheritedmeasuredHeight : Number
The default height of the component, in pixels.
GraphicElement
 InheritedmeasuredWidth : Number
The default width of the component, in pixels.
GraphicElement
 InheritedmeasuredX : Number
The default measured bounds top-left corner relative to the origin of the element.
GraphicElement
 InheritedmeasuredY : Number
The default measured bounds top-left corner relative to the origin of the element.
GraphicElement
 InheritedminHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedminWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
GraphicElement
 Inheritedowner : DisplayObjectContainer
The owner of this IVisualElement object.
GraphicElement
 Inheritedparent : DisplayObjectContainer
[alleen-lezen] The parent container or component for this component.
GraphicElement
 InheritedpercentHeight : Number
Specifies the height of a component as a percentage of its parent's size.
GraphicElement
 InheritedpercentWidth : Number
Specifies the width of a component as a percentage of its parent's size.
GraphicElement
 InheritedpostLayoutTransformOffsets : mx.geom:TransformOffsets
Defines a set of adjustments that can be applied to the object's transform in a way that is invisible to its parent's layout.
GraphicElement
  radiusX : Number
The default corner radius to use for the x axis on all corners.
Rect
  radiusY : Number
The default corner radius to use for the y axis on all corners.
Rect
 Inheritedright : Object
The horizontal distance in pixels from the right edge of the component to the anchor target's right edge.
GraphicElement
 Inheritedrotation : Number
Indicates the rotation of the element, in degrees, from the transform point.
GraphicElement
 InheritedrotationX : Number
Indicates the x-axis rotation of the element instance, in degrees, from its original orientation relative to the 3D parent container.
GraphicElement
 InheritedrotationY : Number
Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
GraphicElement
 InheritedrotationZ : Number
Indicates the rotation of the element, in degrees, from the transform point.
GraphicElement
 InheritedscaleX : Number
The horizontal scale (percentage) of the element as applied from the transform point.
GraphicElement
 InheritedscaleY : Number
The vertical scale (percentage) of the element as applied from the transform point.
GraphicElement
 InheritedscaleZ : Number
The z scale (percentage) of the element as applied from the transform point.
GraphicElement
 Inheritedstroke : IStroke
The stroke used by this element.
StrokedElement
 Inheritedtop : Object
The vertical distance in pixels from the top edge of the component to the anchor target's top edge.
GraphicElement
  topLeftRadiusX : Number
The x radius of the top left corner of the rectangle.
Rect
  topLeftRadiusY : Number
The y radius of the top left corner of the rectangle.
Rect
  topRightRadiusX : Number
The x radius of the top right corner of the rectangle.
Rect
  topRightRadiusY : Number
The y radius of the top right corner of the rectangle.
Rect
 Inheritedtransform : flash.geom:Transform
Een object met eigenschappen die betrekking hebben op de matrix van een weergaveobject, de kleurtransformatie en de pixelbeperkingen.
GraphicElement
 InheritedtransformX : Number
The x position transform point of the element.
GraphicElement
 InheritedtransformY : Number
The y position transform point of the element.
GraphicElement
 InheritedtransformZ : Number
The z position transform point of the element.
GraphicElement
 InheritedverticalCenter : Object
The vertical distance in pixels from the center of the component to the center of the anchor target's content area.
GraphicElement
 Inheritedvisible : Boolean
Controls the visibility of this visual element.
GraphicElement
 Inheritedwidth : Number
The width of the graphic element.
GraphicElement
 Inheritedx : Number
The x position of the graphic element.
GraphicElement
 Inheritedy : Number
The y position of the graphic element.
GraphicElement
 Inheritedz : Number
The z position of the graphic element.
GraphicElement
Beschermde eigenschappen
 EigenschapGedefinieerd door
 InheriteddrawnDisplayObject : DisplayObject
[alleen-lezen] The actual DisplayObject that is drawn into by the GraphicElement.
GraphicElement
 InheriteddrawX : Number
[alleen-lezen] The x position where the element should be drawn.
GraphicElement
 InheriteddrawY : Number
[alleen-lezen] The y position where the element should be drawn.
GraphicElement
 InheritedhasComplexLayoutMatrix : Boolean
[alleen-lezen] Returns true if the GraphicElement has any non-translation (x,y) transform properties
GraphicElement
 InheritedlayoutFeatures : AdvancedLayoutFeatures
Contain all of the implementation details of how the GraphicElement implements transform and layering support.
GraphicElement
 InheritedneedsDisplayObject : Boolean
[alleen-lezen] True if the element requires an exclusive DisplayObject.
GraphicElement
Openbare methoden
 MethodeGedefinieerd door
  
Constructor.
Rect
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt.
EventDispatcher
 Inherited
Returns true if this IGraphicElement is compatible and can share display objects with the next IGraphicElement in the sequence.
GraphicElement
 Inherited
Returns true if this IGraphicElement is compatible and can share display objects with the previous IGraphicElement in the sequence.
GraphicElement
 Inherited
Creates a new DisplayObject where this IGraphicElement is drawn.
GraphicElement
 Inherited
Verzendt een gebeurtenis naar de gebeurtenisstroom.
EventDispatcher
  
getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
[overschrijven] Returns the x coordinate of the element's bounds at the specified element size.
Rect
  
getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
[overschrijven] Returns the y coordinate of the element's bounds at the specified element size.
Rect
 Inherited
getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's layout height.
GraphicElement
 Inherited
getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's layout width.
GraphicElement
 Inherited
getLayoutBoundsX(postLayoutTransform:Boolean = true):Number
Returns the x coordinate that the element uses to draw on screen.
GraphicElement
 Inherited
getLayoutBoundsY(postLayoutTransform:Boolean = true):Number
Returns the y coordinate that the element uses to draw on screen.
GraphicElement
 Inherited
Returns the transform matrix that is used to calculate the component's layout relative to its siblings.
GraphicElement
 Inherited
Returns the layout transform Matrix3D for this element.
GraphicElement
 Inherited
getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's maximum height.
GraphicElement
 Inherited
getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's maximum width.
GraphicElement
 Inherited
getMinBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's minimum height.
GraphicElement
 Inherited
getMinBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's minimum width.
GraphicElement
 Inherited
getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's preferred height.
GraphicElement
 Inherited
getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's preferred width.
GraphicElement
 Inherited
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis.
EventDispatcher
 Inherited
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd.
Object
 Inherited
Called automatically by the MXML compiler when the GraphicElement is created using an MXML tag.
GraphicElement
 Inherited
Calling this method results in a call to the elements's validateDisplayList() method before the display list is rendered.
GraphicElement
 Inherited
An element must call this method when its layoutDirection changes or when its parent's layoutDirection changes.
GraphicElement
 Inherited
Calling this method results in a call to the elements's validateProperties() method before the display list is rendered.
GraphicElement
 Inherited
Calling this method results in a call to the elements's validateSize() method before the display list is rendered.
GraphicElement
 Inherited
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven.
Object
 Inherited
Converts the point object from the object's (local) coordinates to the Stage (global) coordinates.
GraphicElement
 Inherited
Called by IGraphicElementContainer when an IGraphicElement is added to or removed from the host component.
GraphicElement
 Inherited
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Verwijdert een listener uit het object EventDispatcher.
EventDispatcher
 Inherited
setLayoutBoundsPosition(newBoundsX:Number, newBoundsY:Number, postLayoutTransform:Boolean = true):void
Sets the coordinates that the element uses to draw on screen.
GraphicElement
 Inherited
setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void
Sets the layout size of the element.
GraphicElement
 Inherited
setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void
Sets the transform Matrix that is used to calculate the component's layout size and position relative to its siblings.
GraphicElement
 Inherited
setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void
Sets the transform Matrix3D that is used to calculate the component's layout size and position relative to its siblings.
GraphicElement
 Inherited
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in.
Object
 Inherited
Determines whether this element can draw itself to the sharedDisplayObject of the sequence.
GraphicElement
 Inherited
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies.
Object
 Inherited
Retourneert een tekenreeksrepresentatie van het opgegeven object.
Object
 Inherited
transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
A utility method to update the rotation, scale, and translation of the transform while keeping a particular point, specified in the component's own coordinate space, fixed in the parent's coordinate space.
GraphicElement
 Inherited
transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void
A utility method to transform a point specified in the local coordinates of this object to its location in the object's parent's coordinates.
GraphicElement
 Inherited
Called by the IGraphicElementContainer to redraw this element in its displayObject property.
GraphicElement
 Inherited
Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.
GraphicElement
 Inherited
Used by layout logic to validate the properties of a component by calling the commitProperties() method.
GraphicElement
 Inherited
Called by the IGraphicElementContainer to validate the size of this element.
GraphicElement
 Inherited
Retourneert de primitieve waarde van het opgegeven object.
Object
 Inherited
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis.
EventDispatcher
Beschermde methoden
 MethodeGedefinieerd door
 Inherited
[overschrijven] Set up the drawing for this element.
FilledElement
 Inherited
Determines if the call to the measure() method can be skipped.
GraphicElement
 Inherited
Processes the properties set on the element.
GraphicElement
  
[overschrijven] Draw the element.
Rect
 Inherited
[overschrijven] Finalize drawing for this element.
FilledElement
 Inherited
getStrokeExtents(postLayoutTransform:Boolean = true):Rectangle
Returns the amount of pixels occupied by the stroke on each side of the element's bounds.
GraphicElement
 Inherited
Utility method that notifies the host that this element has changed and needs its layer to be updated.
GraphicElement
 Inherited
Helper method to invalidate parent size and display list if this object affects its layout (includeInLayout is true).
GraphicElement
 Inherited
Calculates the default size of the element.
GraphicElement
 Inherited
Used for the implementation of the ILayoutElement interface, returns the explicit measured height pre-transform.
GraphicElement
 Inherited
Used for the implementation of the ILayoutElement interface, returns the explicit of measured width pre-transform.
GraphicElement
 Inherited
transformHeightForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Transform the element's size.
GraphicElement
 Inherited
transformWidthForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Transform the element's size.
GraphicElement
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[overschrijven] Draws the element and/or sizes and positions its content.
StrokedElement
Gebeurtenissen
 Gebeurtenis Overzicht Gedefinieerd door
 Inherited[uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de besturingssysteemfocus krijgt en actief wordt.EventDispatcher
 Inherited[uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de systeemfocus verliest en inactief wordt.EventDispatcher
Eigenschapdetails

bottomLeftRadiusX

eigenschap
bottomLeftRadiusX:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The x radius of the bottom left corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get bottomLeftRadiusX():Number
    public function set bottomLeftRadiusX(value:Number):void

bottomLeftRadiusY

eigenschap 
bottomLeftRadiusY:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The y radius of the bottom left corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get bottomLeftRadiusY():Number
    public function set bottomLeftRadiusY(value:Number):void

bottomRightRadiusX

eigenschap 
bottomRightRadiusX:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The x radius of the bottom right corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get bottomRightRadiusX():Number
    public function set bottomRightRadiusX(value:Number):void

bottomRightRadiusY

eigenschap 
bottomRightRadiusY:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The y radius of the bottom right corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get bottomRightRadiusY():Number
    public function set bottomRightRadiusY(value:Number):void

radiusX

eigenschap 
radiusX:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The default corner radius to use for the x axis on all corners. The topLeftRadiusX, topRightRadiusX, bottomLeftRadiusX, and bottomRightRadiusX properties take precedence over this property.



Implementatie
    public function get radiusX():Number
    public function set radiusX(value:Number):void

radiusY

eigenschap 
radiusY:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The default corner radius to use for the y axis on all corners. The topLeftRadiusY, topRightRadiusY, bottomLeftRadiusY, and bottomRightRadiusY properties take precedence over this property.



Implementatie
    public function get radiusY():Number
    public function set radiusY(value:Number):void

topLeftRadiusX

eigenschap 
topLeftRadiusX:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The x radius of the top left corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get topLeftRadiusX():Number
    public function set topLeftRadiusX(value:Number):void

topLeftRadiusY

eigenschap 
topLeftRadiusY:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The y radius of the top left corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get topLeftRadiusY():Number
    public function set topLeftRadiusY(value:Number):void

topRightRadiusX

eigenschap 
topRightRadiusX:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The x radius of the top right corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get topRightRadiusX():Number
    public function set topRightRadiusX(value:Number):void

topRightRadiusY

eigenschap 
topRightRadiusY:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The y radius of the top right corner of the rectangle.

De standaardwaarde is NaN.



Implementatie
    public function get topRightRadiusY():Number
    public function set topRightRadiusY(value:Number):void
Constructordetails

Rect

()Constructor
public function Rect()

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Constructor.

Methodedetails

draw

()methode
override protected function draw(g:Graphics):void

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Draw the element. This is the second of three steps taken during the drawing process. Override this method to implement your drawing. The stroke (and fill, if applicable) have been set in the beginDraw() method. Your override should only contain calls to drawing methods such as moveTo(), curveTo(), and drawRect().

Parameters

g:Graphics — The graphic element to draw.

getBoundsXAtSize

()methode 
override public function getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Returns the x coordinate of the element's bounds at the specified element size.

This method is typically used by layouts during a call to the measure() method to predict what the element position will be, if the element is resized to particular dimensions.

Parameters

width:Number — The element's bounds width, or NaN to use the preferred width.
 
height:Number — The element's bounds height, or NaN to use the preferred height.
 
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns x coordinate of the element's bounding box top-left corner. The bounding box is in element's parent coordinate space and is calculated from the specified bounds size, layout position and layout transform matrix.

Geretourneerde waarde
Number — The x coordinate of the element's bounds at the specified element size.

getBoundsYAtSize

()methode 
override public function getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Returns the y coordinate of the element's bounds at the specified element size. This method is typically used by layouts during a call to the measure() to predict what the element position will be, if the element is resized to particular dimensions.

Parameters

width:Number — The element's bounds width, or NaN to use the preferred width.
 
height:Number — The element's bounds height, or NaN to use the preferred height.
 
postLayoutTransform:Boolean (default = true) — When postLayoutTransform is true, the method returns the y coordinate of the element's bounding box top-left corner. The bounding box is in element's parent coordinate space and is calculated from the specified bounds size, layout position and layout transform matrix.

Geretourneerde waarde
Number — The y coordinate of the element's bounds at the specified element size.
RectExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- RectExample.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">

    <s:Panel title="Rectangle Graphic Example"
            width="75%" height="75%"
            horizontalCenter="0" verticalCenter="0">
        <s:Group left="10" right="10" top="10" bottom="10">
            <s:Graphic x="0" y="0">
                <!-- Draw rectangle with square corners. -->
                <s:Rect height="100" width="200">
                    <s:stroke>
                        <s:SolidColorStroke color="0x000000" weight="2"/>
                    </s:stroke>
                    <s:fill>
                        <s:RadialGradient>
                            <s:entries>
                                <s:GradientEntry color="0x0056FF" ratio="0.00" alpha="0.5"/>
                                <s:GradientEntry color="0x00CC99" ratio="0.33" alpha="0.5"/>
                                <s:GradientEntry color="0xECEC21" ratio="0.66" alpha="0.5"/>
                            </s:entries>
                        </s:RadialGradient>
                    </s:fill>
                </s:Rect>
            </s:Graphic>

            <s:Graphic x="250" y="0">
                <!-- Draw rectangle with rounded corners. -->
                <s:Rect height="100" width="200" radiusX="25" radiusY="25">
                    <s:stroke>
                        <s:SolidColorStroke color="0x000000" weight="2"/>
                    </s:stroke>
                    <s:fill>
                        <s:RadialGradient>
                            <s:entries>
                                <s:GradientEntry color="0x0056FF" ratio="0.00" alpha="0.5"/>
                                <s:GradientEntry color="0x00CC99" ratio="0.33" alpha="0.5"/>
                                <s:GradientEntry color="0xECEC21" ratio="0.66" alpha="0.5"/>
                            </s:entries>
                        </s:RadialGradient>
                    </s:fill>
                </s:Rect>
            </s:Graphic>
        </s:Group>
    </s:Panel>

</s:Application>




[ X ]Waarom in het Engels?
Sommige inhoud van de Naslaggids voor ActionScript 3.0 staat in het Engels

Niet alle onderdelen van de Naslaggids voor ActionScript 3.0 zijn in alle talen vertaald. Wanneer een taalelement niet is vertaald, wordt het in het Engels weergegeven. Zo is de klasse ga.controls.HelpBox niet in elke taal vertaald. In de Nederlandse versie van de naslaggids wordt de klasse ga.controls.HelpBox bijvoorbeeld in het Engels weergegeven.