Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
[Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag
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.