I really appreciate your help.
due to the nature of the client details I wont post working code at this stage.
below is the jobs component code the coldfusion function is looking for an
integer to be passed in to the jobsService.getJobsList(showClient); if I hard
code jobsService.getJobsList(1); works perfect
it is just receiving the string clientID instead of its value
CustomClientClass.as
package events
{
import flash.events.Event;
public class CustomClientClass extends Event
{
public var customClientID:String;
public function CustomClientClass(customClientID:String,type:Strin g)
{
super(type);
this.customClientID = customClientID;
}
override public function clone():Event
{
return new CustomClientClass(customClientID, type);
}
}
}
the code for jobs component.
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.core.Application;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import events.CustomClientClass;
[Bindable]
public var showClient:String;
[Bindable]
private var myJobs:ArrayCollection;
public function init():void
{
jobsService.getJobsList(showClient);
}
private function jobsResult(event:ResultEvent):void
{
myJobs = event.result as ArrayCollection;
}
private function faultHandler(event:FaultEvent):void
{
Alert.show(event.fault.faultString, event.fault.faultCode);
}
]]>
</mx:Script>
<mx:RemoteObject id="jobsService" destination="ColdFusion"
source="components.jobs.jobsGateway"
result="jobsResult(event)"
fault="faultHandler(event)"/>
<mx

ataGrid id="jobsDg"
dataProvider="{myJobs}"
width="400"
height="400"
dragEnabled="true">
</mx

ataGrid>
</mx:Panel>