Ok, so your days array is a array of Day objects, correct? What does
Day.as look like and what does Day.cfc look like? That debugging
would really help. Anyother HTTP sniffer at your disposal to sniff
the traffic? Also, start your CF server via the command line. You
can see some debugging in the dos window this way and can confirm the
data and datatype returned from CF to AS too.
DK
On 6/26/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
<snipppp>
> I have built this off the Phones example. I have a mobileCalendar.cfc with a
> getDays() function that returns an array of Day.cfc objects for each day of a
> given 4 to 6 week period depending on the month. I have the drawDay.as (was
> Day.as) file.
>
> <mx:RemoteObject id="svc" destination="ColdFusion"
>
> source="flex.MobileCalendar.CF.MobileCalendar"
> result="resultHandler(event)"
> showBusyCursor="true" />
>
> private function initApp():void
> {
> // Force day class to load
> svc.getCalendar(calDate, 2);
> }
>
> // getDays() result handler
> public function resultHandler(event:ResultEvent):void
> {
> var p1:ArrayCollection = new
> ArrayCollection();
> p1.source=event.result as Array;
> days = p1;
> }
>
> creationComplete="initApp()">
> <quote>
> also try
> <mx:GridItem width="14%">
> <mx:Label text="{dayCells.currentItem.date.toString()}" color="white" />
> <ian:dayFormat2 dayData="{dayCells.currentItem}" />
> </mx:GridItem>
>
> dunno about how that will align, but who cares just some testing, eh?
> </quote>
>
> Yes, that works. I was using that syntax when I was getting my custom
> component to work. Now, I am trying to pass the entire object in, so that I
> can use all the properties in the custom component.
>
> <quote>
> Have you got the FB debugging working yet? This will really help you
> determine if the AS objects are getting the proper type. Had a issue with
> this myself recently.
> </quote>
>
> No, when I tried to run with a break point, I got a dialog box asking what
> server something was running on. Any value I tried produced no results.
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2877
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54