Hello,

I have a properly functioning flash remoting setup between flash 8 and cf 8

I have a cfc with a method that returns a list of zip files in a specific 
directory.

I then attach the result to a combo box in a flash 8 swf file.  I think that I 
am not doing something right as I cannot access the combo box selected item. I 
get undefined and undefined for the data and label properties respectively. 

I think that I need to return an array as the return type, but I am not sure 
how to do that. Let alone pick that up in the swf file combo box. I have tried 
changing the returnType but no luck. This causes an error in the swf file.

Here is the CFC method:
<!---Get all the zip files in the desired directory--->
<cffunction name="getAllZipFiles" access="remote" returnType="query" 
output="yes">
        <cfdirectory action="list" 
                directory="#GetDirectoryFromPath(GetTemplatePath())#" 
                name="CurrentDir" 
                filter="*.zip" 
                listinfo="name">        
        <cfreturn CurrentDir>   
        
</cffunction>

Here is the flash 8 combo box stuff:

function getZipFiles ()
{
        var ZipFiles_pc : PendingCall = myService.getAllZipFiles();
        ZipFiles_pc.responder = new RelayResponder (this, "getZipFiles_Result", 
"getZipFiles_Fault");
}
function getZipFiles_Result (re : ResultEvent)
{       

DataGlue.bindFormatStrings (myCombo_cb,re.result,Label:"#Name#",Data:"#Name#")
//      myCombo_cb.dataProvider=re.result;
}
function getZipFiles_Fault (fault:FaultEvent):Void
{
        trace ("error");
}

I switched between both the dataglue and the dataprovider lines with no avail. 
the dataglue line errors out while the dataprovider works but returns undefined 
in the change handler event procedure

The combo box actually populates and allows you to select a different file in 
the list retrieved. I just cannot get at the selected item property.

Any help would be greatly appreciated.

Thanks

Jim 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295383
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to