Feeds:
Posts
Comments

Archive for the ‘Flex’ Category

AFPS_banners_for_others5
Advertisements

Read Full Post »

override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void {

var hGap:int = ( width – ( numChildren * getChildAt( i ).width + 10 ) ) / ( numChildren – 1 );

for( var i:int = 1; i < numChildren; i++ ){

getChildAt( i ).x = getChildAt( i – 1 ).x + getChildAt( i – 1 ).width + hGap;

}

super.updateDisplayList( unscaledWidth, unscaledHeight );

}

Read Full Post »

http://weblog.mrinalwadhwa.com/2010/01/24/an-introduction-to-rich-internet-applications/

Read Full Post »

http://www.jamesward.com/2010/01/24/first-steps-in-flex-screencasts/

Read Full Post »

@font-face {

font-family: “scFont”;

src: url(“assets/fonts/mriam.ttf”);

embedAsCff: true;

}

mx|Alert, mx|Button, mx|Form,mx|FormItem, mx|FormItemLabel{

font-family: scFont;

textFieldClass: ClassReference(“mx.core.UIFTETextField”);

}

mx|DateField {

font-family: Tahoma;

textInputClass: ClassReference(“mx.controls.MXFTETextInput”);

textFieldClass: ClassReference(“mx.core.UIFTETextField”);

}

mx|Label {

textFieldClass: ClassReference(“mx.core.UIFTETextField”);

}

Read Full Post »

http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.html

Read Full Post »

About  Enhanced Constraints:-

 Flex 3 has  new approach to creating layouts is to expand upon the constraint-based layout system you are all familiar with. Allowing constraining of elements to not be dependent on the nesting of containers.   Enhanced constraints allow you to constrain child controls to each other, the edges of the parent containers and stretches and reflows as the Canvas container resizes.

Description about the Enhanced Constraints :
        There are two properties available
            1.constraint column
            2.constraint row

    1) constraints rows are defined from top to bottom
    2) constraints column are defined from left to right
    3) you can create only one constraint region for eg, create constraint column
    4) It will be re size according to the application 
    5) positioning will be handled in left,right,top,bottom.
    6) Position can be done by id of row or column
    7) if the column named “col1″ with width=”200″ and you specify on your control the position left=”col1:0″ and right=”col1:0”
         control to draw at 0px and end at 200px of the region, you don’t have to create 2 columns, each
      column has left,right,top,bottom regions

Sample:-
</mx:Canvas> 
     <mx:constraintColumns>
            <mx:ConstraintColumn id=”nav” width=”212″ />
                <mx:ConstraintColumn id=”column1″ width=”100%” />
          </mx:constraintColumns>
          <mx:constraintRows>
                <mx:ConstraintRow id=”row1″ height=”80%” />
                <mx:ConstraintRow id=”footer” height=”20%” />
          </mx:constraintRows>
        <mx:List left=”nav:10″ right=”nav:10″ top=”row1:10″ bottom=”row1:10″ />
  </mx:Canvas>

 Types of Constraints : 

  •     Center Constraints – Here there are two styles available horizontal center and vertical center

 <mx:Button horizontalCenter=”0″ /> — placed in horizontal center
 <mx:Button verticalCenter=”0″ /> — placed in vertical center
 <mx:Button horizontalCenter=”col1:0″/> placed in horizontal center for constraintColumn

  •     BaseLine Constrinats :  

User is setting the setting the range from the top edge of the constraints
<mx:Button baseline=”20″ /> — its  the baseline 20 PX from the top edge

Read Full Post »

Older Posts »