Packagecom.yahoo.webapis.search.events
Classpublic class SearchResultEvent
InheritanceSearchResultEvent Inheritance flash.events.Event

Event class in response to result events from the Yahoo! Search API.



Public Properties
 PropertyDefined by
  result : Object
The result, usually an array of objects
SearchResultEvent
  typeOfSearch : String
Passes the specific search result type (web search, image search, etc.)
SearchResultEvent
Public Methods
 MethodDefined by
  
SearchResultEvent(type:String, inData:Object, typeOfSearch:String = null)
Constructs a new ResultEvent
SearchResultEvent
Public Constants
 ConstantDefined by
  ALBUM_SEARCH_RESULT : String = "albumSearchResult"
[static]
SearchResultEvent
  ARTIST_SEARCH_RESULT : String = "artistSearchResult"
[static]
SearchResultEvent
  AUDIO_SEARCH_RESULT : String = "audioSearchResult"
[static]
SearchResultEvent
  CONTEXT_ANALYSIS_RESULT : String = "contextAnalysisResult"
[static]
SearchResultEvent
  IMAGE_SEARCH_RESULT : String = "imageSearchResult"
[static]
SearchResultEvent
  LOCAL_SEARCH_RESULT : String = "localSearchResult"
[static]
SearchResultEvent
  NEWS_SEARCH_RESULT : String = "newsSearchResult"
[static]
SearchResultEvent
  PODCAST_SEARCH_RESULT : String = "podcastSearchResult"
[static]
SearchResultEvent
  RELATED_SUGGESTION_RESULT : String = "relatedSuggestionSearchResult"
[static]
SearchResultEvent
  RESULT : String = "result"
[static] Constant for the event types.
SearchResultEvent
  SONG_DOWNLOAD_LOCATION_SEARCH_RESULT : String = "songDownloadLocationSearchResult"
[static]
SearchResultEvent
  SONG_SEARCH_RESULT : String = "songSearchResult"
[static]
SearchResultEvent
  SPELLING_SUGGESTION_RESULT : String = "spellingSuggestionSearchResult"
[static]
SearchResultEvent
  TERM_EXTRACTION_RESULT : String = "termExtractionResult"
[static]
SearchResultEvent
  VIDEO_SEARCH_RESULT : String = "videoSearchResult"
[static]
SearchResultEvent
  WEB_SEARCH_RESULT : String = "webSearchResult"
[static]
SearchResultEvent
Property detail
resultproperty
result:Object  [read-write]

The result, usually an array of objects

This property can be used as the source for data binding.

Implementation
    public function get result():Object
    public function set result(value:Object):void
typeOfSearchproperty 
typeOfSearch:String  [read-write]

Passes the specific search result type (web search, image search, etc.)

This property can be used as the source for data binding.

Implementation
    public function get typeOfSearch():String
    public function set typeOfSearch(value:String):void
Constructor detail
SearchResultEvent()constructor
public function SearchResultEvent(type:String, inData:Object, typeOfSearch:String = null)

Constructs a new ResultEvent

Parameters
type:String
 
inData:Object
 
typeOfSearch:String (default = null)
Constant detail
ALBUM_SEARCH_RESULTconstant
public static const ALBUM_SEARCH_RESULT:String = "albumSearchResult"
ARTIST_SEARCH_RESULTconstant 
public static const ARTIST_SEARCH_RESULT:String = "artistSearchResult"
AUDIO_SEARCH_RESULTconstant 
public static const AUDIO_SEARCH_RESULT:String = "audioSearchResult"
CONTEXT_ANALYSIS_RESULTconstant 
public static const CONTEXT_ANALYSIS_RESULT:String = "contextAnalysisResult"
IMAGE_SEARCH_RESULTconstant 
public static const IMAGE_SEARCH_RESULT:String = "imageSearchResult"
LOCAL_SEARCH_RESULTconstant 
public static const LOCAL_SEARCH_RESULT:String = "localSearchResult"
NEWS_SEARCH_RESULTconstant 
public static const NEWS_SEARCH_RESULT:String = "newsSearchResult"
PODCAST_SEARCH_RESULTconstant 
public static const PODCAST_SEARCH_RESULT:String = "podcastSearchResult"
RELATED_SUGGESTION_RESULTconstant 
public static const RELATED_SUGGESTION_RESULT:String = "relatedSuggestionSearchResult"
RESULTconstant 
public static const RESULT:String = "result"

Constant for the event types.

SONG_DOWNLOAD_LOCATION_SEARCH_RESULTconstant 
public static const SONG_DOWNLOAD_LOCATION_SEARCH_RESULT:String = "songDownloadLocationSearchResult"
SONG_SEARCH_RESULTconstant 
public static const SONG_SEARCH_RESULT:String = "songSearchResult"
SPELLING_SUGGESTION_RESULTconstant 
public static const SPELLING_SUGGESTION_RESULT:String = "spellingSuggestionSearchResult"
TERM_EXTRACTION_RESULTconstant 
public static const TERM_EXTRACTION_RESULT:String = "termExtractionResult"
VIDEO_SEARCH_RESULTconstant 
public static const VIDEO_SEARCH_RESULT:String = "videoSearchResult"
WEB_SEARCH_RESULTconstant 
public static const WEB_SEARCH_RESULT:String = "webSearchResult"