kingyiren / flex-object-handles

Automatically exported from code.google.com/p/flex-object-handles
0 stars 0 forks source link

ObjectHandles-1.0.0016: Rotation isNaN #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. MyCanvas extends ObjectHandles (allowRotate = true)
2. Load swf into Canvas and add it to MyCanvas rawChildren
3. Try to move it -> isNaN(rotation) and then
"bowAngle = Math.PI / 180 * rotation * -1;" isNaN and object goes to 0,0

What is the expected output? What do you see instead?

  Tried to set rotation=0 in MyCanvas constructor but it did not help,
  rotation get garbagled some other location.

  Fixed this adding to ObjectHandles.onMouseMove

    if (isNaN(rotation))
       rotation = 0;

What version of the product are you using? On what operating system?

  ObjectHandles-1.0.0016
  FlashPlayer 10
  FB 4 B2
  Windows XP/Vista
  IE8

Original issue reported on code.google.com by heikki.u...@syncrontech.com on 8 Nov 2009 at 4:53

GoogleCodeExporter commented 8 years ago
This has been added to the SVN code, thank you.

Original comment by marc.hug...@gmail.com on 22 Dec 2009 at 3:38

GoogleCodeExporter commented 8 years ago

Original comment by marc.hug...@gmail.com on 22 Dec 2009 at 3:38