what am I missing? I get zero output in output window.
I'll give ANYONE twenty bucks if they can provide a COMPLETE WORKING EXAMPLE
of how this is done.
if it's so easy ... easy money right?
I've spent 4 days trying this posting in this forum. I get a different partial
solution from everyone .. none of them work.
here is what I got so far:
slide.cfc code:
**************************************************************************
<cfcomponent displayName="getImages">
<cffunction name="getImages" access="remote" returnType="any">
<cfquery datasource="fresh" name="imageArray">
select Photo from Pictures
</cfquery>
<!--- ?????
some code here to build an array from the imageArray query
and make it available as an array to flash
don't know how .. don't care how ...
???? ---->
</cffunction>
</cfcomponent>
******************************************
.fla code:
if (connected == null) {
connected = true;
NetServices.setDefaultGatewayUrl("
http://flashfusion.net/flashservices/gateway")
;
var my_conn = NetServices.createGatewayConnection();
var myService = my_conn.getService("slides",this);
}
// call service
myService.getImages();
// handle results from service call
function getImages_Result(result) {
RecordCount=result.getLength()-1;
for (i=0; i <= recordCount; i++)
{
Pictures=result.items.myPhoto;
trace(pictures);
//build an array here from cfc result.
//replace pic_arr = ['1','2','3','4']
//with pic_arr=[query results from cfc as an array]
}
};
first person to show me the answer gets twenty bucks.