Using a negative value in the x property to hide a component off screen : Layout « Container « Flex






Using a negative value in the x property to hide a component off screen

Using a negative value in the x property to hide a component off screen
      

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Button id="button1" label="Show the other button" x="120" y="50" click="button2.x=155;" />
    <mx:Button id="button2" label="Hello!" x="-100" y="80" />

</mx:Application>

   
    
    
    
    
    
  








Related examples in the same category

1.In absolute layout, the container doesn't arranging its childrenIn absolute layout, the container doesn't arranging its children
2.Positioning a button 5 pixels from the bottom-right corner of a windowPositioning a button 5 pixels from the bottom-right corner of a window
3.Using two constraint columns to align a pair of buttonsUsing two constraint columns to align a pair of buttons
4.Add Label and Button to a Panel with absolute layoutAdd Label and Button to a Panel with absolute layout
5.Places a Button in an Application with an absolute layoutPlaces a Button in an Application with an absolute layout
6.A group container uses the VerticalLayout class to lay out four Button controls.A group container uses the VerticalLayout class to lay out four Button controls.
7.Use typicalLayoutElement property to tell container to use the third button to determine height of all container childrenUse typicalLayoutElement property to tell container to use the third button to determine height of all container children
8.VerticalLayout horizontal AlignVerticalLayout horizontal Align
9.VerticalLayout GroupVerticalLayout Group
10.Position Children by Using Layout ManagementPosition Children by Using Layout Management
11.Use Constraint-Based Layout for ContainersUse Constraint-Based Layout for Containers
12.Create and Control Resizable ContainersCreate and Control Resizable Containers
13.Scroll to a Specific Child in a ContainerScroll to a Specific Child in a Container
14.Remove control from parentRemove control from parent
15.Control the Visibility and Layout of ChildrenControl the Visibility and Layout of Children
16.Set the component sizes to 300 by 40 pixelsSet the component sizes to 300 by 40 pixels
17.Setting container size and its childSetting container size and its child
18.Change percentage values to 50% and 40%, respectivelyChange percentage values to 50% and 40%, respectively
19.Using percentage-based children with absolute positioningUsing percentage-based children with absolute positioning
20.Using minimum or maximum dimensionsUsing minimum or maximum dimensions
21.Use minWidth, minHeight, maxWidth, and maxHeight properties with a percentage-based component to constrain its size.Use minWidth, minHeight, maxWidth, and maxHeight properties with a percentage-based component to constrain its size.
22.The rows occupy 80% and 20% of the Canvas container's height from top to bottom, respectively.
23.A single constraint column that occupies 20% of the Canvas width; 80% of the container is unallocated:
24.Define the constraint rows and columns by using percentages.Define the constraint rows and columns by using percentages.
25.Left and right contraintsLeft and right contraints
26.Get childrenGet children
27.Absolute layout controlsAbsolute layout controls
28.Change child indexChange child index
29.Set tab index for controlsSet tab index for controls
30.horizontal layouthorizontal layout
31.Dynamically Change the Child Depth in the LayoutDynamically Change the Child Depth in the Layout