StageXL
StageXL copied to clipboard
Using dart2js compiler with analyzeAll==true
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
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?
I think it's a dart2js problem https://code.google.com/p/dart/issues/detail?id=17115
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.
Ich hoffe ich finde bald mal Zeit StageXL näher anzusehen. Grüße aus Linz ;-)
Sehr cool - Oberösterreichische Dart Community :) Grüße aus Gmunden!
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.
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
Great. I've renamed it and it's working well now.