Make Group container the child of the Scroller component : Group « Container « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Container » GroupScreenshots 
Make Group container the child of the Scroller component
Make Group container the child of the Scroller component
           


<!--
Code from Flex Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1proper attribution to Adobe is given as the owner of the user guide; and 
  (2any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->



<!-- containers\spark\SparkScrollBorderOuter.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:Scroller width="100" height="100">
        <s:Group>
            <s:BorderContainer borderWeight="3" borderStyle="solid">
                <mx:Image width="300" height="400"
                    source="@Embed(source='a.jpg')" />
            </s:BorderContainer>
        </s:Group>
    </s:Scroller>
</s:Application>

   
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Using multiple containers for more complex layouts
2.Using an HGroup inside of a panel to add a margin from edge
3.Use HGroup to layout Label, CheckBoxesUse HGroup to layout Label, CheckBoxes
4.Contain an HGroup (horizontal group) containerContain an HGroup (horizontal group) container
5.Spark HGroup ContainerSpark HGroup Container
6.Three images in an HGroup container.Three images in an HGroup container.
7.Creates a Button control inside the HGroup containerCreates a Button control inside the HGroup container
8.Spark Group Container Row HeightSpark Group Container Row Height
9.Use VGroup containerUse VGroup container
10.Force the VGroup containers to be included in the test script's hierarchyForce the VGroup containers to be included in the test script's hierarchy
11.Color property for a VGroup control is blue.Color property for a VGroup control is blue.
12.Group element add eventGroup element add event
13.Use a Spark Group container with three child controls, where the Group container lays out its children verticallyUse a Spark Group container with three child controls, where the Group container lays out its children vertically
14.Show a Spark Group container that contains a child Image controlShow a Spark Group container that contains a child Image control
15.Add scroll bars to the Spark Group container by wrapping the container in the Scroller componentAdd scroll bars to the Spark Group container by wrapping the container in the Scroller component
16.Add element to Group with ActionScriptAdd element to Group with ActionScript
17.Set default vertical alignment of top for HorizontalLayout to align the children of a Group container to container bottomSet default vertical alignment of top for HorizontalLayout to align the children of a Group container to container bottom
18.Group container myGroup is the viewport for this scrollerGroup container myGroup is the viewport for this scroller
19.Controlling layout using view states groupsControlling layout using view states groups
20.Create a Group container with an Button controlCreate a Group container with an Button control
21.A Group container with four Button controls as its children:A Group container with four Button controls as its children:
22.containers Viewport Setcontainers Viewport Set
23.Grouping Graphic objects togetherGrouping Graphic objects together
24.Set rowHeight property to a pixel value large enough for all the childrenSet rowHeight property to a pixel value large enough for all the children
25.Group ButtonsGroup Buttons
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.