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

Bug: Multiple declarations #147

Open
renaun opened this issue Jun 26, 2013 · 1 comment
Open

Bug: Multiple declarations #147

renaun opened this issue Jun 26, 2013 · 1 comment
Labels

Comments

@renaun
Copy link
Contributor

renaun commented Jun 26, 2013

AS3:
mHelperImage.scaleX = mHelperImage.scaleY = charLocation.scale;

JS:
this.mHelperImage.set_scaleX(this.mHelperImage.set_scaleY(charLocation.scale));

Expected JS:
this.mHelperImage.set_scaleY(charLocation.scale);
this.mHelperImage.set_scaleX(this.mHelperImage.get_scaleY());

There is cases where it looks like this:
eatParticleToTrack.scaleX = eatParticleToTrack.scaleY = Math.random() * 0.3 + 0.3;

Where the right side needs to be evaluated only once then set across both left side expressions.

@teotigraphix
Copy link
Contributor

pending get/set properties

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

No branches or pull requests

2 participants