I have a MovieClip in my library which is defined as a class that I have in an external actionscript file. That is, I have a MovieClip “mc_PortfolioElement” in my library and the linkage properties have “class: PortfolioElement”. This PortfolioElement is an AS class that I have defined.
My publish settings have classes exported in Frame 2, but when I tell my MovieClip not to export in the 1st frame it does not show anything when I create a new object of its type. Then when I check “Export in first frame” it shows up when I create a new object of type PortfolioElement.
The only code that is relevant to this is:
var element = new PortfolioElement();
addChild(element);
How can I have the MovieClip export on a frame other than frame 1 and still display itself? Or it would even be great to know why it is NOT displaying itself when I tell it not to export in frame 1…do I need to manually load it in?