Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Espigah opened this issue Sep 18, 2014 · 1 comment

Comments

@Espigah
Copy link

Espigah commented Sep 18, 2014

[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
Copy link
Author

Espigah commented Sep 18, 2014

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


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


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


Espigah pushed a commit to Espigah/Cocktail that referenced this issue Sep 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant