Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

[Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag

Open shaucky opened this issue 10 months ago • 0 comments

Description

Property stageScaleMode and stageAlign for metadata tag [SWF]. Using like:

    [SWF(width="960", height="560", fps="24", stageScaleMode="noScale", stageAlign="topLeft")]
    public class Main extends Sprite {
        public function Main()
        {
            Main function code here…
        }
    }

This directly equivalent to stage.stageScaleMode = StageScaleMode.NO_SCALE; and stage.align = StageAlign.TOP_LEFT;. This change should be backward compatible as it only adds an optional feature and doesn’t alter the behavior of existing applications.

  • Simplifies initial class setup by reducing boilerplate code.
  • Improves code readability and organization.
  • Maintains backward compatibility.

Thanks.

shaucky avatar May 02 '24 04:05 shaucky