Hi,
I am new to flex. I am able to resize the image by using following
code.
"<?xml version="1.0"?>
<!-- Simple example to demonstrate the HSlider control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>

    <mx:Script>
        <![CDATA[

          private var imageWidth:Number=0;
          private var imageHeight:Number=0;

          // Event handler function to change the image size.
          private function changeSize():void
          {
             image.width=uint(imageWidth*hSlider.value/100);
             image.height=uint(imageHeight*hSlider.value/100);
          }
        ]]>
    </mx:Script>

        <mx:Label color="blue" text="Drag the slider to resize the
image."/>
        <mx:HSlider id="hSlider" minimum="0" maximum="100"
value="100"
            dataTipPlacement="top"
            tickColor="black"
            snapInterval="1" tickInterval="10"
            labels="['0%','100%']"
            allowTrackClick="true"
            liveDragging="true"
            change="changeSize();"/>

        <mx:HBox height="496" width="651">
            <mx:Image id="image" source="@Embed('image/
IMG0028A.jpg')"
                creationComplete="imageWidth=image.width;
imageHeight=image.height;" />
        </mx:HBox>

</mx:Application>

"

I am facing a problem that, I want to write this resized image on
server directly.

Can anyone please help me out to solve this problem?

Thanks,
Tushar

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

Reply via email to