Copy link to clipboard
Copied
I am trying to load a Starling(stage3d) game.swf into a non Starling wrapper.swf. I can get the game.swf to load and from trace commands can see that it's there but I can't see it visually.
From what I understand the stage3d is behind the background of the stage.
I've seen solutions posted saying that backgroundAlpha needs to be set to 0. I am using flash cs6 and can't figure out, if this is the solution, how to set the backgroundAlpha to 0.
Is there a way to set backgroundAlpha to 0?
Copy link to clipboard
Copied
Only in a couple instances have I seen transparent possible. If this is embedded in a webpage you usually set the wmode parameter to "transparent" (see here) and it will be transparent. However as you know, Starling requires the wmode to be set to "direct" to work so you can't do that.
Otherwise enhancers like Zinc or mProjector could turn SWFs into more functionally enhanced versions of a projector and have a transparent property you can trigger to remove the chrome from the projector overall.
Otherwise I am unaware of any metadata or programmatic ways to set the actual background color of the stage to transparent. The stage does extend DisplayObject so it has an alpha property but that'd hide everything on the display list.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now