aha! perfect! thanks! :D phew!
Raphael Hamzagic wrote:
Hi Sebastian, Take a look at Publish Settings -> AS3 settings. Make sure that you have unchecked "Automatically declare stage instances". I think that you have "spitfire" declared as member of nexus external class file. When you declare assets that exist on timeline, you must uncheck this option. The compiler can't create this property because it's allready there ;o) Best regards! Rapha On Thu, Sep 4, 2008 at 10:39 PM, sebastian <[EMAIL PROTECTED]> wrote:Hi everyone, still trying to get a grasp on some little nuances of AS3, I have some really cool code from a project that I am porting from AS2 to AS3, and I'm getting an issue with a number of the MC's that are in the timeline. I have a MC in the library called nexus, that is associated with an external class file. In the nexus external class file, all I do is import and extend the MovieClip class. Now inside of the nexus MC I have, on the timeline of the first frame, another MC that is inside of it only has some visual elements, some vector drawings inside of sub MC's with names given to them so that I can then reference them later on [for fading/on off/ control/motion etc]. The MC that holds all these vectors is called 'spitfire'. I add nexus to the stage via addChild() done by the root/Stage AS file: coreRoot.as Now without any code going on anywhere I get: ReferenceError: Error #1056: Cannot create property spitfire on com.geoSun.nexus. at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at com.geoSun::nexus$iinit() at com.geoSun::coreRoot$iinit() When I compile. Can anyone tell me why? I tried adding 'import flash.display.Shape;' to the nexus class file, but that didn't help. If I delete the spitfire graphics MC from the nexus's time line, it compiles just fine. And the nexus class initiates correctly its constructor. If I make spitfire totally an empty MC I still get the issue anyhow... how odd? Strangely another AS3 project I just finished never had this issue, and I had lots of MCs that I dragged straight onto the timeline of sub MC's and referenced them directly without any errors... hmmm... I'm obviously missing something simple...? :P Thanks, :) Sebastian. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

