Paket | mx.flash |
Klass | public dynamic class ContainerMovieClip |
Arv | ContainerMovieClip UIMovieClip MovieClip Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object |
Implementerar | IVisualElementContainer |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A Flash container can only have a single Flex IUIComponent child. However, this child can be a Flex container which allows you to add additional children.
If your Flash container modifies the visual characteristics
of the Flex components contained in it, such as changing the alpha
property,
you must embed the fonts used by the Flex components.
This is the same requirement that you have when using the Dissolve, Fade,
and Rotate effects with Flex components.
The following procedure describes the basic process for creating a Flex component in Flash Professional:
- Install the Adobe Flash Workflow Integration Kit.
- Create symbols for your dynamic assets in the FLA file.
- Run Commands > Make Flex Container to convert your symbol to a subclass of the ContainerMovieClip class, to configure the Flash Professional publishing settings for use with Flex, and add a new symbol named FlexContentHolder to the Library. This symbol defines the content area of the container in which you can place child Flex components..
- Publish your FLA file as a SWC file.
- Reference the class name of your symbols in your Flex application as you would any class.
- Include the SWC file in your
library-path
when you compile your Flex application.
For more information, see the documentation that ships with the Flex/Flash Integration Kit at http://www.adobe.com/go/flex3_cs3_swfkit.
MXML-standardegenskapcontent
Egenskap | Definieras med | ||
---|---|---|---|
accessibilityImplementation : AccessibilityImplementation
Den aktuella hjälpmedelsimplementeringen (AccessibilityImplementation) för den här InteractiveObject-instansen. | InteractiveObject | ||
accessibilityProperties : AccessibilityProperties
De nuvarande hjälpmedelsalternativen för det här visningsobjektet. | DisplayObject | ||
alpha : Number
Anger det angivna objektets alfagenomskinlighetsvärde. | DisplayObject | ||
automationDelegate : Object
The delegate object that handles the automation-related functionality. | UIMovieClip | ||
automationEnabled : Boolean [skrivskyddad]
True if this component is enabled for automation, false
otherwise. | UIMovieClip | ||
automationName : String
Name that can be used as an identifier for this object. | UIMovieClip | ||
automationOwner : DisplayObjectContainer [skrivskyddad]
The owner of this component for automation purposes. | UIMovieClip | ||
automationParent : DisplayObjectContainer [skrivskyddad]
The parent of this component for automation purposes. | UIMovieClip | ||
automationTabularData : Object [skrivskyddad]
An implementation of the IAutomationTabularData interface, which
can be used to retrieve the data. | UIMovieClip | ||
automationValue : Array [skrivskyddad]
This value generally corresponds to the rendered appearance of the
object and should be usable for correlating the identifier with
the object as it appears visually within the application. | UIMovieClip | ||
automationVisible : Boolean [skrivskyddad]
True if this component is visible for automation, false
otherwise. | UIMovieClip | ||
autoUpdateCurrentState : Boolean
Whether we should actively watch changes to the label of the flash object. | UIMovieClip | ||
autoUpdateMeasuredSize : Boolean
Whether we should actively watch changes to the size of the flash object. | UIMovieClip | ||
baseline : Object
The vertical distance in pixels from the top edge of the content area
to the component's baseline position. | UIMovieClip | ||
baselinePosition : Number [skrivskyddad]
The y-coordinate of the baseline
of the first line of text of the component. | UIMovieClip | ||
blendMode : String
Ett värde från klassen BlendMode som anger vilket blandningsläge som ska användas. | DisplayObject | ||
blendShader : Shader [lässkyddad]
Ställer in en skuggning som används för blandning av förgrund och bakgrund. | DisplayObject | ||
bottom : Object
The vertical distance, in pixels, from the lower edge of the component
to the lower edge of its content area. | UIMovieClip | ||
boundingBoxName : String = "boundingBox"
Name of the object to use as the bounding box. | UIMovieClip | ||
buttonMode : Boolean
Anger knappläge för den här spriten. | Sprite | ||
cacheAsBitmap : Boolean
Om det är true, sparar Flash-miljöerna en intern bitmappsrepresentation av visningsobjektet i cache-minnet. | DisplayObject | ||
cacheAsBitmapMatrix : Matrix
Om detta inte är null definierar det här Matrix-objektet hur ett visningsobjekt återges när cacheAsBitmap har värdet true. | DisplayObject | ||
cacheHeuristic : Boolean [lässkyddad]
Used by Flex to suggest bitmap caching for the object. | UIMovieClip | ||
cachePolicy : String [skrivskyddad]
Specifies the bitmap caching policy for this object. | UIMovieClip | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
content : IUIComponent
The Flex content to display inside this container. | ContainerMovieClip | ||
contextMenu : NativeMenu
Anger vilken snabbmeny som är associerad med det här objektet. | InteractiveObject | ||
currentFrame : int [skrivskyddad]
Anger det bildrutenummer som spelhuvudet är på i MovieClip-instansens tidslinje. | MovieClip | ||
currentFrameLabel : String [skrivskyddad]
Etiketten på den aktuella bildrutan i tidslinjen för MovieClip-instansen. | MovieClip | ||
currentLabel : String [skrivskyddad]
Den aktuella etiketten som spelhuvudet är på i MovieClip-instansens tidslinje. | MovieClip | ||
currentLabels : Array [skrivskyddad]
Returnerar en array med FrameLabel-objekt från den aktuella scenen. | MovieClip | ||
currentScene : Scene [skrivskyddad]
Den aktuella scenen som spelhuvudet är på i MovieClip-instansens tidslinje. | MovieClip | ||
currentState : String
The current state of this component. | UIMovieClip | ||
depth : Number
Determines the order in which items inside of containers
are rendered. | UIMovieClip | ||
descriptor : UIComponentDescriptor
Reference to the UIComponentDescriptor, if any, that was used
by the createComponentFromDescriptor() method to create this
UIComponent instance. | UIMovieClip | ||
designLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual
element. | UIMovieClip | ||
document : Object
A reference to the document object associated with this component. | UIMovieClip | ||
doubleClickEnabled : Boolean
Anger om det här objektet tar emot doubleClick-händelser. | InteractiveObject | ||
dropTarget : DisplayObject [skrivskyddad]
Anger det visningsobjekt som spriten dras över, eller som spriten släpptes på. | Sprite | ||
enabled : Boolean
Ett booleskt värde som anger om ett filmklipp är aktiverat. | MovieClip | ||
explicitHeight : Number
The explicitly specified height for the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
explicitMaxHeight : Number
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
explicitMaxWidth : Number
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
explicitMinHeight : Number
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
explicitMinWidth : Number
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
explicitWidth : Number
The explicitly specified width for the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
filters : Array
En indexerad array som innehåller varje filterobjekt som är associerat med visningsobjektet. | DisplayObject | ||
focusEnabled : Boolean
A flag that indicates whether the component can receive focus when selected. | UIMovieClip | ||
focusPane : Sprite
A single Sprite object that is shared among components
and used as an overlay for drawing focus. | UIMovieClip | ||
focusRect : Object
Anger om det här objektet visar en fokusram. | InteractiveObject | ||
framesLoaded : int [skrivskyddad]
Antalet bildrutor som läses in från en direktuppspelad SWF-fil. | MovieClip | ||
graphics : Graphics [skrivskyddad]
Anger det Graphics-objekt som tillhör denna sprite där kommandon för vektorritning kan göras. | Sprite | ||
hasFocusableChildren : Boolean
A flag that indicates whether child objects can receive focus. | UIMovieClip | ||
hasLayoutMatrix3D : Boolean [skrivskyddad]
Contains true if the element has 3D Matrix. | UIMovieClip | ||
height : Number [åsidosätt]
The height of this object, in pixels. | UIMovieClip | ||
hitArea : Sprite
Utser en annan sprite som ska fungera som träffområde för en sprite. | Sprite | ||
horizontalCenter : Object
The horizontal distance in pixels from the center of the
component's content area to the center of the component. | UIMovieClip | ||
id : String
ID of the component. | UIMovieClip | ||
includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container. | UIMovieClip | ||
is3D : Boolean [skrivskyddad]
Contains true when the element is in 3D. | UIMovieClip | ||
isPlaying : Boolean [skrivskyddad]
Ett booleskt värde som anger om ett filmklipp spelas för närvarande. | MovieClip | ||
isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up. | UIMovieClip | ||
layoutDirection : String
Specifies the desired layout direction for an element: one of LayoutDirection.LTR
(left to right), LayoutDirection.RTL (right to left), or null (inherit). | UIMovieClip | ||
left : Object
The horizontal distance, in pixels, from the left edge of the component's
content area to the left edge of the component. | UIMovieClip | ||
loaderInfo : LoaderInfo [skrivskyddad]
Returnerar ett LoaderInfo-objekt som innehåller information om hur filen som visningsobjektet tillhör ska läsas in. | DisplayObject | ||
maintainProjectionCenter : Boolean
When true, the component will keep its projection matrix centered on the
middle of its bounding box. | UIMovieClip | ||
mask : DisplayObject
Det anropande visningsobjektet maskeras av det angivna visningsobjektet. | DisplayObject | ||
maxHeight : Number
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
maxWidth : Number
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
measuredHeight : Number [skrivskyddad]
The measured height of this object. | UIMovieClip | ||
measuredMinHeight : Number
The default minimum height of the component, in pixels. | UIMovieClip | ||
measuredMinWidth : Number
The default minimum width of the component, in pixels. | UIMovieClip | ||
measuredWidth : Number [skrivskyddad]
The measured width of this object. | UIMovieClip | ||
metaData : Object
Erhåller metadataobjektet för instansen DisplayObject om metadata har lagrats tillsammans med instansen för detta DisplayObject i SWF-filen via en PlaceObject4-tagg. | DisplayObject | ||
minHeight : Number
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
minWidth : Number
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates. | UIMovieClip | ||
moduleFactory : IFlexModuleFactory
A module factory is used as context for using embeded fonts and for
finding the style manager that controls the styles for this
component. | UIMovieClip | ||
mouseChildren : Boolean
Avgör om objektets underordnade objekt är aktiverade för en mus eller annan användarindataenhet (eller inte). | DisplayObjectContainer | ||
mouseEnabled : Boolean
Anger om det här objektet tar emot musmeddelanden eller annan indata från användaren. | InteractiveObject | ||
mouseFocusEnabled : Boolean [skrivskyddad]
A flag that indicates whether the component can receive focus
when selected with the mouse. | UIMovieClip | ||
mouseX : Number [skrivskyddad]
Anger x-koordinaten för musens eller användarens indataenhets position i pixlar. | DisplayObject | ||
mouseY : Number [skrivskyddad]
Anger y-koordinaten för musens eller användarens indataenhets position i pixlar. | DisplayObject | ||
name : String
Anger instansnamnet för DisplayObject. | DisplayObject | ||
needsSoftKeyboard : Boolean
Anger om ett virtuellt tangentbord (t.ex. ett skärmtangentbord) ska visas när den här InteractiveObject-instansen är i fokus. | InteractiveObject | ||
numAutomationChildren : int [skrivskyddad]
The number of automation children this container has. | UIMovieClip | ||
numChildren : int [skrivskyddad]
Returnerar antalet underordnade objekt det här objektet har. | DisplayObjectContainer | ||
numElements : int [skrivskyddad]
Returns 1 if there is a viewport, 0 otherwise. | ContainerMovieClip | ||
opaqueBackground : Object
Anger om visningsobjektet är ogenomskinligt med en viss bakgrundsfärg. | DisplayObject | ||
owner : DisplayObjectContainer
Typically the parent container of this component. | UIMovieClip | ||
parent : DisplayObjectContainer [skrivskyddad]
Anger DisplayObjectContainer-objektet som innehåller visningsobjektet. | DisplayObject | ||
parentDocument : Object [skrivskyddad]
The document containing this component. | UIMovieClip | ||
percentHeight : Number
Number that specifies the height of a component as a
percentage of its parent's size. | UIMovieClip | ||
percentWidth : Number
Number that specifies the width of a component as a
percentage of its parent's size. | UIMovieClip | ||
postLayoutTransformOffsets : mx.geom:TransformOffsets
Defines a set of adjustments that can be applied to the component's transform in a way that is
invisible to the component's parent's layout. | UIMovieClip | ||
right : Object
The horizontal distance, in pixels, from the right edge of the component
to the right edge of its content area. | UIMovieClip | ||
root : DisplayObject [skrivskyddad]
För ett visningsobjekt i en inläst SWF-fil är rotegenskapen det översta visningsobjektet i den del av visningslistans trädstruktur som representeras av den SWF-filen. | DisplayObject | ||
rotation : Number [åsidosätt]
Anger DisplayObject-instansens rotation i grader från den ursprungliga orienteringen. | UIMovieClip | ||
rotationX : Number [åsidosätt]
Indicates the x-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | UIMovieClip | ||
rotationY : Number [åsidosätt]
Indicates the y-axis rotation of the DisplayObject instance, in degrees,
from its original orientation relative to the 3D parent container. | UIMovieClip | ||
rotationZ : Number [åsidosätt]
Indicates the z-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container. | UIMovieClip | ||
scale9Grid : Rectangle
Det skalningsrutnät som används för närvarande. | DisplayObject | ||
scaleContentWhenResized : Boolean
Whether the scale of the container due to sizing
affects the scale of the flex content. | ContainerMovieClip | ||
scaleX : Number [åsidosätt]
Number that specifies the horizontal scaling factor. | UIMovieClip | ||
scaleY : Number [åsidosätt]
Number that specifies the vertical scaling factor. | UIMovieClip | ||
scaleZ : Number [åsidosätt]
Number that specifies the scaling factor along the z axis. | UIMovieClip | ||
scenes : Array [skrivskyddad]
En array med Scene-objekt som listar namn, antal bildrutor och bildruteetiketter för en scen i MovieClip-instansen. | MovieClip | ||
scrollRect : Rectangle
Visningsobjektets gränser för rullningsrektangeln. | DisplayObject | ||
showInAutomationHierarchy : Boolean
A flag that determines if an automation object
shows in the automation hierarchy. | UIMovieClip | ||
softKeyboard : String
Kontrollerar utseendet på skärmtangentbordet. | InteractiveObject | ||
softKeyboardInputAreaOfInterest : Rectangle
Definierar det område som ska behållas på skärmen när skärmtangentbordet visas (ej tillgängligt på iOS). | InteractiveObject | ||
soundTransform : flash.media:SoundTransform
Styr ljudet i den här spriten. | Sprite | ||
stage : Stage [skrivskyddad]
Visningsobjektets scen. | DisplayObject | ||
systemManager : ISystemManager
A reference to the SystemManager object for this component. | UIMovieClip | ||
tabChildren : Boolean
Avgör om objektets underordnade objekt är tabbaktiverade. | DisplayObjectContainer | ||
tabEnabled : Boolean
Anger om det här objektet inkluderas i tabbordningen. | InteractiveObject | ||
tabFocusEnabled : Boolean
A flag that indicates whether child objects can receive focus
This is similar to the tabEnabled property
used by the Flash Player.
This is usually true for components that
handle keyboard input, but some components in controlbars
have them set to false because they should not steal
focus from another component like an editor. | UIMovieClip | ||
tabIndex : int
Anger tabbordningen för objekt i en SWF-fil. | InteractiveObject | ||
textSnapshot : flash.text:TextSnapshot [skrivskyddad]
Returnerar ett TextSnapshot-objekt för den här DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
toolTip : String
Text to display in the ToolTip. | UIMovieClip | ||
top : Object
The vertical distance, in pixels, from the top edge of the control's content area
to the top edge of the component. | UIMovieClip | ||
totalFrames : int [skrivskyddad]
Det totala antalet bildrutor i MovieClip-instansen. | MovieClip | ||
trackAsMenu : Boolean
Anger om andra visningsobjekt som är SimpleButton-objekt eller MovieClip-objekt kan ta emot släppningshändelser från musen eller andra användarindataenheter. | MovieClip | ||
transform : flash.geom:Transform
Ett objekt med egenskaper som gäller ett visningsobjekts matris, färgomformning och pixelgränser. | DisplayObject | ||
transformX : Number
Sets the x coordinate for the transform center of the component. | UIMovieClip | ||
transformY : Number
Sets the y coordinate for the transform center of the component. | UIMovieClip | ||
transformZ : Number
Sets the z coordinate for the transform center of the component. | UIMovieClip | ||
tweeningProperties : Array
Used by EffectManager. | UIMovieClip | ||
useHandCursor : Boolean
Ett booleskt värde som anger om den pekande handen (handpekaren) ska visas när pekaren passerar över en sprite, vars buttonMode-egenskap är true. | Sprite | ||
verticalCenter : Object
The vertical distance in pixels from the center of the component's content area
to the center of the component. | UIMovieClip | ||
visible : Boolean [åsidosätt]
Whether or not the display object is visible. | UIMovieClip | ||
width : Number [åsidosätt]
The width of this object, in pixels. | UIMovieClip | ||
x : Number [åsidosätt]
Number that specifies the component's horizontal position,
in pixels, within its parent container. | UIMovieClip | ||
y : Number [åsidosätt]
Number that specifies the component's vertical position,
in pixels, within its parent container. | UIMovieClip | ||
z : Number [åsidosätt]
Indicates the z coordinate position along the z-axis of the DisplayObject
instance relative to the 3D parent container. | UIMovieClip |
Metod | Definieras med | ||
---|---|---|---|
Constructor
| ContainerMovieClip | ||
Lägger till en underordnad DisplayObject-instans i den här DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
Lägger till en underordnad DisplayObject-instans i den här DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
Adds a visual element to this container. | ContainerMovieClip | ||
Adds a visual element to this container. | ContainerMovieClip | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Anger om säkerhetsrestriktionerna kan göra att visningsobjekt utelämnas från listan som returneras när metoden DisplayObjectContainer.getObjectsUnderPoint() anropas med den angivna punkten. | DisplayObjectContainer | ||
Avgör om det angivna visningsobjektet är underordnat DisplayObjectContainer-instansen eller själva instansen. | DisplayObjectContainer | ||
Returns a set of properties that identify the child within
this container. | UIMovieClip | ||
Returns a set of properties that identify the child within
this container. | UIMovieClip | ||
Creates an id reference to this IUIComponent object
on its parent document object. | UIMovieClip | ||
Deletes the id reference to this IUIComponent object
on its parent document object. | UIMovieClip | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Called by the FocusManager when the component receives focus. | UIMovieClip | ||
Executes the data bindings into this UIComponent object. | UIMovieClip | ||
Provides the automation object at the specified index. | UIMovieClip | ||
Provides the automation object list . | UIMovieClip | ||
Returnerar en rektangel som definierar visningsområdets område i relation till targetCoordinateSpace-objektets koordinatsystem. | DisplayObject | ||
Returns the x coordinate of the element's bounds at the specified element size. | UIMovieClip | ||
Returns the y coordinate of the element's bounds at the specified element size. | UIMovieClip | ||
Returnerar den underordnade visningsobjektsinstansen som finns vid det angivna indexvärdet. | DisplayObjectContainer | ||
Returnerar det underordnade visningsobjektet som har ett visst namn. | DisplayObjectContainer | ||
Returnerar indexpositionen för en underordnad DisplayObject-instans. | DisplayObjectContainer | ||
Returns the specified constraint value. | UIMovieClip | ||
Returns the viewport if there is a viewport and the
index passed in is 0. | ContainerMovieClip | ||
Returns the 0 if the element passed in is the viewport. | ContainerMovieClip | ||
A convenience method for determining whether to use the
explicit or measured height
| UIMovieClip | ||
A convenience method for determining whether to use the
explicit or measured width
| UIMovieClip | ||
Returns the element's layout height. | UIMovieClip | ||
Returns the element's layout width. | UIMovieClip | ||
Returns the x coordinate that the element uses to draw on screen. | UIMovieClip | ||
Returns the y coordinate that the element uses to draw on screen. | UIMovieClip | ||
Returns the transform matrix that is used to calculate the component's
layout relative to its siblings. | UIMovieClip | ||
Returns the layout transform Matrix3D for this element. | UIMovieClip | ||
Returns the element's maximum height. | UIMovieClip | ||
Returns the element's maximum width. | UIMovieClip | ||
Returns the element's minimum height. | UIMovieClip | ||
Returns the element's minimum width. | UIMovieClip | ||
Returnerar en array med objekt som ligger under den angivna punkten och är underordnade (eller indirekt underordnade) den här DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
Returns the element's preferred height. | UIMovieClip | ||
Returns the element's preferred width. | UIMovieClip | ||
Returnerar en rektangel som definierar visningsområdets gräns, baserat på koordinatsystemet som definieras av targetCoordinateSpace-parametern, exklusive eventuella linjer i former. | DisplayObject | ||
Konverterar punktobjektet från scenens (globala) koordinater till visningsobjektets (lokala) koordinater. | DisplayObject | ||
Konverterar en tvådimensionell punkt från scenens (globala) koordinater till ett tredimensionellt visningsobjekts (lokala) koordinater. | DisplayObject | ||
Börjar spela upp SWF-filen vid den angivna bildrutan. | MovieClip | ||
Flyttar spelhuvudet till den angivna bildrutan i filmklippet och stannar det där. | MovieClip | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Utvärderar begränsningsramen för visningsobjektet för att kontrollera om den överlappar eller korsar begränsningsramen för obj-visningsobjektet. | DisplayObject | ||
Utvärderar visningsobjektet för att avgöra om det överlappar eller korsar den punkt som anges av x- och y-parametrarna. | DisplayObject | ||
Initialize the object. | UIMovieClip | ||
An element must call this method when its layoutDirection changes or
when its parent's layoutDirection changes. | UIMovieClip | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Konverterar en tredimensionell punkt för det tredimensionella visningsobjektets (lokala) koordinater till en tvådimensionell punkt i scenens (globala) koordinater. | DisplayObject | ||
Konverterar punktobjektet från visningsobjektets (lokala) koordinater till scenens (globala) koordinater. | DisplayObject | ||
Moves this object to the specified x and y coordinates. | UIMovieClip | ||
Flyttar spelhuvudet till nästa bildruta och stannar det där. | MovieClip | ||
Flyttar spelhuvudet till nästa scen i MovieClip-instansen. | MovieClip | ||
Returns true if the chain of owner properties
points from child to this UIComponent. | UIMovieClip | ||
Called by Flex when a UIComponent object is added to or removed from a parent. | UIMovieClip | ||
Flyttar spelhuvudet i filmklippets tidslinje. | MovieClip | ||
Flyttar spelhuvudet till föregående bildruta och stannar det där. | MovieClip | ||
Flyttar spelhuvudet till föregående scen i MovieClip-instansen. | MovieClip | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
For each effect event, register the EffectManager
as one of the event listeners. | UIMovieClip | ||
Removes all visual elements from the container. | ContainerMovieClip | ||
Tar bort den angivna underordnade DisplayObject-instansen från listan med underordnade för DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
Tar bort ett underordnat DisplayObject från den angivna indexpositionen i den underordnade listan i DisplayObjectContainer. | DisplayObjectContainer | ||
Tar bort alla child-DisplayObject-instanser från listan med underordnade för DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
Removes the specified visual element from the child list of
this container. | ContainerMovieClip | ||
Removes a visual element from the specified index position
in the container. | ContainerMovieClip | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Replays the specified event. | UIMovieClip | ||
Visar ett virtuellt tangentbord. | InteractiveObject | ||
Resolves a child by using the id provided. | UIMovieClip | ||
Sets the actual size of this object. | UIMovieClip | ||
Ändrar positionen för ett befintligt underordnat objekt i behållaren för visningsobjekt. | DisplayObjectContainer | ||
Sets the specified constraint value. | UIMovieClip | ||
Changes the position of an existing visual element in the visual container. | ContainerMovieClip | ||
Called by the FocusManager when the component receives focus. | UIMovieClip | ||
Sets the coordinates that the element uses to draw on screen. | UIMovieClip | ||
Sets the layout size of the element. | UIMovieClip | ||
Sets the transform Matrix that is used to calculate the component's layout
size and position relative to its siblings. | UIMovieClip | ||
Sets the transform Matrix3D that is used to calculate the component's layout
size and position relative to its siblings. | UIMovieClip | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Called when the visible property changes. | UIMovieClip | ||
Gör att användaren kan dra angiven sprite. | Sprite | ||
Låter användaren dra angiven sprite på en beröringsaktiverad enhet. | Sprite | ||
Stoppar spelhuvudet i filmklippet. | MovieClip | ||
Stoppar rekursivt tidslinjekörning av alla filmklipp vars rot är detta objekt. | DisplayObjectContainer | ||
Avslutar metoden startDrag(). | Sprite | ||
Avslutar metoden startTouchDrag(), som används med beröringsaktiverade enheter. | Sprite | ||
Byter z-ordningen (framifrån och bakåt-ordning) för de två underordnade objekten. | DisplayObjectContainer | ||
Byter z-ordningen (framifrån och bakåt-ordning) för underordnade objekt vid de två angivna indexpositionerna i listan med underordnade objekt. | DisplayObjectContainer | ||
Swaps the index of the two specified visual elements. | ContainerMovieClip | ||
Swaps the visual elements at the two specified index
positions in the container. | ContainerMovieClip | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
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. | UIMovieClip | ||
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. | UIMovieClip | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
content | egenskap |
content:IUIComponent
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The Flex content to display inside this container.
Typically, to add a child to a container in ActionScript,
you use the Container.addChild()
or Container.addChildAt()
method.
However, to add a child to the ContainerMovieClip.content
property
of a Flash container, you do not use the addChild()
or addChildAt()
method.
Instead, you assign the child directly to the content property.
The following example assigns a container to the ContainerMovieClip.content
property.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:myComps="*"> <mx:Script> <![CDATA[ import mx.containers.HBox; import mx.controls.Image; private function init():void { // Define the Image control. var image1:Image = new Image(); image1.source = "../assets/logowithtext.jpg"; image1.percentWidth = 80; image1.percentHeight = 80; // Define the HBox container. var hb1:HBox = new HBox(); hb1.percentWidth = 100; hb1.percentHeight = 100; hb1.setStyle('borderStyle', 'solid'); hb1.addChild(image1); // Assign the HBox container to the // ContainerMovieClip.content property.. pFrame.content = hb1; } ]]> </mx:Script> <myComps:MyPictureFrameContainer id="pFrame" initialize="init();"/> </mx:Application>
Implementering
public function get content():IUIComponent
public function set content(value:IUIComponent):void
numElements | egenskap |
scaleContentWhenResized | egenskap |
scaleContentWhenResized:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Whether the scale of the container due to sizing affects the scale of the flex content.
When Flash components are resized, they scale up or down to their new size. However, this means their children are also scaled up or down. By setting this flag to false, the children are inversely scaled when the container is resized.
Note: When the container is scaled direclty (through scaleX or scaleY), the content will also be scaled accordingly. This only affects scaling of the container due to sizing.
Standardvärdet är false.
Implementering
public function get scaleContentWhenResized():Boolean
public function set scaleContentWhenResized(value:Boolean):void
ContainerMovieClip | () | Konstruktor |
public function ContainerMovieClip()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor
addElement | () | metod |
public function addElement(element:IVisualElement):IVisualElement
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Adds a visual element to this container.
The element is added after all other elements
and appears top of all other elements.
To add a visual element to a specific index position, use
the addElementAt()
method.
If you add a visual element that already has a different container as a parent, the element is removed from the other container.
Parametrar
element:IVisualElement — The visual element to add as a child of this container.
|
IVisualElement — The element that was added.
|
addElementAt | () | metod |
public function addElementAt(element:IVisualElement, index:int):IVisualElement
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Adds a visual element to this container. The element is added at the index position specified. An index of 0 represents the first element in the display list.
If you add a visual element that already has a different container as a parent, the element is removed from the other container.
Parametrar
element:IVisualElement — The element to add as a child of this visual container.
| |
index:int — The index position to which the element is added. If
you specify a currently occupied index position, the child
that exists at that position and all higher positions are moved
up one position in the child list.
|
IVisualElement — The element that was added.
|
getElementAt | () | metod |
public function getElementAt(index:int):IVisualElement
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Returns the viewport if there is a viewport and the index passed in is 0. Otherwise, it throws a RangeError.
Parametrar
index:int — The index of the element to retrieve.
|
IVisualElement — The element at the specified index.
|
Utlöser
RangeError — If the index position does not exist in the child list.
|
getElementIndex | () | metod |
public function getElementIndex(element:IVisualElement):int
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Returns the 0 if the element passed in is the viewport. Otherwise, it throws an ArgumentError.
Parametrar
element:IVisualElement — The element to identify.
|
int — The index position of the element to identify.
|
Utlöser
ArgumentError — If the element is not a child of this object.
|
removeAllElements | () | metod |
public function removeAllElements():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes all visual elements from the container.
removeElement | () | metod |
public function removeElement(element:IVisualElement):IVisualElement
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes the specified visual element from the child list of this container. The index positions of any elements above the element in this visual container are decreased by 1.
Parametrar
element:IVisualElement — The element to be removed from the container.
|
IVisualElement — The element removed.
|
removeElementAt | () | metod |
public function removeElementAt(index:int):IVisualElement
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Removes a visual element from the specified index position in the container. The index positions of any elements above the element in this visual container are decreased by 1.
Parametrar
index:int — The index of the element to remove.
|
IVisualElement — The element removed.
|
setElementIndex | () | metod |
public function setElementIndex(element:IVisualElement, index:int):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Changes the position of an existing visual element in the visual container.
When you call the setElementIndex()
method and specify an
index position that is already occupied, the only positions
that change are those in between the elements's former and new position.
All others stay the same.
If a visual element is moved to an index lower than its current index, the index of all elements in between increases by 1. If an element is moved to an index higher than its current index, the index of all elements in between decreases by 1.
Parametrar
element:IVisualElement — The element for which you want to change the index number.
| |
index:int — The resulting index number for the element.
|
swapElements | () | metod |
public function swapElements(element1:IVisualElement, element2:IVisualElement):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Swaps the index of the two specified visual elements. All other elements remain in the same index position.
Parametrar
element1:IVisualElement — The first visual element.
| |
element2:IVisualElement — The second visual element.
|
swapElementsAt | () | metod |
public function swapElementsAt(index1:int, index2:int):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Swaps the visual elements at the two specified index positions in the container. All other visual elements remain in the same index position.
Parametrar
index1:int — The index of the first element.
| |
index2:int — The index of the second element.
|
Tue Jun 12 2018, 01:40 PM Z