Package | spark.components |
Class | public class ActionBar |
Inheritance | ActionBar ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | AIR 2.5 |
The ActionBar control defines three distinct areas:
- Navigation area
Contains components that let the user navigate the section. For example, you can define a home button in the navigation area. Use the
navigationContent
property to define the components that appear in the navigation area. Use thenavigationLayout
property to define the layout of the navigation area. - Title area
Contains either a String containing title text, or components. If you specify components, you cannot specify a title String. Use the
title
property to specify the String to appear in the title area. Use thetitleContent
property to define the components that appear in the title area. Use thetitleLayout
property to define the layout of the title area. If you specify a value for thetitleContent
property, the ActionBar skin ignores thetitle
property. - Action area
Contains components that define actions the user can take in a view. For example, you might define a search or refresh button as part of the action area. Use the
actionContent
property to define the components that appear in the action area. Use theactionLayout
property to define the layout of the action area.
The following image shows the ActionBar with a home button in the navigation area, a text input control in the title area, and a search button in the action area:
For a mobile application with a single section, meaning a single ViewNavigator container, all views share the same action bar. For a mobile application with multiple sections, meaning one with multiple ViewNavigator containers, each section defines its own action bar.
MXML Syntax
The <s:ActionBar>
tag inherits all of the tag
attributes of its superclass and adds the following tag attributes:
<s:ActionBar Properties actionContent="null" actionLayout="HorizontalLayout" navigationContent="null" navigationLayout="HorizontalLayout" title="" titleContent="null" titleLayout="HorizontalLayout" Common Styles color="Theme dependent" fontFamily="Theme dependent" fontSize="Theme dependent" fontStyle="normal" fontWeight="normal" leading="0" letterSpacing="0" textAlign="center" textDecoration="none" textIndent="0" Mobile Styles accentColor="0x0099FF" backgroundAlpha="1.0" color="Theme dependent" contentBackgroundAlpha="1.0" contentBackgroundColor="0xFFFFFF" focusColor="0x70B2EE" textShadowAlpha="0.55" textShadowColor="0xFFFFFF" titleAlign="center" >
More examples
Define navigation, title, and action controls in a mobile application
Configure the ActionBar control
Related API Elements
ViewNavigator
View
ViewNavigatorApplication
spark.skins.mobile.ActionBarSkin
Property | Defined By | ||
---|---|---|---|
![]() | accessibilityImplementation : AccessibilityImplementation
The current accessibility implementation (AccessibilityImplementation)
for this InteractiveObject instance. | InteractiveObject | |
![]() | accessibilityProperties : AccessibilityProperties
The current accessibility options for this display object. | DisplayObject | |
![]() | alpha : Number
Indicates the alpha transparency value of the object specified. | DisplayObject | |
![]() | blendMode : String
A value from the BlendMode class that specifies which blend mode to use. | DisplayObject | |
![]() | blendShader : Shader [write-only]
Sets a shader that is used for blending the foreground and background. | DisplayObject | |
![]() | buttonMode : Boolean
Specifies the button mode of this sprite. | Sprite | |
![]() | cacheAsBitmap : Boolean
If set to true, Flash runtimes cache an internal bitmap representation of the
display object. | DisplayObject | |
![]() | cacheAsBitmapMatrix : Matrix
If non-null, this Matrix object defines how a display object is rendered when
cacheAsBitmap is set to true. | DisplayObject | |
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | |
![]() | contextMenu : NativeMenu
Specifies the context menu associated with this object. | InteractiveObject | |
![]() | dropTarget : DisplayObject [read-only]
Specifies the display object over which the sprite is being dragged, or on
which the sprite was dropped. | Sprite | |
![]() | filters : Array
An indexed array that contains each filter object currently associated with the display object. | DisplayObject | |
![]() | focusRect : Object
Specifies whether this object displays a focus rectangle. | InteractiveObject | |
![]() | graphics : Graphics [read-only]
Specifies the Graphics object that belongs to this sprite where vector
drawing commands can occur. | Sprite | |
![]() | hitArea : Sprite
Designates another sprite to serve as the hit area for a sprite. | Sprite | |
![]() | loaderInfo : LoaderInfo [read-only]
Returns a LoaderInfo object containing information about loading the file
to which this display object belongs. | DisplayObject | |
![]() | mask : DisplayObject
The calling display object is masked by the specified mask object. | DisplayObject | |
![]() | metaData : Object
Obtains the meta data object of the DisplayObject instance if meta data was stored alongside the
the instance of this DisplayObject in the SWF file through a PlaceObject4 tag. | DisplayObject | |
![]() | mouseChildren : Boolean
Determines whether or not the children of the object are mouse, or user input device, enabled. | DisplayObjectContainer | |
![]() | mouseEnabled : Boolean
Specifies whether this object receives mouse, or other user input, messages. | InteractiveObject | |
![]() | mouseX : Number [read-only]
Indicates the x coordinate of the mouse or user input device position, in pixels. | DisplayObject | |
![]() | mouseY : Number [read-only]
Indicates the y coordinate of the mouse or user input device position, in pixels. | DisplayObject | |
![]() | name : String
Indicates the instance name of the DisplayObject. | DisplayObject | |
![]() | needsSoftKeyboard : Boolean
Specifies whether a virtual keyboard (an on-screen, software keyboard) should display
when this InteractiveObject instance receives focus. | InteractiveObject | |
![]() | opaqueBackground : Object
Specifies whether the display object is opaque with a certain background color. | DisplayObject | |
![]() | root : DisplayObject [read-only]
For a display object in a loaded SWF file, the root property is the
top-most display object in the portion of the display list's tree structure represented by that SWF file. | DisplayObject | |
![]() | scale9Grid : Rectangle
The current scaling grid that is in effect. | DisplayObject | |
![]() | scrollRect : Rectangle
The scroll rectangle bounds of the display object. | DisplayObject | |
![]() | softKeyboard : String
Controls the appearance of the soft keyboard. | InteractiveObject | |
![]() | softKeyboardInputAreaOfInterest : Rectangle
Defines the area that should remain on-screen when a soft keyboard is displayed (not available on iOS). | InteractiveObject | |
![]() | soundTransform : flash.media:SoundTransform
Controls sound within this sprite. | Sprite | |
![]() | stage : Stage [read-only]
The Stage of the display object. | DisplayObject | |
![]() | tabChildren : Boolean
Determines whether the children of the object are tab enabled. | DisplayObjectContainer | |
![]() | tabEnabled : Boolean
Specifies whether this object is in the tab order. | InteractiveObject | |
![]() | tabIndex : int
Specifies the tab ordering of objects in a SWF file. | InteractiveObject | |
![]() | textSnapshot : flash.text:TextSnapshot [read-only]
Returns a TextSnapshot object for this DisplayObjectContainer instance. | DisplayObjectContainer | |
![]() | useHandCursor : Boolean
A Boolean value that indicates whether the pointing hand (hand cursor) appears when the pointer rolls
over a sprite in which the buttonMode property is set to true. | Sprite |
Method | Defined By | ||
---|---|---|---|
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | |
![]() |
Indicates whether the security restrictions
would cause any display objects to be omitted from the list returned by calling
the DisplayObjectContainer.getObjectsUnderPoint() method
with the specified point point. | DisplayObjectContainer | |
![]() |
Determines whether the specified display object is a child of the DisplayObjectContainer instance or
the instance itself. | DisplayObjectContainer | |
![]() |
Returns a rectangle that defines the area of the display object relative to the coordinate system
of the targetCoordinateSpace object. | DisplayObject | |
![]() |
Returns the child display object that exists with the specified name. | DisplayObjectContainer | |
![]() |
Returns an array of objects that lie under the specified point and are children
(or grandchildren, and so on) of this DisplayObjectContainer instance. | DisplayObjectContainer | |
![]() |
Returns a rectangle that defines the boundary of the display object,
based on the coordinate system defined by the targetCoordinateSpace
parameter, excluding any strokes on shapes. | DisplayObject | |
![]() |
Converts the point object from the Stage (global) coordinates
to the display object's (local) coordinates. | DisplayObject | |
![]() |
Converts a two-dimensional point from the Stage (global) coordinates to a
three-dimensional display object's (local) coordinates. | DisplayObject | |
![]() |
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | |
![]() |
Indicates whether an object has a specified property defined. | Object | |
![]() |
Evaluates the bounding box of the display object to see if it overlaps or intersects with the
bounding box of the obj display object. | DisplayObject | |
![]() |
Evaluates the display object to see if it overlaps or intersects with the
point specified by the x and y parameters. | DisplayObject | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | |
![]() |
Converts a three-dimensional point of the three-dimensional display
object's (local) coordinates to a two-dimensional point in the Stage (global) coordinates. | DisplayObject | |
![]() |
Converts the point object from the display object's (local) coordinates to the
Stage (global) coordinates. | DisplayObject | |
![]() |
Indicates whether the specified property exists and is enumerable. | Object | |
![]() |
Removes all child DisplayObject instances from the child list of the DisplayObjectContainer instance. | DisplayObjectContainer | |
![]() |
Removes a listener from the EventDispatcher object. | EventDispatcher | |
![]() |
Raises a virtual keyboard. | InteractiveObject | |
![]() |
Sets the availability of a dynamic property for loop operations. | Object | |
![]() |
Lets the user drag the specified sprite. | Sprite | |
![]() |
Lets the user drag the specified sprite on a touch-enabled device. | Sprite | |
![]() |
Recursively stops the timeline execution of all MovieClips rooted at this object. | DisplayObjectContainer | |
![]() |
Ends the startDrag() method. | Sprite | |
![]() |
Ends the startTouchDrag() method, for use with touch-enabled devices. | Sprite | |
![]() |
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | |
![]() |
Returns the primitive value of the specified object. | Object | |
![]() |
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Styles are either common or associated with a specific theme. If the style is common, it can be used with any theme. If a style is associated with a specific theme, it can only be used if your application uses that theme.
Style | Description | Defined By | ||
---|---|---|---|---|
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: Flash9, AIR 1.1 The vertical distance in pixels from the top edge of the content area to the control's baseline position. | UIComponent | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: 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 | ||
color | Type: uint Format: Color CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Color of text in the component, including the component label. The default value for the Halo theme is 0x0B333C .
The default value for the Spark theme is 0x000000 .
The default value for the Mobile theme is 0xFFFFFF .
| ActionBar | ||
![]() | Type: uint Format: Color CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: Flash9, AIR 1.1 Color of the component highlight when validation fails. | UIComponent | ||
![]() | Type: Class Language Version: ActionScript 3.0 Product Version: Flex 4 Runtime Versions: Flash10, AIR 1.5 Name of the skin class to use for this component when a validation error occurs. | SkinnableComponent | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: Flash9, AIR 1.1 Blend mode used by the focus rectangle. | UIComponent | ||
![]() | Type: Class CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: Flash9, AIR 1.1 Skin used to draw the focus rectangle. | UIComponent | ||
![]() | Type: Number Format: Length CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: Flash9, AIR 1.1 Thickness, in pixels, of the focus rectangle outline. | UIComponent | ||
fontFamily | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Name of the font to use. Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default font for the Halo theme is "Verdana" .
The default font for the Spark theme is "Arial" .
The default font for the Mobile theme is "_sans" .
| ActionBar | ||
fontSize | Type: Number Format: Length CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Height of the text, in pixels. In the Halo theme, the default value is 10 for all controls except the ColorPicker control. For the Halo themed ColorPicker control, the default value is 11. In the Spark theme, the default value is 12 for all controls except the ColorPicker control. For the Spark themed ColorPicker control, the default value is 11. The default value for the Mobile theme is 24. | ActionBar | ||
fontStyle | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Determines whether the text is italic font. Recognized values are "normal" and "italic" .
The default value is "normal" . | ActionBar | ||
fontWeight | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Determines whether the text is boldface. Recognized values are normal and bold .
The default value for Button controls is bold .
The default value for all other controls is normal .
| ActionBar | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: 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 | ||
![]() | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: Flash10, AIR 2.5 The primary interaction mode for this component. | UIComponent | ||
![]() | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.1 Runtime Versions: Flash10, AIR 1.5 Specifies the desired layout direction of a component. | UIComponent | ||
leading | Type: Number Format: Length CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Additional vertical space between lines of text. The default value is 0. | ActionBar | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: 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 | ||
letterSpacing | Type: Number CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, The number of additional pixels to appear between each character. A positive value increases the character spacing beyond the normal spacing, while a negative value decreases it. The default value is 0 . | ActionBar | ||
paddingBottom | Type: Number Format: Length CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Number of pixels between the bottom border and all content groups. The default value is 0 . | ActionBar | ||
paddingLeft | Type: Number Format: Length CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Number of pixels between the left border and the navigationGroup. The default value is 0 . | ActionBar | ||
paddingRight | Type: Number Format: Length CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Number of pixels between the left border and the actionGroup. The default value is 0 . | ActionBar | ||
paddingTop | Type: Number Format: Length CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Number of pixels between the top border and all content groups. The default value is 0 . | ActionBar | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: 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 | ||
![]() | Type: Boolean CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: Flash10, AIR 1.5 Show the error border or skin when this component is invalid | UIComponent | ||
![]() | Type: Boolean CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: Flash10, AIR 1.5 Show the error tip when this component is invalid and the user rolls over it | UIComponent | ||
![]() | Type: Class Language Version: ActionScript 3.0 Product Version: Flex 4 Runtime Versions: Flash10, AIR 1.5 Name of the skin class to use for this component. | SkinnableComponent | ||
textAlign | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Alignment of text within a container. Possible values are "left" , "right" ,
or "center" .
The default value for most components is | ActionBar | ||
textDecoration | Type: String CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Determines whether the text is underlined. Possible values are "none" and "underline" .
The default value is "none" . | ActionBar | ||
textIndent | Type: Number Format: Length CSS Inheritance: Yes Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Offset of first line of text from the left side of the container, in pixels. This property cannot be a negative number when used with the mobile theme. The default value is 0 . | ActionBar | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: 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 | ||
![]() | Type: String CSS Inheritance: No Language Version: ActionScript 3.0 Product Version: Flex 3 Runtime Versions: 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 |
Style | Description | Defined By | ||
---|---|---|---|---|
accentColor | Type: uint Format: Color CSS Inheritance: Yes Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Accent color used by component skins. The default button skin uses this color to tint the background. Slider track highlighting uses this color. The default value is 0x0099FF . | ActionBar | ||
backgroundAlpha | Type: Number CSS Inheritance: No Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Alpha level of the background for this component. Valid values range from 0.0 to 1.0. The default value is 1.0 . | ActionBar | ||
![]() | Type: uint Format: Color CSS Inheritance: Yes Theme: spark, mobile Language Version: ActionScript 3.0 Product Version: Flex 4 Runtime Versions: Flash10, AIR 1.5 The main color for a component. | SkinnableComponent | ||
contentBackgroundAlpha | Type: Number CSS Inheritance: Yes Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, The alpha of the content background for this component. The default value is 1.0 . | ActionBar | ||
contentBackgroundColor | Type: uint Format: Color CSS Inheritance: Yes Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, The color of the content background for this component. For a List, changing The default value for the Spark theme is | ActionBar | ||
defaultButtonAppearance | Type: String CSS Inheritance: No Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Appearance of buttons in navigation and action groups. Valid MXML values are normal and beveled
In ActionScript, you can use the following constants
to set this property:
ActionBarDefaultButtonAppearance.NORMAL . | ActionBar | ||
focusColor | Type: uint Format: Color CSS Inheritance: Yes Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Color of focus ring when the component is in focus. The default value is 0x70B2EE . | ActionBar | ||
textShadowAlpha | Type: Number CSS Inheritance: Yes Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4 Runtime Versions: AIR1.5, Alpha of text shadows. The default value is 0.55 . | ActionBar | ||
textShadowColor | Type: uint Format: Color CSS Inheritance: Yes Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4 Runtime Versions: AIR1.5, Color of text shadows. The default value is 0xFFFFFF . | ActionBar | ||
titleAlign | Type: String CSS Inheritance: No Theme: mobile Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, Alignment of the title relative to the ActionBar dimensions. Possible values are "left" , "right" ,
and "center" .
The default value is "center" . | ActionBar |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
Skin Part | Description | Defined By | ||
---|---|---|---|---|
actionGroup:Group | Required: false Part Type: Static Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, The skin part that defines the appearance of the action area of the component. By default, the ActionBarSkin class defines the action area to appear to the right of the title area. | ActionBar | ||
navigationGroup:Group | Required: false Part Type: Static Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, The skin part that defines the appearance of the navigation area of the component. By default, the ActionBarSkin class defines the navigation area to appear to the left of the title area. | ActionBar | ||
titleDisplay:IDisplayText | Required: false Part Type: Static Language Version: ActionScript 3.0 Product Version: Flex 4 Runtime Versions: AIR2.5, The skin part that defines the appearance of the title text in the component. You can use CSS to declare styles on the ActionBar's titleDisplay skin part, as the following example shows: @namespace s "library://ns.adobe.com/flex/spark"; s|ActionBar #titleDisplay { color:red; } | ActionBar | ||
titleGroup:Group | Required: false Part Type: Static Language Version: ActionScript 3.0 Product Version: Flex 4.5 Runtime Versions: AIR2.5, The skin part that defines the appearance of the title area of the component. By default, the ActionBarSkin class defines the title area to appear between the navigation and action areas. | ActionBar |
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <fx:Style> <!-- Stying ActionBar --> @namespace s "library://ns.adobe.com/flex/spark"; s|ActionBar{ chromeColor:blue; } </fx:Style> <!-- Defining ActionBar as a child component --> <s:Panel> <s:ActionBar width="100%" title="Title"> <s:actionContent> <s:Button label="Search"/> </s:actionContent> <s:navigationContent> <s:Button label="Home"/> </s:navigationContent> </s:ActionBar> </s:Panel> </s:Application>
<?xml version="1.0" encoding="utf-8"?> <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <!-- Defining Home button for all views --> <s:Panel> <s:navigationContent> <s:Button label="Home" click="navigator.popToFirstView()"/> </s:navigationContent> </s:Panel> </s:ViewNavigatorApplication>
<?xml version="1.0" encoding="utf-8"?> <!--Defining ActionBar in a View--> <s:Panel> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"> <s:titleContent> <s:TextInput width="100%"/> </s:titleContent> <s:actionContent> <s:Button label="Search" click="navigator.pushView (views.ActionBarExampleHomeView, null, null, null)"/> </s:actionContent> <s:navigationContent> <s:Button label="Home" click="navigator.popToFirstView()" /> </s:navigationContent> </s:View> </s:Panel>
Wed Nov 21 2018, 06:34 AM -08:00