On 5/8/07, vitcheff <[EMAIL PROTECTED]> wrote:

> What I'm trying is to achieve is to have a thumbnails bar with some
> images in it, which, when clicked, should display the corresponding
> large version in a Canvas.
>
> I'm doing this through AS3 in UIComponent-based class. There is an
> Image component instance which is placed in a Canvas instance. What
> I'm trying to do is scale the image down to the canvas's size and then
> provide a slider to zoom it in/out.

If you set scaleContent=true on the image (which is the default), the
content should scale automatically to the size of the component. So
all you need to do is adjust the width/height of the Image object to
the desired value.

Reply via email to