Images created with MXML tags are not resized correctly #19769
Labels
A-avm2
Area: AVM2 (ActionScript 3)
bug
Something isn't working
security-sandbox
Issues related to Flash Player security sandboxes
Describe the bug
Currently, when creating an image in MXML,
width
andheight
are not taken into account.This is caused by the fact that the contentHolderWith and contentHolderHeight getters in
mx.controls.SWFLoader
are waiting to pass into thecatch
.This part is never triggered, as flash.display.Loader().content does not return an error. A security sandbox should be implemented to raise properly the error.
Here's a snippet to reproduce the bug:
Expected behavior
The image should be resized to the requested size.
Here's what's happening now:

Here's the expected result:

Content Location
ScalingIssue.zip
Affected platform
Self-hosted version
Operating system
macOS Sequoia 15.3.1
Browser
Mozilla Firefox 136.0
Additional information
No response
The text was updated successfully, but these errors were encountered: