passing array from coldfuison to as3
hay all
im new at CF and i'm traying to pass an array (list of languages form mySql) aealy simple one, my function looks like that:
<cfcomponent>
<cffunction name="get_languages_pagingUtils" access="remote" returntype="Array" >
<cfset var arrResult = arrayNew( 1 ) >
<cfquery name="languages">
SELECT language_name,native_name
FROM languages
</cfquery>
<cfreturn arrResult>
</cffunction>
</cfcomponent>
on the as3 side i have this:
the function that call the old fusion function-
public static function getData():void
{
var nc:NetConnection;
nc = new NetConnection();
nc.connect("http://localhost:8500/flashservices/gateway/");
nc.call("paging-debug.cfc.pagingService.get_languages_pagingUtils", new Responder(onResult, onError));
}
and the result function:
public static function onResult(result:Array):void
{
trace("result = ", result as Array)
}
i have tray to find all kind of tutorials but no success there..
i'll be happy for sum halp
thanks..
