Hi Ashly,

How do you want to reveal the image: slide in, wipe..?  Here's a very
simple and hard-coded example for a slide-in from right to left.  Just
replace the Box with an Image  You could also use a mask.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
      width="400" height="400" horizontalAlign="center"
layout="vertical">



      <mx:Panel width="200" height="200" verticalScrollPolicy="off"
horizontalScrollPolicy="off">
           <mx:Canvas width="400" height="200">
                <mx:Box id="myImage" x="200" width="200" height="200"
backgroundColor="#ff0000"/>
           </mx:Canvas>
      </mx:Panel>



      <mx:HSlider id="mySlider"
           liveDragging="true"
           showDataTip="false"
           snapInterval="1"
           minimum="0"
           maximum="200"
           change="{ myImage.x = 200 - mySlider.value }"/>



</mx:Application>

-TH

--- In [email protected], "ashlytu" <[EMAIL PROTECTED]> wrote:
>
> hi!Is there anyone who can help me?
>
> I need to use the hslider to control how many percent of the image
> will be shown in a panel,when I trag the slider to the zero, none of
> the picture shows ,and when I drag it to the right edge, and the whole
> picture is shown.
>
> THanks A lot!
>
> Ashly
>


Reply via email to