Hi all,
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.

What makes me crazy is that I have to scale image.content instead of
the image itself and after that make a ton of magic when trying to
figure what the width and height of the image is, to be able to center it.

Although the content is scaled down, image.width remains unchanged,
and working with the content's size still brings some unexpected
behaviour in.

Is there something bad about my approach. Handling a simple image
shouldn't be that freaking hard. Do I miss something?

Thanks in advance!

Reply via email to