On 6/26/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> > Hey Ian, can you create a work example of the problem with hardcoded
> > values and zip that up and attach?
>
> If one can tell me how to easily create an array of my "Day" objects with 
> data in them?  Currently this is done by a ColdFusion CFC and the magic of 
> remoteObject.

You can use <mx:Array>  or in ActionScript create the array and add elements.

>
> > But in yer custom component it looks like you're just creating a blank
> > instance of dayData. Like if your Day.as class initializes itself to
> > some date, I would guess that would be displayed.
>
> I get that feeling as well, I just do not know how to do anything about it.  
> In an earlier thread I got help on a problem with a similar result when I was 
> passing just the date in and still getting blank values, because the dayData 
> was not bindable so that it could be changed.
>
> > I think your issue is related to: {dayCells.currentItem as Day} vs
> > import Day
>
> I tried without the import Day in my custom component, I no longer get an 
> error since I now have the "as Day" in the call, but also no displayed values 
> either.
>

You should have a import path.to.Day; in a script block in the mxml
file that you use a Day instance.  dayCells.currentItem as Day just
castes dayCells.currentItem to a Day object, eh?  A couple things

1) I would think dayCells.currentItem should already be a Day object
if your Day.as and Day.cfc are setup properly.  One of the beauties of
remoting is the 'synching' of AS objects with server side objects.
Can you post Day.as and Day.cfc?

2) how are you fetching the data?  Are you using a DAO?  What is the
return type on your CFC method?


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?

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.

DK

>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> 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:2873
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

Reply via email to