⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 searchresultevent.as

📁 Yahoo!search API. 用于搜索引擎接口
💻 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;			/**	* Event class in response to result events from the Yahoo! Search API.	* 	* @langversion ActionScript 3.0	* @playerversion Flash 9	* @author Alaric Cole 02/22/07	*/	public class SearchResultEvent extends Event	{		/** Constant for the event types. */				public static const RESULT:String = "result";				public static const WEB_SEARCH_RESULT:String = "webSearchResult";						public static const NEWS_SEARCH_RESULT:String = 'newsSearchResult';				public static const IMAGE_SEARCH_RESULT:String = 'imageSearchResult';		public static const VIDEO_SEARCH_RESULT:String = 'videoSearchResult';				public static const AUDIO_SEARCH_RESULT:String = 'audioSearchResult';		public static const PODCAST_SEARCH_RESULT:String = 'podcastSearchResult';		public static const ARTIST_SEARCH_RESULT:String = 'artistSearchResult';		public static const ALBUM_SEARCH_RESULT:String = 'albumSearchResult';		public static const SONG_SEARCH_RESULT:String = 'songSearchResult';		public static const SONG_DOWNLOAD_LOCATION_SEARCH_RESULT:String = 'songDownloadLocationSearchResult';				public static const LOCAL_SEARCH_RESULT:String = 'localSearchResult';				public static const RELATED_SUGGESTION_RESULT:String = 'relatedSuggestionSearchResult';		public static const SPELLING_SUGGESTION_RESULT:String = 'spellingSuggestionSearchResult';				public static const TERM_EXTRACTION_RESULT:String = 'termExtractionResult';		public static const CONTEXT_ANALYSIS_RESULT:String = 'contextAnalysisResult';						private var _result:Object;				private var _typeOfSearch:String;				/**		 * Constructs a new ResultEvent		 */		public function SearchResultEvent(type:String, inData:Object, typeOfSearch:String = null)		{			_result = inData;			_typeOfSearch = typeOfSearch;									   				super( type, bubbles, cancelable );		}				[Bindable]		/**		 * The result, usually an array of objects		 */		public function get result():Object		{			return _result;		}				public function set result( value:Object ):void		{			_result = value;		}				[Bindable]		/**		 * Passes the specific search result type (web search, image search, etc.)		 */		public function get typeOfSearch():String		{			return _typeOfSearch;		}				public function set typeOfSearch( value:String ):void		{			_typeOfSearch = value;		}		}	}

⌨️ 快捷键说明

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