Hey guys, I recently downloaded FB 4.7 and noticed something changed when compiling and running my project.
I have the following code in one of my classes. It simply embeds a symbol from a SWF and adds it to the stage as a MovieClip:
private static const Splash1:Class;
_splash1 = new Splash1();
Now, in this MovieClip in the FLA there are two layers, one layer is a bunch of vector animation and the second layer is the background (as an imported Bitmap) - no animation.
The problem is that second layer with the background doesn't show up in my project after I've embedded and added the MovieClip to the stage, it's as if the MovieClip has a transparent background with just the first layer with all of the vector animation showing up.
Things I've tried/noted:
Now I understand there are workarounds that I can always use as a last resort (embedding the background JPG and adding it to the stage as a Bitmap separately at runtime), but I'd prefer to have this working correctly so if things change visually in the future, it's less work for me.
I'm pretty sure when I originally coded this when using FB 4.6 I did not have this issue (and since then nothing has changed at all, not the code or the SWF file). This is why I'm led to believe it's either a FB 4.7 issue or maybe there's something extra I need to do to the FLA before exporting the SWF file.
Any help appreciated!
First things first, to eliminate the silly stuff, you have a typo in the code you have there which would break things - addChild(_Splash1); should be addChild(_splash1); (capital S). Is this a copy error or is it in your actual code?
I had this problem yesterday and I spent about 2 hours to find out. It's another bug of Flash Builder 4.7, it seems:
Bitmaps need an alpha channel! I found out, because all bitmaps with alpha were showing right and just the background was invisible (but it was there, the size of the containing movie clip was correct). So I cleared a little part of the background with the "rubber" and then it worked...