How to scale a loaded SWF?
-
21-09-2019 - |
Question
I want to load a swf into a Flex application and scale it down into a thumbnail-size.
I've looked at dimensions of loaded swf's stage, but it does not really address my need: I want to size it and keep all the pieces inside a container.
Thanks
Solution
You just need to scale the container that the SWF is in. For example, in vanilla AS3 you'd load into a Loader object. You'd just have to set the scaleX and scaleY properties of that object to scale it down.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow