When I create a new project in AS3 and link up the Yahoo classes I get these 4 error messages and 2 warnings
ERRORS
1170: Function does not return a value. [YahooSearchResultEvent.as]
Solution
public function getResult(index:Number):YahooSearchResult
{
//trace('getResult invoked');
try
{
if(isNaN(index) == true || index >= this.totalResultsReturned)
{
trace('invalid result index: ' + index + "\n totalResultsReturned: " + this.totalResultsReturned)
return null;
}
}
catch(error:Error)
{
trace('error: ' + error.message)
}
return this.$results[index];
}
--------------------------------------------------------------------------------------------------------------
1119: Access of possibly undefined property Empty through a reference
with static type Class. [YahooSearch.as]
Solution
99 if(zip != null)
--------------------------------------------------------------------------------------------------------------
1119: Access of possibly undefined property AUDIO_SEARCH through a
reference with static type Class. [YahooSearchResultEvent.as]
Solution
Add this property to the YahooApi Class
public static var AUDIO_SEARCH:String = 'audio';
--------------------------------------------------------------------------------------------------------------
1067: Implicit coercion of a value of type Number to an unrelated type
String. [YahooAPI.as]
Solution
52 return YahooAPI.search(needle, YahooAPI.LOCAL_SEARCH, new NameValuePair('zip', String(zip)));
--------------------------------------------------------------------------------------------------------------
WARNINGS
1008: variable 'ns' has no type declaration. YahooSearchResultEvent.as
Solution
28 var ns:Namespace = new Namespace(this.searchNamespace);
--------------------------------------------------------------------------------------------------------------
1008: variable 'i' has no type declaration. YahooSearchResultEvent.as
Solution
29 for(var i:String in this.$xml.ns::Result)
hope this helps
cheers :)
firdosh