Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with -dce full ? #74

Closed
alamboley opened this issue Jun 8, 2016 · 7 comments
Closed

Not compatible with -dce full ? #74

alamboley opened this issue Jun 8, 2016 · 7 comments

Comments

@alamboley
Copy link

I tried Actuate with a simple code Actuate.tween(bird, 1, {alpha:0.2}).repeat().reflect(); it worked fine. I'm surprised that adding -dce full to the hxml file makes Actuate not working anymore (tested on js and flash targets)...

Using -dce full is really required when working with Nape and HTML5!

@jgranick
Copy link
Member

jgranick commented Jun 8, 2016

Would you mind seeing if this helps?

openfl/openfl@cc7c08f

Thank you! 😄

@alamboley
Copy link
Author

alamboley commented Jun 8, 2016

Unfortunately, I'm not using OpenFL. Also I'm not sure how to add the @:keep using this syntax #73

@jgranick
Copy link
Member

jgranick commented Jun 8, 2016

Oh, gotcha

Does this work?

@:keep public var alpha(get, set):Float;

@alamboley
Copy link
Author

Unfortunately no :(

@jgranick
Copy link
Member

jgranick commented Jun 9, 2016

Does it work if you use @:keep on each of the getter/setter methods?

@alamboley
Copy link
Author

Adding the @:keep only on each getter/setter methods works fine 👍 thanks!

Any ideas concerning the other issue on the HTML5 target?

@jgranick
Copy link
Member

jgranick commented Jun 9, 2016

Actuate tries to detect when something is a real property -- perhaps when @:isVar is present, this causes it to set the property directly and bypass the getter and setter. This is faster, but obviously misses behavior.

I've wanted to redesign Actuate for Haxe strong types, I need to think about how that would work 😉

(it's the dynamics that are causing these issues)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants