[swfmill] Resizing Images on Import

Joel Poloney jpoloney at gmail.com
Tue Nov 13 12:42:47 PST 2007


Is there any way to resize an image when you import it? For example, in the
following code:

<frame>
   <library>
      <clip id="foo" import="library/foo.jpg"/>
   </library>
   <place id="foo" depth="1"/>
</frame>

I can translate the place tag by adding "x" and "y" params to it, but I
haven't figured out how to resize an image on compile time. Basically, I'm
looking to read in foo.jpg, scaled at 50% and output it at some offset. It
would be great if foo.jpg was embedded into the swf at 50% as well (to save
on file size).

Thanks,

-- Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20071113/13ae64de/attachment.html 


More information about the swfmill mailing list