flash.data.SQLConnection:getSchemaResultの挙動
flash.data.SQLConnection:loadSchemaの結果は待ち行列に格納される。
http://livedocs.adobe.com/labs/flex3/langref/flash/data/SQLConnection.html
The getSchemaResult() method behaves as a first-in, first-out queue of results.
この結果をflash.data.SQLConnection:getSchemaResultで取り出すことが出来る。
ただし、取り出した結果はもちろん待ち行列からは取り除かれる。
なので
private function onSchema(event:SQLEvent):void { trace(ObjectUtil.toString(event.target.getSchemaResult())); this.setTreeData(toXMLListCollection(event.target.getSchemaResult())); }
とかやってると上手くいかないよ!!!!!
めちゃくちゃはまった!