Re: flexjs ERROR - Circular dependency detected

2015-12-21 Thread lizhi
yes,your are right. but i am said, it is will lost of a lot of great lib(starling,away3d). use this lib,must do a lot of rebuild. but if the flexjs,support the cdd,it will good for as3 lib. helpful this same code,gen as and js. -- View this message in context: http://apache-flex-development

Re: flexjs ERROR - Circular dependency detected

2015-12-15 Thread Alex Harui
On 12/15/15, 8:41 PM, "lizhi" wrote: >1,yes it is involves you changing your code,but the code it is the js code >from the as. >the same as code gen diffrent js code? Sure, but the compiler does not create or break class dependencies. Whether we use Google's require or RequireJS, a circularity

Re: flexjs ERROR - Circular dependency detected

2015-12-15 Thread lizhi
1,yes it is involves you changing your code,but the code it is the js code from the as. the same as code gen diffrent js code? 2,pls try this,https://github.com/matrix3d/Starling-Framework i an working on starling flexjs. it is get this bug. if can not slove the bug,a lot of lib can not run. so

Re: flexjs ERROR - Circular dependency detected

2015-12-15 Thread Alex Harui
Hi Lizhi, In both links, every suggestion involves you changing your code, not any change to the compiler. We are not using RequireJS, we are using Google Closure's provide/require. I am going to experiment with different ways of generating the requires list after we finish merging the back port

Re: flexjs ERROR - Circular dependency detected

2015-12-15 Thread lizhi
http://misko.hevery.com/2008/08/01/circular-dependency-in-constructors-and-dependency-injection/ -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-ERROR-Circular-dependency-detected-tp50323p50646.html Sent from the Apache Flex Development mailing list

Re: flexjs ERROR - Circular dependency detected

2015-12-15 Thread lizhi
http://www.bitnative.com/2015/02/03/circular-dependencies-in-requirejs/ -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-ERROR-Circular-dependency-detected-tp50323p50645.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ERROR - Circular dependency detected

2015-12-15 Thread lizhi
it is a bug very importent by flexjs.i think it is must be fix -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-ERROR-Circular-dependency-detected-tp50323p50644.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs ERROR - Circular dependency detected

2015-12-06 Thread Alex Harui
On 12/6/15, 6:31 PM, "lizhi" wrote: >can you code it?i can not understand. >and pls output the full info of Circular dependency detected. > >i some code,i just get A Circular dependency detected A. >i need A -B,B-C,C-A. > >but now i just get A-A,no clear > Unfortunately, it is the Google Closu

Re: flexjs ERROR - Circular dependency detected

2015-12-06 Thread Alex Harui
This example doesn't actually "use B" because still no code actually instantiates a B. I think we'll have to revisit how we choose the requires. I'll play around with it. Google recommends using more interfaces to get rid of the cycles. On 12/6/15, 6:43 PM, "lizhi" wrote: >package >{ >

Re: flexjs ERROR - Circular dependency detected

2015-12-06 Thread lizhi
can you code it?i can not understand. and pls output the full info of Circular dependency detected. i some code,i just get A Circular dependency detected A. i need A -B,B-C,C-A. but now i just get A-A,no clear -- View this message in context: http://apache-flex-development.247.n4.nabble.c

Re: flexjs ERROR - Circular dependency detected

2015-12-06 Thread lizhi
package { /** * ... * @author lizhi */ public class Test { private var b:B; public function Test() { new A; alert("ok"); }

Re: flexjs ERROR - Circular dependency detected

2015-11-30 Thread Alex Harui
On 11/30/15, 6:33 PM, "lizhi" 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 ple

Re: flexjs ERROR - Circular dependency detected

2015-11-30 Thread lizhi
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, ... etc, many and now i make stage extends object,fixed it. ht

Re: flexjs ERROR - Circular dependency detected

2015-11-30 Thread Alex Harui
Well, I spend time looking into this. Do you have a slightly more "realistic" example? The reason I ask is because there is some logic that tries to eliminate circular dependencies and I can't tell if there is a bug in it or not because in the small test case you provided, the class B is never ac

Re: flexjs ERROR - Circular dependency detected

2015-11-29 Thread Alex Harui
On 11/29/15, 6:38 PM, "lizhi" wrote: >test.zip >> > >have this error,the release not work. > >i do not know,is it can resolve? We can try to allow that. The Google folks think you shouldn't have that kind of circula

Re: flexjs ERROR - Circular dependency detected

2015-11-29 Thread lizhi
test.zip have this error,the release not work. i do not know,is it can resolve? if it bug,must can not be resolve,i will find other way. -- View this message in context: http://apache-flex-development.247.n4.na

Re: flexjs ERROR - Circular dependency detected

2015-11-27 Thread Alex Harui
Hi Lizhi, Can you post a more detailed but small example? I just tried something like that and it worked. -Alex On 11/27/15, 8:07 PM, "lizhi" wrote: >A extend B > >B has a var A > > > >-- >View this message in context: >http://apache-flex-development.247.n4.nabble.com/flexjs-ERROR-Circula