pluginevent.as

来自「jquery插件」· AS 代码 · 共 72 行

AS
72
字号
/*     *    Copyright (c) 2008, 2009 Flowplayer Oy * *    This file is part of Flowplayer. * *    Flowplayer is free software: you can redistribute it and/or modify *    it under the terms of the GNU General Public License as published by *    the Free Software Foundation, either version 3 of the License, or *    (at your option) any later version. * *    Flowplayer is distributed in the hope that it will be useful, *    but WITHOUT ANY WARRANTY; without even the implied warranty of *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *    GNU General Public License for more details. * *    You should have received a copy of the GNU General Public License *    along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>. */package org.flowplayer.model {	import flash.events.Event;			/**	 * @author anssi	 */	public class PluginEvent extends AbstractEvent {		public static const PLUGIN_EVENT:String = "onPluginEvent";		private var _id:Object;		public function PluginEvent(eventType:PluginEventType, pluginName:String, id:Object = null, info:Object = null, info2:Object = null) {			super(eventType, pluginName, info, info2);			_id = id;		}		override public function hasError(error:ErrorCode):Boolean {			return _id == error.code;		}		public override function clone():Event {			return new PluginEvent(eventType as PluginEventType, info.toString(), _id, info2);		}		public override function toString():String {			return formatToString("PluginEvent", "id", "info", "info2");		}				/**		 * Gets the event Id.		 */		public function get id():Object {			return _id;		}		protected override function get externalEventArgument():Object {			return info;		}		protected override function get externalEventArgument2():Object {			return _id;		}		protected override function get externalEventArgument3():Object {			return info2;		}		protected override function get externalEventArgument4():Object {			return info3;		}	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?