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

May be property watch has some error. #37

Closed
sonygod opened this issue Aug 12, 2012 · 2 comments
Closed

May be property watch has some error. #37

sonygod opened this issue Aug 12, 2012 · 2 comments

Comments

@sonygod
Copy link

sonygod commented Aug 12, 2012

sprite.scaleX.watch(function(before, after) { trace("change---------------"+before+"_"+ after); } );

//script.run(new Parallel([new AnimateTo(sprite.scaleY, 2, 1, Easing.backIn),new AnimateTo(sprite.scaleX, 2, 1, Easing.backIn)]));//work , trace every change

  script.run(new AnimateTo(sprite.scaleY, 2, 1, Easing.backIn));//not work ,just get only one trace.

May be property watch has some error. or that 's right?

@aduros
Copy link
Owner

aduros commented Aug 12, 2012

Are you adding a watch() to scaleY too? The second AnimateTo line doesn't change scaleX.

If so, that's weird :) please attach a full test case I can compile and run?

@sonygod
Copy link
Author

sonygod commented Aug 14, 2012

Are you adding a watch() to scaleY too?no ,I forget. thanks

@sonygod sonygod closed this as completed Aug 14, 2012
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