
|
If you were logged in you would be able to see more operations.
|
|
|
| Severity: |
Incorrectly Functioning
|
| Reproducibility: |
Every Time
|
| Discoverability: |
High
|
| Found in Version: |
Flex 3 - Beta 2
|
| Affected OS(s): |
Windows
- XP
|
| Steps to Reproduce: |
Steps to reproduce:
1. var parentSprite:Sprite = new Sprite(); // the bugSprite's parent Sprite;
var bugSprite:Sprite = new Sprite(); // bug occured on this
parentSprite.addChild( bugSprite );
var shape:Shape = new Shape(); // add a child DisplayObject
bugSprite.addChild( shape );
shape.graphics.beginFill( 0 ); // draw something to fill the child
shape.graphics.drawCircle( 100, 100, 20 );
shape.graphics.endFill();
2. bugSprite.addEventListener( MouseEvent.MOUSE_OVER, handler );
...
function handler( event:MouseEvent ):void
{
var pt:Point = new Point( event.stageX, event.stageY ); // when MOUSE_OVER event occur, the point must be over the child
if( bugSprite.getObjectsUnderPoint( pt ).length ){
trace( "OK: getObjectsUnderPoint works well" );
}else{
trace( "WARNING: getObjectsUnderPoint find nothing" ); // this line should never execute
}
}
3. move the mouse to test if getObjectsUnderPoint works -- yes, it works.
then:
parentSprite.scaleX = 2;
parentSprite.scaleY = 2;
retry, the bug occurs
Actual Results:
WARNING: getObjectsUnderPoint find nothing
Expected Results:
OK: getObjectsUnderPoint works well
Workaround (if any):
Steps to reproduce:
1. var parentSprite:Sprite = new Sprite(); // the bugSprite's parent Sprite;
var bugSprite:Sprite = new Sprite(); // bug occured on this
parentSprite.addChild( bugSprite );
var shape:Shape = new Shape(); // add a child DisplayObject
bugSprite.addChild( shape );
shape.graphics.beginFill( 0 ); // draw something to fill the child
shape.graphics.drawCircle( 100, 100, 20 );
shape.graphics.endFill();
2. bugSprite.addEventListener( MouseEvent.MOUSE_OVER, handler );
...
function handler( event:MouseEvent ):void
{
var pt:Point = new Point( event.stageX, event.stageY ); // when MOUSE_OVER event occur, the point must be over the child
if( bugSprite.getObjectsUnderPoint( pt ).length ){
trace( "OK: getObjectsUnderPoint works well" );
}else{
trace( "WARNING: getObjectsUnderPoint find nothing" ); // this line should never execute
}
}
3. move the mouse to test if getObjectsUnderPoint works -- yes, it works.
then:
parentSprite.scaleX = 2;
parentSprite.scaleY = 2;
retry, the bug occurs
Actual Results:
WARNING: getObjectsUnderPoint find nothing
Expected Results:
OK: getObjectsUnderPoint works well
Workaround (if any):
|
| Language Found: |
English
|
| Bugbase Id: |
none
|
| Participants: |
andy deng and Dan Schaffer
|
|
All
|
Comments
|
|
Sort Order:
|
|