Need some help. My company hired a higher level developer
than myself (I’m a intermediate flash programmer at best) for
a certain job. He is using actionscript to call an outside source
folder’s images into a target area in a flash frame when
buttons are clicked. The client (for whatever reason) insists that
the images be used at 80% when brought into the target area so that
when someone zooms in on the browser, there is minimal distortion.
Crazy, I know, but that is what they want.
So the question is, can the developer easily use actionscript
to bring in an image at a set width/height or a set proportion into
the target area? If not, what is the best alternative?
>>...can the developer easily use actionscript to bring
in an image at a set
>>width/height or a set proportion into the target
You can do either. Using the MovieClipLoader class is your
best bet - then
you have a listener with an onLoadInit method. When that
method fires, the
loaded clip is ready to be worked with - sized in your case.
directly set the width and height, or you can modify the
clips _xscale and
_yscale properties... up to you.