views:

762

answers:

1

I want to load a swf into a Flex application and scale it down into a thumbnail-size.

I've looked at http://stackoverflow.com/questions/245420/dimensions-of-loaded-swfs-stage, but it does not really address my need: I want to size it and keep all the pieces inside a container.

Thanks

A: 

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.

Branden Hall
How do I figure out how large the SWF is, accounting for it dynamically moving elements ?
Richard Haven
You don't really... all you can do is scale it and mask it (if it's rectangular mask, check out using scrollRect - it's much faster than an actual mask)
Branden Hall