# Change the JPEG quality in Publish settings using AS3?

**URL:** <https://forum.kirupa.com/t/change-the-jpeg-quality-in-publish-settings-using-as3/318133>\
**Category:** flash\
**Created:** [January 11, 2011, 11:54am UTC](https://forum.kirupa.com/t/change-the-jpeg-quality-in-publish-settings-using-as3/318133 "2011-01-11T11:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyg3r](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tyg3r/32/1341_2.png) [@Tyg3r](https://forum.kirupa.com/u/Tyg3r)\
**Post date:** [January 11, 2011, 11:54am UTC](https://forum.kirupa.com/t/change-the-jpeg-quality-in-publish-settings-using-as3/318133/1 "2011-01-11T11:54:37Z")

</div>

Hi

I’m working on some optimisation techniques to allow Flash for export my .swf in various file sizes.

I need to export the same .swf in a high quality and a lower quality version; so I normally just alter the JPEG quality manually.

But I was wondering if there is a method using AS3 that allows me to adjust the JPEG quality dynamically?

Is there something that works similar to this:

```auto
[SWF(backgroundColor=0xFFFFFF)]  

```

Cheers

Mark
