Paket | mx.core |
Klass | public class Application |
Arv | Application LayoutContainer Container UIComponent FlexSprite Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object |
Underklasser | AuthenticatingApplication, WindowedApplication |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Med början från Flex 4.0, rekommenderar Adobe att du använder klassen spark.components.Application som ett alternativ till den här klassen. |
Flex defines a default, or Application, container that lets you start adding content to your application without explicitly defining another container. Flex creates this container from the
<mx:Application>
tag, the first tag in an MXML application file.
While you might find it convenient to use the Application container
as the only container in your application, in most cases you explicitly
define at least one more container before you add any controls
to your application.
Applications support a predefined plain style that sets a white background, left alignment, and removes all margins. To use this style, do the following:
<mx:Application styleName="plain" />
This is equivalent to setting the following style attributes:
backgroundColor="0xFFFFFF" horizontalAlign="left" paddingLeft="0" paddingTop="0" paddingBottom="0" paddingRight="0"MXML-syntaxDölj MXML-syntax
The <mx:Application>
tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<mx:Application Properties application="No default" controlBar="null" frameRate="24" historyManagementEnabled="true|false" layout="vertical|horizontal|absolute" pageTitle"No default" preloader="No default" resetHistory="false|true" scriptRecursionLimit="1000" scriptTimeLimit="60" usePreloader="true|false" viewSourceURL="" xmlns:No default="No default" Styles backgroundGradientAlphas="[ 1.0, 1.0 ]" backgroundGradientColors="undefined" horizontalAlign="center|left|right" horizontalGap="8" modalTransparency="0.5" modalTransparencyBlur="3" modalTransparencyColor="#DDDDDD" modalTransparencyDuration="100" paddingBottom="24" paddingTop="24" verticalAlign="top|bottom|middle" verticalGap="6" Events applicationComplete="No default" error="No default" />
Fler exempel
Sizing an application container and its children
Using scroll bars with the application container
Overriding the default Application container styles
Application events
Viewing the application source code
About the application object
Accessing document and application scopes
Showing the download progress of an application
Relaterade API-element
mx.managers.LayoutManager
mx.managers.SystemManager
flash.events.EventDispatcher
Egenskap | Definieras med | ||
---|---|---|---|
accessibilityDescription : String
A convenience accessor for the description property
in this UIComponent's accessibilityProperties object. | UIComponent | ||
accessibilityEnabled : Boolean
A convenience accessor for the silent property
in this UIComponent's accessibilityProperties object. | UIComponent | ||
accessibilityImplementation : AccessibilityImplementation
Den aktuella hjälpmedelsimplementeringen (AccessibilityImplementation) för den här InteractiveObject-instansen. | InteractiveObject | ||
accessibilityName : String
A convenience accessor for the name property
in this UIComponent's accessibilityProperties object. | UIComponent | ||
accessibilityProperties : AccessibilityProperties
De nuvarande hjälpmedelsalternativen för det här visningsobjektet. | DisplayObject | ||
accessibilityShortcut : String
A convenience accessor for the shortcut property
in this UIComponent's accessibilityProperties object. | UIComponent | ||
activeEffects : Array [skrivskyddad]
The list of effects that are currently playing on the component,
as an Array of EffectInstance instances. | UIComponent | ||
alpha : Number
Anger det angivna objektets alfagenomskinlighetsvärde. | DisplayObject | ||
application : Object Borttagen sedan 4.0: Använd FlexGlobals.topLevelApplication [statisk] [skrivskyddad]
A reference to the top-level application. | Application | ||
autoLayout : Boolean
If true, measurement and layout are done
when the position or size of a child is changed. | Container | ||
automationDelegate : Object
The delegate object that handles the automation-related functionality. | UIComponent | ||
automationEnabled : Boolean [skrivskyddad]
True if this component is enabled for automation, false
otherwise. | UIComponent | ||
automationName : String
Name that can be used as an identifier for this object. | UIComponent | ||
automationOwner : DisplayObjectContainer [skrivskyddad]
The owner of this component for automation purposes. | UIComponent | ||
automationParent : DisplayObjectContainer [skrivskyddad]
The parent of this component for automation purposes. | UIComponent | ||
automationTabularData : Object [skrivskyddad]
An implementation of the IAutomationTabularData interface, which
can be used to retrieve the data. | UIComponent | ||
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. | UIComponent | ||
automationVisible : Boolean [skrivskyddad]
True if this component is visible for automation, false
otherwise. | UIComponent | ||
baseline : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
baselinePosition : Number [skrivskyddad]
The y-coordinate of the baseline
of the first line of text of the component. | UIComponent | ||
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 | ||
borderMetrics : EdgeMetrics [skrivskyddad]
Returns an EdgeMetrics object that has four properties:
left, top, right,
and bottom. | Container | ||
bottom : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
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. | UIComponent | ||
cachePolicy : String
Specifies the bitmap caching policy for this object. | UIComponent | ||
childDescriptors : Array [skrivskyddad]
Array of UIComponentDescriptor objects produced by the MXML compiler. | Container | ||
className : String [skrivskyddad]
The name of this instance's class, such as "Button". | UIComponent | ||
clipContent : Boolean
Whether to apply a clip mask if the positions and/or sizes
of this container's children extend outside the borders of
this container. | Container | ||
constraintColumns : Array
An Array of ConstraintColumn instances that partition this container. | LayoutContainer | ||
constraintRows : Array
An Array of ConstraintRow instances that partition this container. | LayoutContainer | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
contentMouseX : Number [åsidosätt] [skrivskyddad]
Returns the x position of the mouse, in the content coordinate system. | Container | ||
contentMouseY : Number [åsidosätt] [skrivskyddad]
Returns the y position of the mouse, in the content coordinate system. | Container | ||
contextMenu : NativeMenu
Anger vilken snabbmeny som är associerad med det här objektet. | InteractiveObject | ||
controlBar : IUIComponent
The ApplicationControlBar for this Application. | Application | ||
creatingContentPane : Boolean
Containers use an internal content pane to control scrolling. | Container | ||
creationIndex : int Borttagen: Deprecated
Specifies the order to instantiate and draw the children
of the container. | Container | ||
creationPolicy : String
The child creation policy for this MX Container. | Container | ||
currentState : String
The current view state of the component. | UIComponent | ||
cursorManager : ICursorManager [skrivskyddad]
Gets the CursorManager that controls the cursor for this component
and its peers. | UIComponent | ||
data : Object
The data property lets you pass a value
to the component when you use it in an item renderer or item editor. | Container | ||
defaultButton : IFlexDisplayObject
The Button control designated as the default button
for the container. | Container | ||
deferredContentCreated : Boolean [skrivskyddad]
IDeferredContentOwner equivalent of processedDescriptors
| Container | ||
depth : Number
Determines the order in which items inside of containers
are rendered. | UIComponent | ||
descriptor : UIComponentDescriptor
Reference to the UIComponentDescriptor, if any, that was used
by the createComponentFromDescriptor() method to create this
UIComponent instance. | UIComponent | ||
designLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual
element. | UIComponent | ||
document : Object
A reference to the document object associated with this UIComponent. | UIComponent | ||
doubleClickEnabled : Boolean [åsidosätt]
Specifies whether the UIComponent object receives doubleClick events. | UIComponent | ||
dropTarget : DisplayObject [skrivskyddad]
Anger det visningsobjekt som spriten dras över, eller som spriten släpptes på. | Sprite | ||
enabled : Boolean
Whether the component can accept user interaction. | UIComponent | ||
errorString : String
The text that displayed by a component's error tip when a
component is monitored by a Validator and validation fails. | UIComponent | ||
explicitHeight : Number
Number that specifies the explicit height of the component,
in pixels, in the component's coordinates. | UIComponent | ||
explicitMaxHeight : Number
The maximum recommended height of the component to be considered
by the parent during layout. | UIComponent | ||
explicitMaxWidth : Number
The maximum recommended width of the component to be considered
by the parent during layout. | UIComponent | ||
explicitMinHeight : Number
The minimum recommended height of the component to be considered
by the parent during layout. | UIComponent | ||
explicitMinWidth : Number
The minimum recommended width of the component to be considered
by the parent during layout. | UIComponent | ||
explicitWidth : Number
Number that specifies the explicit width of the component,
in pixels, in the component's coordinates. | UIComponent | ||
filters : Array
En indexerad array som innehåller varje filterobjekt som är associerat med visningsobjektet. | DisplayObject | ||
flexContextMenu : IFlexContextMenu
The context menu for this UIComponent. | UIComponent | ||
focusEnabled : Boolean
Indicates whether the component can receive focus when tabbed to. | UIComponent | ||
focusManager : IFocusManager
Gets the FocusManager that controls focus for this component
and its peers. | UIComponent | ||
focusPane : Sprite
The focus pane associated with this object. | UIComponent | ||
focusRect : Object
Anger om det här objektet visar en fokusram. | InteractiveObject | ||
frameRate : Number
Specifies the frame rate of the application. | Application | ||
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. | UIComponent | ||
hasLayoutMatrix3D : Boolean [skrivskyddad]
Contains true if the element has 3D Matrix. | UIComponent | ||
height : Number [åsidosätt]
Number that specifies the height of the component, in pixels,
in the parent's coordinates. | UIComponent | ||
historyManagementEnabled : Boolean = true
If false, the history manager will be disabled. | Application | ||
hitArea : Sprite
Utser en annan sprite som ska fungera som träffområde för en sprite. | Sprite | ||
horizontalCenter : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
horizontalLineScrollSize : Number
Number of pixels to move when the left- or right-arrow
button in the horizontal scroll bar is pressed. | Container | ||
horizontalPageScrollSize : Number
Number of pixels to move when the track in the
horizontal scroll bar is pressed. | Container | ||
horizontalScrollBar : ScrollBar
The horizontal scrollbar used in this container. | Container | ||
horizontalScrollPolicy : String
Specifies whether the horizontal scroll bar is always present,
always absent, or automatically added when needed. | Container | ||
horizontalScrollPosition : Number
The current position of the horizontal scroll bar. | Container | ||
id : String
ID of the component. | UIComponent | ||
includeInLayout : Boolean
Specifies whether this component is included in the layout of the
parent container. | UIComponent | ||
inheritingStyles : Object
The beginning of this component's chain of inheriting styles. | UIComponent | ||
initialized : Boolean
A flag that determines if an object has been through all three phases
of layout: commitment, measurement, and layout (provided that any were required). | UIComponent | ||
instanceIndex : int [skrivskyddad]
The index of a repeated component. | UIComponent | ||
instanceIndices : Array
An Array containing the indices required to reference
this UIComponent object from its parent document. | UIComponent | ||
is3D : Boolean [skrivskyddad]
Contains true when the element is in 3D. | UIComponent | ||
isDocument : Boolean [skrivskyddad]
Contains true if this UIComponent instance is a document object. | UIComponent | ||
isPopUp : Boolean
Set to true by the PopUpManager to indicate
that component has been popped up. | UIComponent | ||
layout : String
Specifies the layout mechanism used for this application. | LayoutContainer | ||
layoutMatrix3D : Matrix3D [lässkyddad]
The transform matrix that is used to calculate a component's layout
relative to its siblings. | UIComponent | ||
left : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
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 keeps its projection matrix centered on the
middle of its bounding box. | UIComponent | ||
mask : DisplayObject
Det anropande visningsobjektet maskeras av det angivna visningsobjektet. | DisplayObject | ||
maxHeight : Number
The maximum recommended height of the component to be considered
by the parent during layout. | UIComponent | ||
maxHorizontalScrollPosition : Number [skrivskyddad]
The largest possible value for the
horizontalScrollPosition property. | Container | ||
maxVerticalScrollPosition : Number [skrivskyddad]
The largest possible value for the
verticalScrollPosition property. | Container | ||
maxWidth : Number
The maximum recommended width of the component to be considered
by the parent during layout. | UIComponent | ||
measuredHeight : Number
The default height of the component, in pixels. | UIComponent | ||
measuredMinHeight : Number
The default minimum height of the component, in pixels. | UIComponent | ||
measuredMinWidth : Number
The default minimum width of the component, in pixels. | UIComponent | ||
measuredWidth : Number
The default width of the component, in pixels. | UIComponent | ||
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
The minimum recommended height of the component to be considered
by the parent during layout. | UIComponent | ||
minWidth : Number
The minimum recommended width of the component to be considered
by the parent during layout. | UIComponent | ||
moduleFactory : IFlexModuleFactory
A module factory is used as context for using embedded fonts and for
finding the style manager that controls the styles for this
component. | UIComponent | ||
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
Whether you can receive focus when clicked on. | UIComponent | ||
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 | ||
nestLevel : int
Depth of this object in the containment hierarchy. | UIComponent | ||
nonInheritingStyles : Object
The beginning of this component's chain of non-inheriting styles. | UIComponent | ||
numAutomationChildren : int [skrivskyddad]
The number of automation children this container has. | UIComponent | ||
numChildren : int [åsidosätt] [skrivskyddad]
Number of child components in this container. | Container | ||
numElements : int [skrivskyddad]
The number of visual elements in this container. | Container | ||
opaqueBackground : Object
Anger om visningsobjektet är ogenomskinligt med en viss bakgrundsfärg. | DisplayObject | ||
owner : DisplayObjectContainer
The owner of this IVisualElement object. | UIComponent | ||
pageTitle : String
Specifies a string that appears in the title bar of the browser. | Application | ||
parameters : Object [skrivskyddad]
The parameters property returns an Object containing name-value
pairs representing the parameters provided to this Application. | Application | ||
parent : DisplayObjectContainer [åsidosätt] [skrivskyddad]
The parent container or component for this component. | UIComponent | ||
parentApplication : Object [skrivskyddad]
A reference to the Application object that contains this UIComponent
instance. | UIComponent | ||
parentDocument : Object [skrivskyddad]
A reference to the parent document object for this UIComponent. | UIComponent | ||
percentHeight : Number
Specifies the height of a component as a percentage
of its parent's size. | UIComponent | ||
percentWidth : Number
Specifies the width of a component as a percentage
of its parent's size. | UIComponent | ||
postLayoutTransformOffsets : 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. | UIComponent | ||
preloader : Object
The application container supports an application preloader that
uses a download progress bar to show the download and initialization progress
of an application SWF file. | Application | ||
preloaderChromeColor : uint
Specifies the base color used by the default preloader component. | Application | ||
processedDescriptors : Boolean
Set to true after immediate or deferred child creation,
depending on which one happens. | UIComponent | ||
rawChildren : IChildList [skrivskyddad]
A container typically contains child components, which can be enumerated
using the Container.getChildAt() method and
Container.numChildren property. | Container | ||
repeater : IRepeater [skrivskyddad]
A reference to the Repeater object
in the parent document that produced this UIComponent. | UIComponent | ||
repeaterIndex : int [skrivskyddad]
The index of the item in the data provider
of the Repeater that produced this UIComponent. | UIComponent | ||
repeaterIndices : Array
An Array containing the indices of the items in the data provider
of the Repeaters in the parent document that produced this UIComponent. | UIComponent | ||
repeaters : Array
An Array containing references to the Repeater objects
in the parent document that produced this UIComponent. | UIComponent | ||
resetHistory : Boolean = true
If true, the application's history state is reset
to its initial state whenever the application is reloaded. | Application | ||
right : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
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. | UIComponent | ||
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. | UIComponent | ||
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. | UIComponent | ||
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. | UIComponent | ||
scale9Grid : Rectangle
Det skalningsrutnät som används för närvarande. | DisplayObject | ||
scaleX : Number [åsidosätt]
Number that specifies the horizontal scaling factor. | UIComponent | ||
scaleY : Number [åsidosätt]
Number that specifies the vertical scaling factor. | UIComponent | ||
scaleZ : Number [åsidosätt]
Number that specifies the scaling factor along the z axis. | UIComponent | ||
screen : Rectangle [skrivskyddad]
Returns an object that contains the size and position of the base
drawing surface for this object. | UIComponent | ||
scriptRecursionLimit : int
Specifies the maximum depth of Flash Player or AIR
call stack before the player stops. | Application | ||
scriptTimeLimit : Number
Specifies the maximum duration, in seconds, that an ActionScript
event handler can execute before Flash Player or AIR assumes
that it is hung, and aborts it. | Application | ||
scrollRect : Rectangle
Visningsobjektets gränser för rullningsrektangeln. | DisplayObject | ||
showInAutomationHierarchy : Boolean
A flag that determines if an automation object
shows in the automation hierarchy. | UIComponent | ||
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 | ||
states : Array
The view states that are defined for this component. | UIComponent | ||
styleDeclaration : CSSStyleDeclaration
Storage for the inline inheriting styles on this object. | UIComponent | ||
styleManager : IStyleManager2 [skrivskyddad]
Returns the StyleManager instance used by this component. | UIComponent | ||
styleName : Object
The class style used by this component. | UIComponent | ||
styleParent : IAdvancedStyleClient
A component's parent is used to evaluate descendant selectors. | UIComponent | ||
systemManager : ISystemManager
Returns the SystemManager object used by this component. | UIComponent | ||
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 this object can receive focus
via the TAB key
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. | UIComponent | ||
textSnapshot : flash.text:TextSnapshot [skrivskyddad]
Returnerar ett TextSnapshot-objekt för den här DisplayObjectContainer-instansen. | DisplayObjectContainer | ||
top : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
transform : flash.geom:Transform [åsidosätt]
An object with properties pertaining to a display object's matrix, color transform,
and pixel bounds. | UIComponent | ||
transformX : Number
Sets the x coordinate for the transform center of the component. | UIComponent | ||
transformY : Number
Sets the y coordinate for the transform center of the component. | UIComponent | ||
transformZ : Number
Sets the z coordinate for the transform center of the component. | UIComponent | ||
transitions : Array
An Array of Transition objects, where each Transition object defines a
set of effects to play when a view state change occurs. | UIComponent | ||
tweeningProperties : Array
Array of properties that are currently being tweened on this object. | UIComponent | ||
uid : String
A unique identifier for the object. | UIComponent | ||
updateCompletePendingFlag : Boolean
A flag that determines if an object has been through all three phases
of layout validation (provided that any were required). | UIComponent | ||
url : String [skrivskyddad]
The URL from which this Application's SWF file was loaded. | Application | ||
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 | ||
usePreloader : Boolean
If true, specifies to display the application preloader. | Application | ||
validationSubField : String
Used by a validator to associate a subfield with this component. | UIComponent | ||
verticalCenter : Object
For components, this layout constraint property is a
facade on top of the similarly-named style. | UIComponent | ||
verticalLineScrollSize : Number
Number of pixels to scroll when the up- or down-arrow
button in the vertical scroll bar is pressed,
or when you scroll by using the mouse wheel. | Container | ||
verticalPageScrollSize : Number
Number of pixels to scroll when the track
in the vertical scroll bar is pressed. | Container | ||
verticalScrollBar : ScrollBar
The vertical scrollbar used in this container. | Container | ||
verticalScrollPolicy : String
Specifies whether the vertical scroll bar is always present,
always absent, or automatically added when needed. | Container | ||
verticalScrollPosition : Number
The current position of the vertical scroll bar. | Container | ||
viewMetrics : EdgeMetrics [skrivskyddad]
Returns an object that has four properties: left,
top, right, and bottom. | Container | ||
viewMetricsAndPadding : EdgeMetrics [skrivskyddad]
Returns an object that has four properties: left,
top, right, and bottom. | Container | ||
viewSourceURL : String
URL where the application's source can be viewed. | Application | ||
visible : Boolean [åsidosätt]
Whether or not the display object is visible. | UIComponent | ||
width : Number [åsidosätt]
Number that specifies the width of the component, in pixels,
in the parent's coordinates. | UIComponent | ||
z : Number [åsidosätt]
Indicates the z coordinate position along the z-axis of the DisplayObject
instance relative to the 3D parent container. | UIComponent |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | Application | ||
[åsidosätt]
Adds a child DisplayObject to this Container. | Container | ||
[åsidosätt]
Adds a child DisplayObject to this Container. | Container | ||
Adds a visual element to this container. | Container | ||
Adds a visual element to this container. | Container | ||
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 | ||
Adds a non-visual style client to this component instance. | UIComponent | ||
addToCreationQueue(id:Object, preferredIndex:int = -1, callbackFunc:Function = null, parent:IFlexDisplayObject = null):void
Add a container to the Application's creation queue. | Application | ||
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 | ||
Queues a function to be called later. | UIComponent | ||
Deletes a style property from this component instance. | UIComponent | ||
Avgör om det angivna visningsobjektet är underordnat DisplayObjectContainer-instansen eller själva instansen. | DisplayObjectContainer | ||
[åsidosätt]
Converts a Point object from content coordinates to global coordinates. | Container | ||
[åsidosätt]
Converts a Point object from content to local coordinates. | Container | ||
Returns a set of properties that identify the child within
this container. | UIComponent | ||
Returns a set of properties that identify the child within
this container. | UIComponent | ||
Given a single UIComponentDescriptor, create the corresponding
component and add the component as a child of this Container. | Container | ||
Iterate through the Array of childDescriptors,
and call the createComponentFromDescriptor() method for each one. | Container | ||
Performs the equivalent action of calling
the createComponentsFromDescriptors(true) method for containers
that implement the IDeferredContentOwner interface to support deferred instantiation. | Container | ||
Creates an id reference to this IUIComponent object
on its parent document object. | UIComponent | ||
Deletes the id reference to this IUIComponent object
on its parent document object. | UIComponent | ||
Returns a UITextFormat object corresponding to the text styles
for this UIComponent. | UIComponent | ||
[åsidosätt]
Dispatches an event into the event flow. | UIComponent | ||
Shows or hides the focus indicator around this component. | UIComponent | ||
drawRoundRect(x:Number, y:Number, w:Number, h:Number, r:Object = null, c:Object = null, alpha:Object = null, rot:Object = null, gradient:String = null, ratios:Array = null, hole:Object = null):void
Programmatically draws a rectangle into this skin's Graphics object. | UIComponent | ||
Called by the effect instance when it stops playing on the component. | UIComponent | ||
Called by the effect instance when it starts playing on the component. | UIComponent | ||
Ends all currently playing effects on the component. | UIComponent | ||
[åsidosätt]
Executes all the data bindings on this Container. | Container | ||
Executes the bindings into this Container's child UIComponent objects. | Container | ||
Called after printing is complete. | UIComponent | ||
Provides the automation object at the specified index. | UIComponent | ||
Provides the automation object list . | UIComponent | ||
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. | UIComponent | ||
Returns the y coordinate of the element's bounds at the specified element size. | UIComponent | ||
[åsidosätt]
Gets the nth child component object. | Container | ||
[åsidosätt]
Returns the child whose name property is the specified String. | Container | ||
[åsidosätt]
Gets the zero-based index of a specific child. | Container | ||
Returns an Array of DisplayObject objects consisting of the content children
of the container. | Container | ||
Finds the type selectors for this UIComponent instance. | UIComponent | ||
Returns a layout constraint value, which is the same as
getting the constraint style for this component. | UIComponent | ||
Returns the visual element at the specified index. | Container | ||
Returns the index position of a visual element. | Container | ||
A convenience method for determining whether to use the
explicit or measured height
| UIComponent | ||
A convenience method for determining whether to use the
explicit or measured width
| UIComponent | ||
Gets the object that currently has focus. | UIComponent | ||
Returns the element's layout height. | UIComponent | ||
Returns the element's layout width. | UIComponent | ||
Returns the x coordinate that the element uses to draw on screen. | UIComponent | ||
Returns the y coordinate that the element uses to draw on screen. | UIComponent | ||
Returns the transform matrix that is used to calculate the component's
layout relative to its siblings. | UIComponent | ||
Returns the layout transform Matrix3D for this element. | UIComponent | ||
Returns the element's maximum height. | UIComponent | ||
Returns the element's maximum width. | UIComponent | ||
Returns the element's minimum height. | UIComponent | ||
Returns the element's minimum width. | UIComponent | ||
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. | UIComponent | ||
Returns the element's preferred width. | UIComponent | ||
Returnerar en rektangel som definierar visningsområdets gräns, baserat på koordinatsystemet som definieras av targetCoordinateSpace-parametern, exklusive eventuella linjer i former. | DisplayObject | ||
Returns the item in the dataProvider that was used
by the specified Repeater to produce this Repeater, or
null if this Repeater isn't repeated. | UIComponent | ||
Gets a style property that has been set anywhere in this
component's style lookup chain. | UIComponent | ||
[åsidosätt]
Converts a Point object from global to content coordinates. | Container | ||
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 | ||
Returns true if currentCSSState is not null. | UIComponent | ||
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 | ||
Determines whether the specified state has been defined on this
UIComponent. | UIComponent | ||
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 | ||
Returns a box Matrix which can be passed to the
drawRoundRect() method
as the rot parameter when drawing a horizontal gradient. | UIComponent | ||
Initializes the internal structure of this component. | UIComponent | ||
Initializes various properties which keep track of repeated instances
of this component. | UIComponent | ||
Marks a component so that its updateDisplayList()
method gets called during a later screen update. | UIComponent | ||
Called by a component's items to indicate that their depth
property has changed. | UIComponent | ||
An element must call this method when its layoutDirection changes or
when its parent's layoutDirection changes. | UIComponent | ||
Marks a component so that its commitProperties()
method gets called during a later screen update. | UIComponent | ||
Marks a component so that its measure()
method gets called during a later screen update. | UIComponent | ||
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 | ||
[åsidosätt]
Converts a Point object from local to content coordinates. | Container | ||
Konverterar punktobjektet från visningsobjektets (lokala) koordinater till scenens (globala) koordinater. | DisplayObject | ||
Returns true if cssState matches currentCSSState. | UIComponent | ||
Determines whether this instance is the same as, or is a subclass of,
the given type. | UIComponent | ||
Measures the specified HTML text, which can contain HTML tags such
as <font> and <b>,
assuming that it is displayed
in a single-line UITextField using a UITextFormat
determined by the styles of this UIComponent. | UIComponent | ||
Measures the specified text, assuming that it is displayed
in a single-line UITextField (or UIFTETextField) using a UITextFormat
determined by the styles of this UIComponent. | UIComponent | ||
Moves the component to a specified position within its parent. | UIComponent | ||
Propagates style changes to the children. | UIComponent | ||
Returns true if the chain of owner properties
points from child to this UIComponent. | UIComponent | ||
Called by Flex when a UIComponent object is added to or removed from a parent. | UIComponent | ||
Prepares an IFlexDisplayObject for printing. | UIComponent | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Builds or rebuilds the CSS style cache for this component
and, if the recursive parameter is true,
for all descendants of this component as well. | UIComponent | ||
For each effect event, registers the EffectManager
as one of the event listeners. | UIComponent | ||
Removes all children from the child list of this container. | Container | ||
Removes all visual elements from the container. | Container | ||
[åsidosätt]
Removes a child DisplayObject from the child list of this Container. | Container | ||
[åsidosätt]
Removes a child DisplayObject from the child list of this Container
at the specified index. | Container | ||
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. | Container | ||
Removes a visual element from the specified index position
in the container. | Container | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Removes a non-visual style client from this component instance. | UIComponent | ||
Replays the specified event. | UIComponent | ||
Visar ett virtuellt tangentbord. | InteractiveObject | ||
Resolves a child by using the id provided. | UIComponent | ||
[statisk]
Resumes the background processing of methods
queued by callLater(), after a call to
suspendBackgroundProcessing(). | UIComponent | ||
Sizes the object. | UIComponent | ||
[åsidosätt]
Sets the index of a particular child. | Container | ||
Sets a layout constraint value, which is the same as
setting the constraint style for this component. | UIComponent | ||
Set the current state. | UIComponent | ||
Changes the position of an existing visual element in the visual container. | Container | ||
Sets the focus to this component. | UIComponent | ||
Sets the coordinates that the element uses to draw on screen. | UIComponent | ||
Sets the layout size of the element. | UIComponent | ||
Sets the transform Matrix that is used to calculate the component's layout
size and position relative to its siblings. | UIComponent | ||
Sets the transform Matrix3D that is used to calculate the component's layout
size and position relative to its siblings. | UIComponent | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Sets a style property on this component instance. | UIComponent | ||
Called when the visible property changes. | UIComponent | ||
Gör att användaren kan dra angiven sprite. | Sprite | ||
Låter användaren dra angiven sprite på en beröringsaktiverad enhet. | Sprite | ||
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 | ||
Detects changes to style properties. | UIComponent | ||
Flex calls the stylesInitialized() method when
the styles for a component are first initialized. | UIComponent | ||
[statisk]
Blocks the background processing of methods
queued by callLater(),
until resumeBackgroundProcessing() is called. | UIComponent | ||
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. | Container | ||
Swaps the visual elements at the two specified index
positions in the container. | Container | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
[åsidosätt]
Returns a string indicating the location of this object
within the hierarchy of DisplayObjects in the Application. | FlexSprite | ||
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. | UIComponent | ||
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. | UIComponent | ||
Validates the position and size of children and draws other
visuals. | UIComponent | ||
Validate and update the properties and layout of this object
and redraw it, if necessary. | UIComponent | ||
Used by layout logic to validate the properties of a component
by calling the commitProperties() method. | UIComponent | ||
Validates the measured size of the component
If the LayoutManager.invalidateSize() method is called with
this ILayoutManagerClient, then the validateSize() method
is called when it's time to do measurements. | UIComponent | ||
Handles both the valid and invalid events from a
validator assigned to this component. | UIComponent | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Returns a box Matrix which can be passed to drawRoundRect()
as the rot parameter when drawing a vertical gradient. | UIComponent | ||
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 |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
Dispatched when the component is added to a container as a content child by using the addChild(), addChildAt(), addElement(), or addElementAt() method. | UIComponent | |||
Skickas när ett visningsobjekt läggs till i visningslistan. | DisplayObject | |||
Skickas när ett visningsobjekt läggs till i scenens visningslista, antingen direkt eller genom tillägg av ett underträd som innehåller visningsobjektet. | DisplayObject | |||
Dispatched after the Application has been initialized, processed by the LayoutManager, and attached to the display list. | Application | |||
Dispatched after a child has been added to a container. | Container | |||
Dispatched after the index (among the container children) of a container child changes. | Container | |||
Dispatched before a child of a container is removed. | Container | |||
Skickas när användaren väljer ”Ta bort” på textinnehållsmenyn. | InteractiveObject | |||
Skickas när en användare trycker ner och släpper upp huvudknappen på sitt pekdon över samma InteractiveObject. | InteractiveObject | |||
Skickas när en användargest utlöser den snabbmeny som är kopplad till detta interaktiva objekt i ett AIR-program. | InteractiveObject | |||
Skickas när användaren aktiverar den plattformsspecifika tangentkombinationen för funktionen Kopiera eller väljer ”Kopiera” på snabbmenyn. | InteractiveObject | |||
Dispatched when the component has finished its construction, property processing, measuring, layout, and drawing. | UIComponent | |||
Dispatched after the view state has changed. | UIComponent | |||
Dispatched after the currentState property changes, but before the view state changes. | UIComponent | |||
Skickas när användaren aktiverar den plattformsspecifika tangentkombinationen för funktionen Klipp ut eller väljer Klipp ut på snabbmenyn. | InteractiveObject | |||
Dispatched when the data property changes. | Container | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher | |||
Skickas när en användare trycker ner och släpper upp huvudknappen på ett pekdon två gånger i snabb följd över samma InteractiveObject när detta objekts doubleClickEnabled-flagga är satt till true. | InteractiveObject | |||
Dispatched by the drag initiator (the component that is the source of the data being dragged) when the drag operation completes, either when you drop the dragged data onto a drop target or when you end the drag-and-drop operation without performing a drop. | UIComponent | |||
Dispatched by the drop target when the user releases the mouse over it. | UIComponent | |||
Dispatched by a component when the user moves the mouse over the component during a drag operation. | UIComponent | |||
Dispatched by the component when the user drags outside the component, but does not drop the data onto the target. | UIComponent | |||
Dispatched by a component when the user moves the mouse while over the component during a drag operation. | UIComponent | |||
Dispatched by the drag initiator when starting a drag operation. | UIComponent | |||
Dispatched after an effect ends. | UIComponent | |||
Dispatched just before an effect starts. | UIComponent | |||
Dispatched after an effect is stopped, which happens only by a call to stop() on the effect. | UIComponent | |||
[utsändningshändelse] Skickas när spelhuvudet går in i en ny bildruta. | DisplayObject | |||
Dispatched after the component has entered a view state. | UIComponent | |||
Dispatched when an HTTPService call fails. | Application | |||
[utsändningshändelse] Skickas när spelhuvudet stänger den aktuella bildrutan. | DisplayObject | |||
Dispatched just before the component exits a view state. | UIComponent | |||
Skickas när ett visningsobjekt fokuserats. | InteractiveObject | |||
Skickas när ett visningsobjekt tappar fokusering. | InteractiveObject | |||
[utsändningshändelse] Skickas efter att konstruktorerna för bildrutevisningsobjekt har körts men innan bildruteskript har körts. | DisplayObject | |||
Skickas när användaren skapar en kontaktpunkt längs pekytans kant med en InteractiveObject-instans (såsom att trycka längs kanten av pekytan på Siri Remote för Apple-TV). Vissa enheter kan också tolka denna kontakt som en kombination av flera pekhändelser. | InteractiveObject | |||
Skickas när användaren trycker på två kontaktpunkter över samma InteractiveObject-instans på en beröringsaktiverad enhet (som att trycka med två fingrar och sedan släppa dem över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren flyttar en kontaktpunkt över InteractiveObject-instansen på en beröringsaktiverad enhet (som att flytta ett finger från vänster till höger över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren utför en rotationsgest vid en kontaktpunkt med en InteractiveObject-instans (som att vidröra en skärm med två fingrar och rotera dem över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren utför en svepningsgest vid en kontaktpunkt med en InteractiveObject-instans (som att vidröra en skärm med tre fingrar och sedan flytta fingrarna parallellt över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren skapar en kontaktpunkt med en InteractiveObject-instans och sedan vidrör en beröringsaktiverad enhet (som att placera flera fingrar över ett visningsobjekt för att öppna en meny och sedan använda ett finger för att peka på ett menyalternativ på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren utför en zoomningsgest vid en kontaktpunkt med en InteractiveObject-instans (som att vidröra en skärm med två fingrar och sedan snabbt sära på fingrarna över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Dispatched when an object's state changes from visible to invisible. | UIComponent | |||
Den här händelsen skickas till alla klientprogram som har stöd för indata via ett redigeringsprogram för inmatningsmetoder (IME). | InteractiveObject | |||
Dispatched when the component has finished its construction and has all initialization properties set. | UIComponent | |||
Dispatched when a component is monitored by a Validator and the validation failed. | UIComponent | |||
Skickas när användaren trycker på en tangent. | InteractiveObject | |||
Skickas när användaren försöker att ändra fokuseringen med tangentbordsnavigering. | InteractiveObject | |||
Skickas när användaren släpper upp en tangent. | InteractiveObject | |||
Skickas när en användare trycker ned och släpper upp mittenknappen på sitt pekdon över samma InteractiveObject. | InteractiveObject | |||
Skickas när en användare trycker på pekdonets mittenknapp över en InteractiveObject-instans. | InteractiveObject | |||
Skickas när en användare släpper pekdonets knapp över en InteractiveObject-instans. | InteractiveObject | |||
Skickas när en användare trycker på pekdonets knapp över en InteractiveObject-instans. | InteractiveObject | |||
Dispatched from a component opened using the PopUpManager when the user clicks outside it. | UIComponent | |||
Skickas när användaren försöker att ändra fokuseringen med ett pekdon. | InteractiveObject | |||
Skickas när en användare flyttar pekdonet när det befinner sig över ett InteractiveObject. | InteractiveObject | |||
Skickas när användaren flyttar bort pekdonet från en InteractiveObject-instans. | InteractiveObject | |||
Skickas när användaren flyttar pekdonet över en InteractiveObject-instans. | InteractiveObject | |||
Skickas när en användare släpper pekdonets knapp över en InteractiveObject-instans. | InteractiveObject | |||
Skickas när mushjulet rullas över en InteractiveObject-instans. | InteractiveObject | |||
Dispatched from a component opened using the PopUpManager when the user scrolls the mouse wheel outside it. | UIComponent | |||
Dispatched when the object has moved. | UIComponent | |||
Skickas av drag initiator InteractiveObject när användaren släpper dragrörelsen. | InteractiveObject | |||
Skickas av ett InteractiveObject-målobjekt när ett objekt dras till målobjektet och dragningen har accepterats med ett anrop till DragManager.acceptDragDrop(). | InteractiveObject | |||
Skickas av ett InteractiveObject-objekt när en dragrörelse går in i dess gränser. | InteractiveObject | |||
Skickas av ett InteractiveObject-objekt när en dragrörelse går utanför dess gränser. | InteractiveObject | |||
Skickas kontinuerligt av ett InteractiveObject-objekt när en dragrörelse pågår inom dess gränser. | InteractiveObject | |||
Skickas i början av en dragning av det InteractiveObject-objekt som anges som dragningsinitierare i DragManager.doDrag()-anropet. | InteractiveObject | |||
Skickas under en dragning av det InteractiveObject-objekt som anges som dragningsinitierare i DragManager.doDrag()-anropet. | InteractiveObject | |||
Skickas när användaren aktiverar den plattformsspecifika tangentkombinationen för funktionen Klistra in eller väljer Klistra in på snabbmenyn. | InteractiveObject | |||
Dispatched at the beginning of the component initialization sequence. | UIComponent | |||
Skickas när användaren sänker en aktiv penna förbi skärmens upptäcktströskel. | InteractiveObject | |||
Skickas när användaren lyfter en aktiv penna över skärmens upptäcktströskel. | InteractiveObject | |||
Skickas när användaren flyttar en aktiv penna över skärmen medan den behålls inom skärmens upptäcktströskel. | InteractiveObject | |||
Skickas när användaren flyttar en aktiv penna bort från detta InteractiveObject medan den behålls inom skärmens upptäcktströskel. | InteractiveObject | |||
Skickas när användaren flyttar en aktiv penna direkt över detta InteractiveObject medan den behålls inom skärmens upptäcktströskel. | InteractiveObject | |||
Skickas när användaren flyttar en aktiv penna bort från detta InteractiveObject och något av dess underordnade objekt medan den behålls inom skärmens upptäcktströskel. | InteractiveObject | |||
Skickas när användaren flyttar en aktiv penna över detta InteractiveObject från utsidan av objektets underordnade träd i visningslistan (men stannar kvar inom skärmens upptäcktströskel). | InteractiveObject | |||
Skickas när användaren släpper knappen på pekaren efter att första ha tryckt på den över en InteractiveObject-instans och sedan flyttat pekaren bort från InteractiveObject-instansen. | InteractiveObject | |||
Dispatched when the component is removed from a container as a content child by using the removeChild(), removeChildAt(), removeElement(), or removeElementAt() method. | UIComponent | |||
Skickas när ett visningsobjekt ska tas bort från visningslistan. | DisplayObject | |||
Skickas när ett visningsobjekt ska tas bort från visningslistan, antingen direkt eller genom borttagning av ett underträd som innehåller visningsobjektet. | DisplayObject | |||
[utsändningshändelse] Skickas när visningslistan ska uppdateras och återges. | DisplayObject | |||
Dispatched when the component is resized. | UIComponent | |||
Skickas när en användare trycker ned och släpper upp högerknappen på sitt pekdon över samma InteractiveObject. | InteractiveObject | |||
Skickas när en användare trycker på pekdonets knapp över en InteractiveObject-instans. | InteractiveObject | |||
Skickas när en användare släpper pekdonets knapp över en InteractiveObject-instans. | InteractiveObject | |||
Skickas när användaren flyttar bort pekdonet från en InteractiveObject-instans. | InteractiveObject | |||
Skickas när användaren flyttar pekdonet över en InteractiveObject-instans. | InteractiveObject | |||
Dispatched when the user manually scrolls the container. | Container | |||
Skickas när användaren aktiverar den plattformsspecifika tangentkombinationen för funktionen Markera allt eller väljer Markera allt på snabbmenyn. | InteractiveObject | |||
Dispatched when an object's state changes from invisible to visible. | UIComponent | |||
Skickas omedelbart efter att skärmtangentbordet tas fram (visas). | InteractiveObject | |||
Skickas omedelbart innan skärmtangentbordet tas fram (visas). | InteractiveObject | |||
Skickas omedelbart efter att skärmtangentbordet döljs. | InteractiveObject | |||
Dispatched after the component has entered a new state and any state transition animation to that state has finished playing. | UIComponent | |||
Dispatched when a component interrupts a transition to its current state in order to switch to a new state. | UIComponent | |||
Skickas när värdet på objektets tabChildren-flagga ändras. | InteractiveObject | |||
Skickas när objektets tabEnabled-flagga ändras. | InteractiveObject | |||
Skickas när värdet på objektets tabIndex-egenskap ändras. | InteractiveObject | |||
Skickas när användaren skriver ett eller flera texttecken. | InteractiveObject | |||
Dispatched by the component when it is time to create a ToolTip. | UIComponent | |||
Dispatched by the component when its ToolTip has been hidden and is to be discarded soon. | UIComponent | |||
Dispatched by the component when its ToolTip is about to be hidden. | UIComponent | |||
Dispatched by the component when its ToolTip is about to be shown. | UIComponent | |||
Dispatched by the component when its ToolTip has been shown. | UIComponent | |||
Dispatched by a component whose toolTip property is set, as soon as the user moves the mouse over it. | UIComponent | |||
Skickas när användaren först kontaktar en beröringsaktiverad enhet (som att vidröra en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren avslutar kontakten med en beröringsaktiverad enhet (som att lyfta fingret från en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
A non-cancellable event, dispatched by a component when it is done responding to a touch interaction user gesture. | UIComponent | |||
A non-cancellable event, dispatched by a component when it starts responding to a touch interaction user gesture. | UIComponent | |||
A cancellable event, dispatched by a component in an attempt to respond to a touch interaction user gesture. | UIComponent | |||
Skickas när användaren rör enheten och skickas kontinuerligt tills kontaktpunkten avlägsnas. | InteractiveObject | |||
Skickas när användaren flyttar kontaktpunkten bort från en InteractiveObject-instans på en beröringsaktiverad enhet (som att dra fingret från ett visningsobjekt till ett annat på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren flyttar kontaktpunkten över en InteractiveObject-instans på en beröringsaktiverad enhet (som att dra fingret från en punkt utanför ett visningsobjekt till en punkt över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren flyttar kontaktpunkten bort från en InteractiveObject-instans på en beröringsaktiverad enhet (som att dra fingret från ett visningsobjekt till en punkt utanför visningsobjektet på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren flyttar kontaktpunkten över en InteractiveObject-instans på en beröringsaktiverad enhet (som att dra fingret från en punkt utanför ett visningsobjekt till en punkt över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Skickas när användaren lyfter kontaktpunkten över samma InteractiveObject-instans där kontakten initierades på en beröringsaktiverad enhet (som att trycka med fingret och sedan släppa det vid en enda kontaktpunkt över ett visningsobjekt på en mobiltelefon eller bärbar dator med pekskärm). | InteractiveObject | |||
Dispatched when an object has had its commitProperties(), measure(), and updateDisplayList() methods called (if needed). | UIComponent | |||
Dispatched when a component is monitored by a Validator and the validation succeeded. | UIComponent | |||
Dispatched when values are changed programmatically or by user interaction. | UIComponent |
Format är antingen allmänna eller kopplade till ett visst tema. Om formatet är allmänt kan det användas med alla teman. Om ett format är kopplat till ett visst tema kan det bara användas om programmet använder just det temat.
Format | Beskrivning | Definieras med | ||
---|---|---|---|---|
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 If a background image is specified, this style specifies whether it is fixed with regard to the viewport ( "fixed" ) or scrolls along with the content ("scroll" ). | Container | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The vertical distance in pixels from the top edge of the content area to the control's baseline position. | UIComponent | |||
Typ: Class CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The border skin class of the component. | Container | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Bounding box style. | Container | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The vertical distance, in pixels, from the bottom edge of the component to the bottom edge of its parent container's content area. | UIComponent | |||
Typ: uint Format: Color CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Color of text in the component, including the component label. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 4 Körningsmiljöversioner: Flash10, AIR 1.5 The directionality of the text displayed by the component. | Container | |||
Typ: uint Format: Color CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Color of text in the component if it is disabled. | Container | |||
Typ: Number CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The alpha value for the overlay that is placed on top of the container when it is disabled. | Container | |||
Typ: uint Format: Color CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Color of the component highlight when validation fails. | UIComponent | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Blend mode used by the focus rectangle. | UIComponent | |||
Typ: Class CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Skin used to draw the focus rectangle. | UIComponent | |||
Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Thickness, in pixels, of the focus rectangle outline. | UIComponent | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Sets the antiAliasType property of internal TextFields. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Name of the font to use. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Sets the gridFitType property of internal TextFields that represent text in Flex controls. | Container | |||
Typ: Number CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Sets the sharpness property of internal TextFields that represent text in Flex controls. | Container | |||
Typ: Number Format: Length CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Height of the text, in pixels. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Determines whether the text is italic font. | Container | |||
Typ: Number CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Sets the thickness property of internal TextFields that represent text in Flex controls. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Determines whether the text is boldface. | Container | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Horizontal alignment of children in the container. | LayoutContainer | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The horizontal distance in pixels from the center of the component's content area to the center of the component. | UIComponent | |||
Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Number of pixels between children in the horizontal direction. | LayoutContainer | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The name of the horizontal scrollbar style. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 4.5 Körningsmiljöversioner: Flash10, AIR 2.5 The primary interaction mode for this component. | UIComponent | |||
Typ: Boolean CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 A Boolean value that indicates whether kerning is enabled ( true ) or disabled (false ). | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 4.1 Körningsmiljöversioner: Flash10, AIR 1.5 Specifies the desired layout direction of a component. | UIComponent | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The horizontal distance, in pixels, from the left edge of the component to the left edge of its parent container's content area. | UIComponent | |||
Typ: Number CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The number of additional pixels to appear between each character. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 4 Körningsmiljöversioner: Flash10, AIR 1.5 The locale of the text displayed by this component. | Container | |||
modalTransparency | Typ: Number CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Modality of components launched by the PopUp Manager is simulated by creating a large translucent overlay underneath the component. Because of the way translucent objects are rendered, you may notice a slight dimming of the objects under the overlay. The effective transparency can be set by changing the modalTransparency value from 0.0 (fully transparent)
to 1.0 (fully opaque).
You can also set the color of the overlay by changing the
modalTransparencyColor style.
Standardvärdet är 0.5 . | Application | ||
modalTransparencyBlur | Typ: Number CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The blur applied to the application while a modal window is open. A Blur effect softens the details of an image. Standardvärdet är 3 .Relaterade API-element | Application | ||
modalTransparencyColor | Typ: uint Format: Color CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Color of the modal overlay layer. This style is used in conjunction with the modalTransparency style to determine the colorization
applied to the application when a modal window is open.
Standardvärdet är #DDDDDD . | Application | ||
modalTransparencyDuration | Typ: Number Format: Time CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Duration, in milliseconds, of the modal transparency effect that plays when a modal window opens or closes. Standardvärdet är 100 . | Application | ||
paddingBottom | Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Number of pixels between the application's bottom border and its content area. Standardvärdet är 24 . | Application | ||
Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Number of pixels between the component's left border and the left edge of its content area. | Container | |||
Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Number of pixels between the component's right border and the right edge of its content area. | Container | |||
paddingTop | Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Number of pixels between the application's top border and its content area. Standardvärdet är 24 . | Application | ||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The horizontal distance, in pixels, from the right edge of the component to the right edge of its parent container's content area. | UIComponent | |||
Typ: Boolean CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 4.5 Körningsmiljöversioner: Flash10, AIR 1.5 Show the error border or skin when this component is invalid | UIComponent | |||
Typ: Boolean CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 4.5 Körningsmiljöversioner: Flash10, AIR 1.5 Show the error tip when this component is invalid and the user rolls over it | UIComponent | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Alignment of text within a container. | Container | |||
Typ: String CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Determines whether the text is underlined. | Container | |||
Typ: Class CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 4 Körningsmiljöversioner: Flash10, AIR 1.5 The class implementing IUITextField that is used by this component to render text. | Container | |||
Typ: Number Format: Length CSS-arv: Ja Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Offset of first line of text from the left side of the container, in pixels. | Container | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The vertical distance, in pixels, from the top edge of the component to the top edge of its parent container's content area. | UIComponent | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Vertical alignment of children in the container. | LayoutContainer | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The vertical distance in pixels from the center of the component's content area to the center of the component. | UIComponent | |||
Typ: Number Format: Length CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Number of pixels between children in the vertical direction. | LayoutContainer | |||
Typ: String CSS-arv: Nej Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 The name of the vertical scrollbar style. | Container |
Format | Beskrivning | Definieras med | ||
---|---|---|---|---|
Typ: Number CSS-arv: Nej Tema: halo, spark Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Alpha level of the color defined by the backgroundColor property, of the image or SWF file defined by the backgroundImage style. | Container | |||
Typ: uint Format: Color CSS-arv: Nej Tema: halo, spark Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Background color of a component. | Container | |||
Typ: uint Format: Color CSS-arv: Ja Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Background color of the component when it is disabled. | Container | |||
backgroundGradientAlphas | Typ: Array CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Specifies the alpha transparency values used for the background gradient fill of the application. You should set this to an Array of two numbers. Elements 0 and 1 specify the start and end values for an alpha gradient. Standardvärdet är [ 1.0, 1.0 ] . | Application | ||
backgroundGradientColors | Typ: Array Format: Color CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Specifies the colors used to tint the background gradient fill of the application. You should set this to an Array of two uint values that specify RGB colors. Elements 0 and 1 specify the start and end values for a color gradient. For a solid-color background, set the same color value for elements 0 and 1. A value of undefined means background gradient is generated
based on the backgroundColor property.
Standardvärdet är undefined . | Application | ||
Typ: Object Format: File CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Background image of a component. | Container | |||
Typ: String CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Scales the image specified by backgroundImage to different percentage sizes. | Container | |||
Typ: uint Format: Color CSS-arv: Ja Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Determines the color of a ProgressBar. | Container | |||
Typ: uint Format: Color CSS-arv: Nej Tema: halo, spark Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Color of the border. | Container | |||
Typ: String CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Bounding box sides. | Container | |||
Typ: Number Format: Length CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Bounding box thickness. | Container | |||
Typ: Number Format: Length CSS-arv: Nej Tema: halo, spark Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Radius of component corners. | Container | |||
Typ: uint Format: Color CSS-arv: Ja Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Color of the drop shadow. | Container | |||
Typ: Boolean CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Boolean property that specifies whether the component has a visible drop shadow. | Container | |||
Typ: String CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Direction of the drop shadow. | Container | |||
Typ: Number Format: Length CSS-arv: Nej Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Distance of the drop shadow. | Container | |||
Typ: uint Format: Color CSS-arv: Ja Tema: halo Språkversion: ActionScript 3.0 Produktversion: Flex 3 Körningsmiljöversioner: Flash9, AIR 1.1 Theme color of a component. | UIComponent |
application | egenskap |
application:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A reference to the top-level application.
In general, there can be a hierarchy of Application objects,
because an Application can use a SWFLoader control to dynamically
load another Application.
The parentApplication
property of a UIComponent can be
used to access the sub-Application in which that UIComponent lives,
and to walk up the hierarchy to the top-level Application.
This property has been deprecated starting in Flex4. Note that this property will still return applications of type mx.core.Application and mx.core.WindowedApplication as in previous versions. Starting in Flex 4 it will also return applications of type spark.components.Application or spark.components.WindowedApplication.
Implementering
public static function get application():Object
controlBar | egenskap |
public var controlBar:IUIComponent
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The ApplicationControlBar for this Application.
Standardvärdet är null.
Relaterade API-element
frameRate | egenskap |
public var frameRate:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the frame rate of the application.
Note: This property cannot be set by ActionScript code; it must be set in MXML code.
Standardvärdet är 24.
historyManagementEnabled | egenskap |
public var historyManagementEnabled:Boolean = true
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
If false
, the history manager will be disabled.
Setting to false is recommended when using the BrowserManager.
Standardvärdet är true.
pageTitle | egenskap |
public var pageTitle:String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies a string that appears in the title bar of the browser.
This property provides the same functionality as the
HTML <title>
tag.
Note: This property cannot be set by ActionScript code; it must be set in MXML code. The value set in MXML code is designed to be used by a tool to update the HTML templates provided with the SDK.
Standardvärdet är "".
parameters | egenskap |
parameters:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The parameters property returns an Object containing name-value pairs representing the parameters provided to this Application.
You can use a for-in loop to extract all the names and values from the parameters Object.
There are two sources of parameters: the query string of the Application's URL, and the value of the FlashVars HTML parameter (this affects only the main Application).
Implementering
public function get parameters():Object
preloader | egenskap |
public var preloader:Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The application container supports an application preloader that uses a download progress bar to show the download and initialization progress of an application SWF file. By default, the application preloader is enabled. The preloader tracks how many bytes have been downloaded and continually updates the progress bar.
Use this property to specify the path of a component that defines a custom progress indicator. To create a custom progress indicator, you typically create a subclass of the DownloadProgressBar class, or create a subclass of the flash.display.Sprite class that implements the mx.preloaders.IPreloaderDisplay interface.
Note: This property cannot be set by ActionScript code; it must be set in MXML code.
Relaterade API-element
preloaderChromeColor | egenskap |
public var preloaderChromeColor:uint
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Specifies the base color used by the default preloader component. This property
has the same effect as the chromeColor
style used by the Spark skins.
Typically this property should be set to the same value as the chromeColor
style used by the application.
Note: This property cannot be set by ActionScript code; it must be set in MXML code.
resetHistory | egenskap |
public var resetHistory:Boolean = true
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
If true
, the application's history state is reset
to its initial state whenever the application is reloaded.
Applications are reloaded when any of the following occurs:
- The user clicks the browser's Refresh button.
- The user navigates to another web page, and then clicks the browser's Back button to return to the Flex application.
- The user loads a Flex application from the browser's Favorites or Bookmarks menu.
Standardvärdet är true.
scriptRecursionLimit | egenskap |
public var scriptRecursionLimit:int
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the maximum depth of Flash Player or AIR call stack before the player stops. This is essentially the stack overflow limit.
Note: This property cannot be set by ActionScript code; it must be set in MXML code.
Standardvärdet är 1000.
scriptTimeLimit | egenskap |
public var scriptTimeLimit:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the maximum duration, in seconds, that an ActionScript event handler can execute before Flash Player or AIR assumes that it is hung, and aborts it. The maximum allowable value that you can set is 60 seconds.
Standardvärdet är 60.
url | egenskap |
usePreloader | egenskap |
public var usePreloader:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
If true
, specifies to display the application preloader.
Note: This property cannot be set by ActionScript code; it must be set in MXML code.
Standardvärdet är true.
viewSourceURL | egenskap |
viewSourceURL:String
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
URL where the application's source can be viewed. Setting this
property inserts a "View Source" menu item into the application's
default context menu. Selecting the menu item opens the
viewSourceURL
in a new window.
You must set the viewSourceURL
property
using MXML, not using ActionScript, as the following example shows:
<mx:Application viewSourceURL="http://path/to/source"> ... </mx:Application>
Implementering
public function get viewSourceURL():String
public function set viewSourceURL(value:String):void
Application | () | Konstruktor |
public function Application()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
addToCreationQueue | () | metod |
public function addToCreationQueue(id:Object, preferredIndex:int = -1, callbackFunc:Function = null, parent:IFlexDisplayObject = null):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Add a container to the Application's creation queue.
Use this mechanism to instantiate and draw the contents
of a container in an ordered manner.
The container should have the creationPolicy
property
set to "none"
prior to calling this function.
Parametrar
id:Object — The id of the container to add to the queue or a
pointer to the container itself
| |
preferredIndex:int (default = -1 ) — (optional) A positive integer that determines
the container's position in the queue relative to the other
containers presently in the queue.
| |
callbackFunc:Function (default = null ) — This parameter is ignored.
| |
parent:IFlexDisplayObject (default = null ) — This parameter is ignored.
|
applicationComplete | Händelse |
mx.events.FlexEvent
egenskap FlexEvent.type =
mx.events.FlexEvent.APPLICATION_COMPLETE
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched after the Application has been initialized, processed by the LayoutManager, and attached to the display list.
TheFlexEvent.APPLICATION_COMPLETE
constant defines the value of the
type
property of the event object for a applicationComplete
event.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
cancelable | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
target | The Object that dispatched the event;
it is not always the Object listening for the event.
Use the currentTarget property to always access the
Object listening for the event. |
error | Händelse |
flash.events.ErrorEvent
egenskap ErrorEvent.type =
flash.events.ErrorEvent.ERROR
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Dispatched when an HTTPService call fails.
Definierar värdet för etterror
-händelseobjekts type
-egenskap.
Den här händelsen har följande egenskaper:
Egenskap | Värde |
---|---|
bubbles | false |
cancelable | false ; det finns inget standardbeteende att avbryta. |
currentTarget | Det objekt som aktivt behandlar Event-objektet med en händelseavlyssnare. |
target | Objektet är med om ett nätverksfel. |
text | Text som visas som felmeddelande. |
<?xml version="1.0" encoding="utf-8"?> <!-- Simple example to demonstrate the Halo Application container. --> <mx:Application name="SimpleApplicationExample" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="0xCCCCCC" horizontalAlign="center" verticalAlign="middle" applicationComplete="appComplete();"> <fx:Script> <![CDATA[ // Event handlers for the components. private function appComplete():void { myTA.text += "Application creation complete" + "\n"; } private function panelCreationComplete():void { myTA.text += "Panel creation complete" + "\n"; } private function textAreaCreationComplete():void { myTA.text += "\n" + "TextArea creation complete" + "\n"; } ]]> </fx:Script> <mx:ApplicationControlBar dock="true"> <s:Button label="Set Grey Background" click="this.setStyle('backgroundColor',0xCCCCCC);"/> <s:Button label="Set Blue Background" click="this.setStyle('backgroundColor', 0x66CCFF);"/> </mx:ApplicationControlBar> <s:Panel title="Application Container Example" contentBackgroundColor="0x9CB0BA" width="75%" height="75%" creationComplete="panelCreationComplete();"> <s:TextArea id="myTA" height="100%" width="100%" text="Event order: " creationComplete="textAreaCreationComplete();"/> </s:Panel> </mx:Application>
Tue Jun 12 2018, 01:40 PM Z