📄 searchfaultevent.as
字号:
/*Copyright (c) 2007, Yahoo! Inc. All rights reserved.Code licensed under the BSD License:http://developer.yahoo.com/flash/license.html*/package com.yahoo.webapis.search.events{ import flash.events.Event; import com.yahoo.webapis.ServiceFault; /** * Error Event class in response to fault events from the Yahoo! Search API. * * @langversion ActionScript 3.0 * @playerversion Flash 9 * @author Alaric Cole 02/22/07 */ public class SearchFaultEvent extends Event { /** Constant for the event types. */ public static const FAULT:String = "fault"; public static const ERROR_EVENT:String = "ErrorEvent"; public static const API_RESPONSE:String = "API Response"; public static const XML_LOADING:String = "XML Loading"; public static const NO_RESULTS:String = "No Results"; /** * True if the event is the result of a successful call, * False if the call failed */ public var success:Boolean; private var _fault:ServiceFault; /** * Constructs a new ErrorEvent */ public function SearchFaultEvent(type:String, fault:ServiceFault = null) { if(fault!= null) this._fault = fault; super( type, bubbles, cancelable ); } /** * Fault */ public function get fault():ServiceFault { return _fault; } public function set fault( value:ServiceFault ):void { _fault = value; } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -