Packagecom.aispeech.factory
Classpublic class URLListFactory
InheritanceURLListFactory Inheritance flash.events.EventDispatcher

get url list

use method requestURLList() then listen the Event ResultEvent.RESULT on URLListFactory Class instance

Dispatch ResultEvent.RESULT when succss. data {urlListArray:Array, timeout:int, test:{severList:Array, timeout:int}}

Dispatch FaultEvent.FAULT when fail.



Public Properties
 PropertyDefined By
  TIMEOUT : int = 30
[static]
URLListFactory
  URLLIST_SERVICE_URL : String = http://api.aispeech.com/majordomo/v2.0/serverlist
[static]
URLListFactory
Public Methods
 MethodDefined By
  
URLListFactory
  
dispose():void
reset URLListFactory , and free no-used private classes or variables
URLListFactory
  
requestURLList(url:String):void
send the request to server to get URLList
URLListFactory
Property Detail
TIMEOUTproperty
public static var TIMEOUT:int = 30

URLLIST_SERVICE_URLproperty 
public static var URLLIST_SERVICE_URL:String = http://api.aispeech.com/majordomo/v2.0/serverlist

Constructor Detail
URLListFactory()Constructor
public function URLListFactory()



Method Detail
dispose()method
public function dispose():void

reset URLListFactory , and free no-used private classes or variables

requestURLList()method 
public function requestURLList(url:String):void

send the request to server to get URLList

Parameters

url:String — URLListService URL