I have flash ui built over the chromeless youtube player right now and I’m wondering if there is anyway to set certain sprites within the stage to not scale on fullscreen without having to do inverted scaling. Thanks in advance!
Edit: I use FlashDevelop as my IDE and building this purely in as3
Generally when you scale any
DisplayObject, all of its children will scale with it. However it is possible to prevent thestagefrom scaling on a resize. Try this:EDIT: To get the kind of behavior you’re looking for, you would have to manually perform some of the reszing. You will need to include the two lines of code above as it is the only way to prevent all of the content from scaling. Now add a resize handler so that you can scale only the
DisplayObjectinstances that you wish to resize, while keeping everything else the same: