Cocktail icon indicating copy to clipboard operation
Cocktail copied to clipboard

[Fault] exception, information=ReferenceError: Error #1069: Property get_target not found on flash.events.MouseEvent and there is no default value.

Open Espigah opened this issue 10 years ago • 1 comments

[Fault] exception, information=ReferenceError: Error #1069: Property get_target not found on flash.events.MouseEvent and there is no default value.

Class: cocktail.port.platform.flash_player.MouseListener line:198

localPoint = _platform.convertToHitTestingSpriteSpace(localPoint, event.get_target(), _platform.hitTestingSprite);

Espigah avatar Sep 18 '14 18:09 Espigah

var hasGetTargtMethod:Bool = Reflect.hasField(event, "get_target");

var targetDisplayObject = hasGetTargtMethod ? event.get_target() : event.target;

localPoint = _platform.convertToHitTestingSpriteSpace(localPoint, targetDisplayObject, _platform.hitTestingSprite);

Espigah avatar Sep 18 '14 18:09 Espigah