Hai

Please Check Sample

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical" >
        
        
        
        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        import mx.controls.textClasses.TextRange;
                
                
                        
                        public function setTextStylesCombo():void{
                        var mySelectedTextRange:TextRange = new 
TextRange(this.tt,true,
                                        this.tt.selectionBeginIndex,
                                        this.tt.selectionEndIndex);
                                        //tt.getTextField().alwaysShowSelection 
= true;
                                        
                                        //Alert.show(fontSizeCombo.value+"");
                                        
                                                //mySelectedTextRange.fontSize 
=int(fontSizeCombo.value+60);
                                                
                                                mySelectedTextRange.fontSize 
=(fontSizeCombo.value*4)
                                                //Alert.show("After 
Change"+mySelectedTextRange.fontSize);
                                                
                                                
                                                                
                        }
                        
                        
                
                ]]>
        </mx:Script>
        <mx:TextArea id="tt" text="Hai" width="200" height="500">
                
        </mx:TextArea>
        
        
        <mx:NumericStepper id="fontSizeCombo" minimum="14" maximum="80"
change="setTextStylesCombo()">
                
        </mx:NumericStepper>
</mx:Application>


On Fri, May 6, 2011 at 4:17 PM, praveen Kumar
<[email protected]> wrote:
> Hai Friends  I Have Numaric Stepper ;  Min Value 14  and MaxValue 80 ;
>
>
> This is Samole Code For
>
> var     mySelectedTextRange:TextRange = new TextRange(this.textArea,true,
>                                        this.textArea.selectionBeginIndex,
>                                        this.textArea.selectionEndIndex);
>                                        
> textArea.getTextField().alwaysShowSelection = true;
>                                        mySelectedTextRange.fontSize 
> =(fontSizeCombo.value*4);
>
> When Numaric Stepper Value =32;[32*4=128 mySelectedTextRange.fontSize
> increasing];
>
> When
> 33*4=132;
> 35*4=140;
> 36*4=144;
>
> mySelectedTextRange.fontSize values shows Correctly;But
>
> mySelectedTextRange.fontSize  Not Increasing
> accordingly[numaicstepper value>33;]
>
> Please Help me
>
>
>
>
> textArea FontSize Not Increasing
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to