Thanks Steve. I thought maybe I was onto something with the LoaderInfo
classes width and height props that return the "nominal" w and h, but
this information doesn't seem to jive with what I'm observing.
I'm considering using BitmapData class to physically find the visible
boarders of loaded swf, but I guess this assumes that there aren't any
stray bits outside of the main image.
Steve Mathews wrote:
No, this is not easy. Unfortunately the data that defines the stage size is
not directly available in AS code. I believe it is only in the swf
file's header, so you would actually have to do a lot of work to figure out
what size the swf should be masked at.
Steve
On Thu, Oct 2, 2008 at 7:36 AM, Andrew Sinning <[EMAIL PROTECTED]>wrote:
I'm using AS3. After loading in an arbitrary swf using the Loader class,
getRect and getBounds don't necessarily reveal the internally defined
boundaries of the loaded swf, rather they seem to return the boundaries of
the stuff inside the loaded swf which can be either smaller or larger than
the internally defined boundaries. Am I missing something?
I want to load in a swf, create a mask around it so that only the stuff
that is supposed to show is shown, and then scale it to fit a target area.
This should be easy, right?
Thanks!
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders