I'm trying to move several layers with different speeds to create parallax effect in my game.
When building for Windows everything works but when I build for Flash or HTML5 I get strange effect, basically it looks like the code of moving layer based on it's old position -1 pixel doesn't work and the increments are huge.
Video of how it should work: Please login to see this link.
Video of results with Flash and HTML5 builds: Please login to see this link.
The code I use to move individual layers:
Please login to see this attachment.
Test mfa: Please login to see this link.
Any help or workaround methods are appreciated