Hi everyone -
Here's my setup. I have a MovieClip named "TimerSymbol" in the Library
with a base class of "flash.display.MovieClip" assigned to it. The
class associated with it is public and extends MovieClip.
"TimerSymbol" contains a MovieClip inside of it with an instance name
of "icons_mc". "TimerSymbol" is instantiated inside of a parent Sprite
class, which will serve as the base class of my SWC.
Now, I have "Automatically declare stage instances" ticked "on", and I
need to leave it on because that's the default setting other people
would be using.
With that, I'm not directly referring to "icons_mc" in my TimerSymbol
class to avoid name conflicts. I'm getting the instance like so:
public var icons:MovieClip;
icons = getChildByName('icons_mc') as MovieClip;
And that seems to work fine. BUT, the problem emerges when I "Convert
to Compiled Clip" and publish again from a separate FLA. This time I
get...
ReferenceError: Error #1056: Cannot create property icons_mc on
com.dd.observers.Timer.
at flash.display::Sprite/flash.display:Sprite::constructChildren()
at flash.display::Sprite$iinit()
at flash.display::MovieClip$iinit()
(blah blah blah)
Any ideas what could be causing this?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders