【发布时间】:2012-02-06 14:40:31
【问题描述】:
我有一个带有多个 DropDownLists 的 mxml 表单。
这些 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 在单独的文件中,我不知道该怎么做。
你能帮帮我吗?
谢谢
【问题讨论】:
标签: actionscript-3 apache-flex flash-builder