StageXL icon indicating copy to clipboard operation
StageXL copied to clipboard

Using dart2js compiler with analyzeAll==true

Open Thiltal opened this issue 10 years ago • 8 comments

Using dart2js compiler with analyzeAll==true produces javascript error TransitionFunction_linear is not a function

http://stackoverflow.com/questions/22303232/transitionfunction-linear-is-not-a-function

Thiltal avatar Mar 10 '14 18:03 Thiltal

Hi, thanks for the report. I did some quick tests and can't reproduce the problem. Do you have a test application i can look at?

bp74 avatar Mar 10 '14 19:03 bp74

I think it's a dart2js problem https://code.google.com/p/dart/issues/detail?id=17115

zoechi avatar Mar 10 '14 19:03 zoechi

Thanks Günther! This bug in the compiler looks like the reason for Zdeněk problem. I can reproduce a similar problem now, and i will take a look at it once the new dev-channel build is available.

For now i would recommend to compile without the analyzeAll flag.

bp74 avatar Mar 10 '14 19:03 bp74

Ich hoffe ich finde bald mal Zeit StageXL näher anzusehen. Grüße aus Linz ;-)

zoechi avatar Mar 10 '14 21:03 zoechi

Sehr cool - Oberösterreichische Dart Community :) Grüße aus Gmunden!

bp74 avatar Mar 11 '14 05:03 bp74

Hi Bernhard, I have similar problem with in Webstorm. Dart Analysis panel showing a message: Warning:(36, 46) The getter 'linear' is not defined for the class 'Function' My code: new Tween(this, .5, TransitionFunction.linear)

I did not see this message when I created my game a year ago.

avstudios avatar Oct 05 '15 09:10 avstudios

The TransitionFunction class was renamed to Transition in one of the last releases. Your problem should be fixed with a simple rename. Here is a link with more details:

https://groups.google.com/forum/#!topic/stagexl/SX9GWYsPFsY

bp74 avatar Oct 05 '15 10:10 bp74

Great. I've renamed it and it's working well now.

avstudios avatar Oct 05 '15 10:10 avstudios