<commit_before>/*
 * FLINT PARTICLE SYSTEM
 * .....................
 * 
 * Author: <NAME>
 * Copyright (c) <NAME> 2008-2011
 * http://flintparticles.org
 * 
 * 
 * Licence Agreement
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package org.flintparticles.common.initializers 
{
	import org.flintparticles.common.events.ParticleEvent;
	import flash.events.IEventDispatcher;
	import flash.events.MouseEvent;
	import org.flintparticles.common.emitters.Emitter;
	import org.flintparticles.common.particles.Particle;	

	/**
	 * The MouseEventHandlers Initializer sets event handlers to listen for the mouseOver and mouseOut events on each 
	 * particle. To use this initializer, you must use a DisplayObjectRenderer, use an InteractiveObject as the image
	 * for each particle, and set the mouseChildren property of the renderer to true.
	 */

	public class MouseEventHandlers extends InitializerBase
	{
		private var _overHandler:Function;
		private var _outHandler:Function;
		private var _upHandler:Function;
		private var _downHandler:Function;
		private var _clickHandler:Function;
		
		/**
		 * The constructor creates a MassInit initializer for use by 
		 * an emitter. To add a MassInit to all particles created by an emitter, use the
		 * emitter's addInitializer method.
		 * 
		 * @param mass the mass for particles
		 * initialized by the instance.
		 * 
		 * @see org.flintparticles.common.emitters.Emitter#addInitializer()
		 */
		public function MouseEventHandlers()
		{
		}
		
		/**
		 * The mouseOver event handler.
		 */
		public function get overHandler():Function
		{
			return _overHandler;
		}
		public function set overHandler( value:Function ):void
		{
			_overHandler = value;
		}
		
		/**
		 * The mouseOut event handler.
		 */
		public function get outHandler():Function
		{
			return _outHandler;
		}
		public function set outHandler( value:Function ):void
		{<commit_msg>Fix documentation error.<commit_after>/*
 * FLINT PARTICLE SYSTEM
 * .....................
 * 
 * Author: <NAME>
 * Copyright (c) <NAME> 2008-2011
 * http://flintparticles.org
 * 
 * 
 * Licence Agreement
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package org.flintparticles.common.initializers 
{
	import org.flintparticles.common.events.ParticleEvent;
	import flash.events.IEventDispatcher;
	import flash.events.MouseEvent;
	import org.flintparticles.common.emitters.Emitter;
	import org.flintparticles.common.particles.Particle;	

	/**
	 * The MouseEventHandlers Initializer sets event handlers to listen for the mouseOver and mouseOut events on each 
	 * particle. To use this initializer, you must use a DisplayObjectRenderer, use an InteractiveObject as the image
	 * for each particle, and set the mouseChildren property of the renderer to true.
	 */

	public class MouseEventHandlers extends InitializerBase
	{
		private var _overHandler:Function;
		private var _outHandler:Function;
		private var _upHandler:Function;
		private var _downHandler:Function;
		private var _clickHandler:Function;
		
		/**
		 * The constructor creates a MouseEventHandlers initializer for use by 
		 * an emitter. To add a MouseEventHandlers to all particles created by an emitter, use the
		 * emitter's addInitializer method.
		 * 
		 * @see org.flintparticles.common.emitters.Emitter#addInitializer()
		 */
		public function MouseEventHandlers()
		{
		}
		
		/**
		 * The mouseOver event handler.
		 */
		public function get overHandler():Function
		{
			return _overHandler;
		}
		public function set overHandler( value:Function ):void
		{
			_overHandler = value;
		}
		
		/**
		 * The mouseOut event handler.
		 */
		public function get outHandler():Function
		{
			return _outHandler;
		}
		public function set outHandler( value:Function ):void
		{
{'fraction_non_alphanumeric': 0.07463456577815993, 'fraction_numerical': 0.002751504729148753, 'mean_word_length': 3.7828947368421053, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2768866', 'n_tokens_mistral': 1692, 'n_tokens_neox': 1487, 'n_words': 648}