Take out the ending #! This cleared my issue right up. Isuppose you could
"feiloiram" <webforumsuser@macromedia.com> wrote in message
news:bnlgf7$b2g$1@forums.macromedia.com...
> Hi,
>
> following is done in Flash 2004 MX.
>
> function ProvideBrandNames_Result (result) {
> //trace(result.getLength());
> //var titles = result.getColumnNames();
> //trace(titles[0] + ", " + titles[1]);
> //var record = result.getItemAt(0);
> //trace(record.BrandName);
> //combobox.addItem(record.BrandName, record.BrandNameID);
> DataGlue.bindFormatStrings(combobox,result,"#BrandName#","#BrandNameID#");
> }
> #include "NetServices.as"
> #include "NetDebug.as"
> #include "DataGlue.as"
> // open the gateway only once
> if (isGatewayOpen == null) {
> isGatewayOpen = true;
> NetServices.setDefaultGatewayUrl(
"
http://noneofyourbusiness.com/flashservices/gateway");
> gatewayConnnection = NetServices.createGatewayConnection();
> BrandNameService =
gatewayConnnection.getService("GFS.Components.GetBrandNames", this);
> }
> BrandNameService.ProvideBrandNames();
>
> The trace-commands show that I connect to my Coldfusion Component and that
the desired data is succefully retrieved.
>
> When I would use addItem to add one record to the combobox then this
works. (So I could build a small loop to enter the entire query)
>
> But,
> In flash MX I succefully used DataGlue.bindFormatStrings. So i want to use
this also in Flash MX 2004.
> Whats wrong with my coding. Or is this a bug?
>
> Mario
>
>