Soundcloud-AS3-API icon indicating copy to clipboard operation
Soundcloud-AS3-API copied to clipboard

getRequestTokenCompleteHandler type conversion error

Open dubbeat opened this issue 15 years ago • 0 comments

the existing code threw a type conversion error for me

//var responseVariables:URLVariables = URLVariables(event.data);

I changed it to use the decode method and it worked fine

protected function getRequestTokenCompleteHandler(event:SoundcloudEvent):void

var responseVariables:URLVariables=new URLVariables(); var str:String=new String(event.data); responseVariables.decode(str) requestToken=createTokenFromURLVariables(responseVariables);

dubbeat avatar Jan 07 '11 12:01 dubbeat