Canvas Reposition : Canvas « Components « 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 » Components » CanvasScreenshots 
Canvas Reposition
Canvas Reposition
          

<!--
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\layouts\CanvasRepos.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">
    <mx:Canvas width="300" height="185" backgroundColor="#FFFFFF">
        <mx:TextInput id="text1" text="Move me" x="10" y="10" />
        <mx:Button id="button1" label="Move text1" x="10" y="150"
            click="text1.x=110; text1.y=110;" />
        <mx:Button label="Reset" click="text1.x=10; text1.y=10;" x="111"
            y="150" />
    </mx:Canvas>
</s:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Scroll ticker symbols across the screen and lets users adjust the speed with an HSlider controlScroll ticker symbols across the screen and lets users adjust the speed with an HSlider control
2.Put Button into a CanvasPut Button into a Canvas
3.Use Canvas to wrap ButtonsUse Canvas to wrap Buttons
4.Set vertical center and horizontal center for Button inside a CanvasSet vertical center and horizontal center for Button inside a Canvas
5.uses constraint rows and constraint columns to position three Button controls in a Canvas container:uses constraint rows and constraint columns to position three Button controls in a Canvas container:
6.Use Canvas to hold controlsUse Canvas to hold controls
7.A Canvas container with two vertical regions and two horizontal regions
8.A single constraint column that occupies 20% of the Canvas area
9.Canvas background color whiteCanvas background color white
10.Creating a Canvas container by using constraint-based layoutCreating a Canvas container by using constraint-based layout
11.Use a semitransparent Canvas container to highlight the data pointUse a semitransparent Canvas container to highlight the data point
12.Canvas containerCanvas container
13.Change Canvas cornerRadius and borderStyleChange Canvas cornerRadius and borderStyle
14.Canvas border style solidCanvas border style solid
15.Add style name to CanvasAdd style name to Canvas
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.