<commit_before>package org.openPyro.utils
{
	import flash.display.DisplayObject;
	import flash.geom.Point;
	
	public class MouseUtil
	{
		public function MouseUtil()
		{
		}
	
		public static function isMouseOver(obj:DisplayObject):Boolean{
			var pt:Point = new Point(obj.stage.mouseX, obj.stage.mouseY);
			obj.globalToLocal(pt);
			return obj.hitTestPoint(pt.x, pt.y);
		}

	}
}<commit_msg>Added a check on MouseUtil.isMouseOver if the object is actually attached on the stage or not<commit_after>package org.openPyro.utils
{
	import flash.display.DisplayObject;
	import flash.geom.Point;
	
	public class MouseUtil
	{
		public function MouseUtil()
		{
		}
	
		public static function isMouseOver(obj:DisplayObject):Boolean{
			if(!obj.stage) return false;
			var pt:Point = new Point(obj.stage.mouseX, obj.stage.mouseY);
			obj.globalToLocal(pt);
			return obj.hitTestPoint(pt.x, pt.y);
		}

	}
}
{'fraction_non_alphanumeric': 0.1091314031180401, 'fraction_numerical': 0.0, 'mean_word_length': 4.166666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6701537', 'n_tokens_mistral': 336, 'n_tokens_neox': 302, 'n_words': 68}