Return to Snippet

Revision: 28521
at July 9, 2010 02:20 by hoss


Initial Code
package com.medini.events 
{
	import flash.events.Event;

	public class StringEvent extends Event 
	{
		private var _value : String;

		public function StringEvent(value : String, type : String, bubbles : Boolean = false, cancelable : Boolean = false)
		{
			_value = value;
			super(type, bubbles, cancelable);
		}

		public function get value() : String {
			return _value;
		}

		public function set value(value : String) : void {
			_value = value;
		}

		public override function clone() : Event
		{
			return new StringEvent(value, type, bubbles, cancelable);
		}

		public override function toString() : String
		{
			return formatToString("StringEvent", "value", "type", "bubbles", "cancelable");
		}
	}
}

Initial URL

                                

Initial Description
what package structure are you using Ben?

Initial Title
Podium custom event

Initial Tags

                                

Initial Language
ActionScript 3