openfl / actuate

Actuate is a flexible, fast "tween" library for animations in Haxe
MIT License
158 stars 66 forks source link

onComplete() not playing nice with DCE full #89

Open miltoncandelero opened 6 years ago

miltoncandelero commented 6 years ago

Actuate 1.8.7 - HTML5 target - DCE full option.

If I do this:

Actuate.tween(coverup, 0.5, { alpha:1 } ).onComplete(function () {trace ("not working");});

then I get an exception saying that Cannot read property 'onComplete' of null


I blame DCE because if I turn it off it works.

(BTW: is dce actually worth it? I am starting a new project being DCE friendly but I am not sure of why should I use DCE)

hoseyjoe commented 6 years ago

This appears fixed in GIT version. Had issue with 1.8.7 release. Our JS file size drops from 3.3mb to 867kb with DCE full so...