私はいくつかのDropDownListsを持つmxmlフォームを持っています。他のクラスのHTTPServiceでDropDownListをロードするには
者DropDownListsは、このクラスの配列のコレクションがロードされています
package fr.intersystemes.DataProvider
{
import fr.internity.config.urlManager;
import mx.collections.ArrayCollection;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
public class dpDDLCustomer
{
public function dpDDLCustomer()
{
}
public function onFault(event:FaultEvent):void
{
trace(this + event.fault.toString());
}
public function serviceCustomCivil():ArrayCollection
{
var DP_CUS_CIVIL:ArrayCollection ;
DP_CUS_CIVIL = new ArrayCollection (
[{label:"Monsieur" , data:"0"},
{label:"Madame", data:"1"},
{label:"Mademoiselle", data:"2"},
{label:"Le Jeune", data:"3"}]
);
return DP_CUS_CIVIL;
}
}
しかし、今、私はArrayCollectionのをロードするためのデータベースを照会したいと思います。 HTTPServiceとDropDownListを同じMXMLファイルに配置すると、HTTPServiceが別のファイルにある場合の処理方法がわかりません。
お手伝いできますか?
あなたはあなたのArrayCollectionがあなたのDpDDLCustomerクラスにバインド可能プロパティであるように、周りのものを変更する必要があるおかげで
ありがとうございました。しかし、私は初心者のために、それは難しいようです。だから、もしあなたが私にサンプルを与えることができれば、それは私の役に立つ。ありがとう – Flex60460
すべてのhttpservice呼び出しを別々のASファイルに入れて、これをmxmlファイルに含めるとよいでしょうか? – Flex60460