This is quite offtopic, more centering on Flash, but y'all's so smart, I
figured one of you could give me a nudge in the right direction.

We recently rebuilt part of an old FuseBox 3 application to rely on CFCs for
the entire data model so we could expose parts of it as web services.  Now
that that's done, I got the lucky assignment to build a very primitive
example client in Flash.  One of the requirements is that we use the
WebServiceConnector in Flash MX'04, rather than remoting, and I'm struggling
with how to map the results of the web service invocation into a ComboBox.
I can do it just fine with this actionscript on the connector:

On (result) {
  var list = path.to.combobox;
  for (var I = 0; I < this.results.length; i++) {
    list.addItem({label: this.results[i].title, data: this.results[i].cID});
  }
}

But I'd much rather use a DataHolder or DataSet because I need to reuse the
data in a couple places, and I need to be able to switch the data out, and
then return to the data again, and I'd like to avoid another remote call.  I
can get the data from connector to DataSet, and then to the ComboBox, but I
can't select which fields are used for data and which are used for labels if
I do it that way.

If it's of any value, the web service is returning an array of structs.

Much thanks for any pointers.

Cheers,
barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to