Furthermore, if my SWF that I'm loading contains elements that are off the stage in the original FLA, they are invisible when the SWF is loaded into the player. I want these items visible.
Does anyone know how to explain this? This isn't a Flash Player feature when loading SWFs as children, is it?
When a SWFElement is loaded, we assign a scrollRect to the loaded Loader object, so that the loaded SWF doesn't exceed the allowed area. The code for this is in org.osmf.elements.loaderClasses.LoaderUtils.createDisplayObjectTrait. If you comment out the line (83) that assigns the scrollRect, does this prevent the clipping? (Not that that's the proposed solution, but that's probably the quickest way to find out if the scrollRect is what's clipping your content.)
Making this change solved the problem for SWFElements loaded into the player as media, but if I try to add metadata to it and load it as a plugin it still clips. Removing the addMetadataValue from the swf plugin resource data removes the clipping issue:
var resource:MediaResourceBase = new URLResource(url);
socialElement = factory.createMediaElement(resource);
Does that make any sense?
Actually no. :-) I don't see how the presence of metadata would impact clipping of the SWF. Are you sure there isn't some other change involved?
Regarding the scrollRect removal: we don't want to just remove it entirely, but there may be cases where clients would want to control whether or not a scrollRect is applied. Can you file a bug and link to this thread? Thanks!