-
1. Re: Flash to Air
chris.campbell Aug 24, 2010 10:53 AM (in response to Anonym2010)Hello,
I moved this post to the AIR Development forum in hopes that other Flash CS4 developers can help chime in. Do you have any sample code that you can share that illustrates the problem you're seeing?
Chris
-
2. Re: Flash to Air
Anonym2010 Aug 25, 2010 1:52 AM (in response to chris.campbell)Hello,
after some investigation I was able to figure out the problem.
I first used "stage.mouseX" and "stage.mouseY" to get the position of the MouseEvent and this worked for Flash Player 10 but not under AIR. I remembered that the MouseEvent - class itself has the "stageX" and "stageY" property and replaced the previous code with it, and it works now better.
But now I have the Problem, that my matrix transformations (calculated in MouseEvent.MOUSE_MOVE) sometimes are just incorrect. I thought it would be a performance issue and tried it again with the Flash Player 10, but the problem still remains.
I think I've read somewhere, that the "stageX" and "stageY" are calculated everytime and the "stage.mouseX" and "stage.mouseY" should be used (because of performance) but this doesn't work for me. Can someone please help me?
Sorry, but I can't reveal code .
Greetings
-
3. Re: Flash to Air
Anonym2010 Aug 30, 2010 5:41 AM (in response to Anonym2010)I could find out, that there was just an error in my calculation of the matrix. Now it is also ready for use in AIR. Thanks for all help.
Greets


