On 11/30/15, 6:33 PM, "lizhi" <s...@qq.com> wrote:

>in develop the flash api flexjs,i have a lot of this iuuse.
>but i alreay fixed it.
>
>1, in flash the stage extends the displayobject,and displayobject have a
>stage var.
>
>2,graphics have to use sprite,and sprite have a graphics var.
>
>3,

There are plenty of circular dependencies in the FlexJS framework and the
compiler handles it by removing certain goog.require statements that the
Google Closure optimizing compiler is complaining about.  In the small
test case you provided there was no other class that required "B".

I'm wondering if you are creating empty definitions for flash classes and
not actually creating instances of those classes.  Usually there is a
chain of dependencies that start with the main app needing to create
instances of classes instead of just setting the type of a property.

There is an @flexjsignoreimport asdoc tag you can try that should cause
the compiler to skip the goog.require and could eliminate the circularity
so you don't have to mess up the base class hierarchy.

HTH,
-Alex

Reply via email to