Re: [flexcoders] Re: [flex2dev] Object type Coercion error.

2006-07-12 Thread Douglas Knudsen
try putting your Button inside your custom component and creating a
instance var inside your custom component that you can pass in the
Repeater call.  Me thinks what you are trying is telling Flex to pass
an array of Button to your custom component.

so have VB.mxml look like this


 http://www.adobe.com/2006/mxml";  width="100" height="100">

 

  



and the main.mxml look like

http://www.adobe.com/2006/mxml"; xmlns:local="*">
   
   
   

   
   
   



might have some syntax issue, I didn't get a chance to test this.
Note, if dp is modified in anyway at runtime, this approach would
probably require you to override the getter/setter on inNum.

HTH

DK

On 7/12/06, Norbert Csík <[EMAIL PROTECTED]> wrote:
> I think there is a problem with repeaters and custom components.
> Please consider the following code:
>
> 
> http://www.adobe.com/2006/mxml"; xmlns:local="*">
> 
> 
> 
>
> 
> 
>  label="{String(rp.currentItem)}" />
> 
> 
>
> 
>
>
> Where The VB is a custom component extending a VBox:
>
> 
> http://www.adobe.com/2006/mxml";
> width="100" height="100">
>
> 
>
> But if you compile and run this code it fails with the error
> "TypeError: Error #1034: Type Coercion failed: cannot convert
> mx.controls::[EMAIL PROTECTED] to Array."
>
> One interesting point is if you replace the {String(rp.currentItem)}
> binding in the button with some static string it works:
>
> 
>
> So there's a problem with the repater. What do you think?
>
> nOR
>
> --- In flexcoders@yahoogroups.com, "Ian Skinner" <[EMAIL PROTECTED]> wrote:
> >
> > it is not a problem to use repeaters and custom components AFAIK. I
> > will note that sometimes you need to create your own getter/setter
> > methods for use. I don't thinks that's the issue with Ian though, but
> > could be.
> >
> > DK
> >
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: [flex2dev] Object type Coercion error.

2006-07-12 Thread Norbert Csík
I think there is a problem with repeaters and custom components.
Please consider the following code:


http://www.adobe.com/2006/mxml"; xmlns:local="*">









  



Where The VB is a custom component extending a VBox:


http://www.adobe.com/2006/mxml";
width="100" height="100">



But if you compile and run this code it fails with the error
"TypeError: Error #1034: Type Coercion failed: cannot convert
mx.controls::[EMAIL PROTECTED] to Array."

One interesting point is if you replace the {String(rp.currentItem)}
binding in the button with some static string it works:



So there's a problem with the repater. What do you think?

nOR

--- In flexcoders@yahoogroups.com, "Ian Skinner" <[EMAIL PROTECTED]> wrote:
>
> it is not a problem to use repeaters and custom components AFAIK. I
> will note that sometimes you need to create your own getter/setter
> methods for use. I don't thinks that's the issue with Ian though, but
> could be.
> 
> DK
> 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Re: [flex2dev] Object type Coercion error.

2006-06-28 Thread Ian Skinner










it is not a problem to use repeaters and custom components AFAIK. I
will note that sometimes you need to create your own getter/setter
methods for use. I don't thinks that's the issue with Ian though, but
could be.

DK

 

I suspect it was my latest problem.  Because once I changed my
declaration from var drawData:drawDay to var drawData:Object I could use the
object inside my custom component.  But I suspect this is not the best
solution.  At least it lets me practice other things at the moment though.

 

 

--
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. 


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



--- Begin Message ---









it is not a problem to use repeaters and custom components AFAIK.  I
will note that sometimes you need to create your own getter/setter
methods for use.  I don't thinks that's the issue with Ian though, but
could be.

DK

On 6/28/06, aejaz_98 <[EMAIL PROTECTED]com> wrote:
> Hi Ian,
>
> I also encountered the same problem with Beta 3 & it seemed like a
> bug to not be able to use a custom component inside a repeater.
> I also arrived at the same solution as you i.e. not use a custom
> component & use Flex components only.
>
> May be this has been fixed in the released version, I haven't
> tried it yet.
>
> Thanks,
> Aejaz
>
> --- In [EMAIL PROTECTED]ups.com, "Douglas Knudsen"
> ...> wrote:
> >
> > I'm guessing the mapping from your cfc to the as object isn't working.
> >  Just a hunch.
> >
> > DK
> >
> > On 6/27/06, Ian Skinner ...> wrote:
> > > //Define public variables
> > > [Bindable]
> > > public var drawData:Object;
> > >
> > > Ok, changing the data type of the drawData variable to Object
> which is what a repeater currentItem returns worked!  But is this the
> way I want this to work?  Just use a generic Object type not my nice
> custom Object I create with the drawDay.as file and is returned from
> my drawDay.cfc with the remoteObject call?
> > >
> > >
> > > --
> > > 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.
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > -- Forwarded message --
> > > From: "Ian Skinner" ...>
> > > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED].>, <[EMAIL PROTECTED]ups.com>
> > > Date: Tue, 27 Jun 2006 15:41:59 -0700
> > > Subject: [flex2dev] Object type Coercion error.
> > > I am receiving this error:
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> [EMAIL PROTECTED] to drawDay.
> > >
> > > When I run this code:
> > > 
> > > id="dayCells"
> > > dataProvider="{days}"
> > > startingIndex="{weekRows.currentItem}"
> > > count="7">
> > >   
> > >drawData="{drawDay(dayCells.currentItem)}"
> > > test="{dayCells.currentItem.formate

RE: [flexcoders] Re: [flex2dev] Object type Coercion error.

2006-06-28 Thread Ian Skinner










Thanks, it is good to know I am not
alone.  I will give the final a chance, once I have my basic trial concept
finished.

 

 

--
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. 


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



--- Begin Message ---









Hi Ian,

I also encountered the same problem with Beta 3 & it seemed like a 
bug to not be able to use a custom component inside a repeater.
I also arrived at the same solution as you i.e. not use a custom
component & use Flex components only.

May be this has been fixed in the released version, I haven't 
tried it yet.

Thanks,
Aejaz

--- In [EMAIL PROTECTED]ups.com, "Douglas Knudsen"
...> wrote:
>
> I'm guessing the mapping from your cfc to the as object isn't working.
>  Just a hunch.
> 
> DK
> 
> On 6/27/06, Ian Skinner ...> wrote:
> > //Define public variables
> > [Bindable]
> > public var drawData:Object;
> >
> > Ok, changing the data type of the drawData variable to Object
which is what a repeater currentItem returns worked!  But is this the
way I want this to work?  Just use a generic Object type not my nice
custom Object I create with the drawDay.as file and is returned from
my drawDay.cfc with the remoteObject call?
> >
> >
> > --
> > 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.
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> > -- Forwarded message --
> > From: "Ian Skinner" ...>
> > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED].>, <[EMAIL PROTECTED]ups.com>
> > Date: Tue, 27 Jun 2006 15:41:59 -0700
> > Subject: [flex2dev] Object type Coercion error.
> > I am receiving this error:
> > TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to drawDay.
> >
> > When I run this code:
> > 
> > id="dayCells"
> > dataProvider="{days}"
> > startingIndex="{weekRows.currentItem}"
> > count="7">
> >   
> >drawData="{drawDay(dayCells.currentItem)}"
> > test="{dayCells.currentItem.formatedDate}">
> >   
> > 
> >
> > How can I figure out what kind of object dayCells.currentItem is
being returned by the Repeater control?  {days} is an arrayCollection
of drawDay objects, how can I get the Repeater currentItem to be an
object of the drawDay type?
> >
> > --
> > 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

Re: [flexcoders] Re: [flex2dev] Object type Coercion error.

2006-06-28 Thread Douglas Knudsen
it is not a problem to use repeaters and custom components AFAIK.  I
will note that sometimes you need to create your own getter/setter
methods for use.  I don't thinks that's the issue with Ian though, but
could be.

DK

On 6/28/06, aejaz_98 <[EMAIL PROTECTED]> wrote:
> Hi Ian,
>
> I also encountered the same problem with Beta 3 & it seemed like a
> bug to not be able to use a custom component inside a repeater.
> I also arrived at the same solution as you i.e. not use a custom
> component & use Flex components only.
>
> May be this has been fixed in the released version, I haven't
> tried it yet.
>
> Thanks,
> Aejaz
>
> --- In flexcoders@yahoogroups.com, "Douglas Knudsen"
> <[EMAIL PROTECTED]> wrote:
> >
> > I'm guessing the mapping from your cfc to the as object isn't working.
> >  Just a hunch.
> >
> > DK
> >
> > On 6/27/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> > > //Define public variables
> > > [Bindable]
> > > public var drawData:Object;
> > >
> > > Ok, changing the data type of the drawData variable to Object
> which is what a repeater currentItem returns worked!  But is this the
> way I want this to work?  Just use a generic Object type not my nice
> custom Object I create with the drawDay.as file and is returned from
> my drawDay.cfc with the remoteObject call?
> > >
> > >
> > > --
> > > 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.
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > -- Forwarded message --
> > > From: "Ian Skinner" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, 
> > > Date: Tue, 27 Jun 2006 15:41:59 -0700
> > > Subject: [flex2dev] Object type Coercion error.
> > > I am receiving this error:
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> [EMAIL PROTECTED] to drawDay.
> > >
> > > When I run this code:
> > >  > > id="dayCells"
> > > dataProvider="{days}"
> > > startingIndex="{weekRows.currentItem}"
> > > count="7">
> > >> >drawData="{drawDay(dayCells.currentItem)}"
> > > test="{dayCells.currentItem.formatedDate}">
> > >   
> > > 
> > >
> > > How can I figure out what kind of object dayCells.currentItem is
> being returned by the Repeater control?  {days} is an arrayCollection
> of drawDay objects, how can I get the Repeater currentItem to be an
> object of the drawDay type?
> > >
> > > --
> > > 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.
> > >
> > >
> > >
> > >
> > > --
> > > You are subscribed to flex2dev. To unsubscribe, send an email to
> [EMAIL PROTECTED] with the words 'unsubscribe flex2dev' as the subject of
> the email.
> > >
> > > Flex2Dev is run by CFCZone (www.cfczone.org) and supported by
> CFXHosting (www.cfxhosting.com).
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders M

[flexcoders] Re: [flex2dev] Object type Coercion error.

2006-06-28 Thread aejaz_98
Hi Ian,

I also encountered the same problem with Beta 3 & it seemed like a 
bug to not be able to use a custom component inside a repeater.
I also arrived at the same solution as you i.e. not use a custom
component & use Flex components only.

May be this has been fixed in the released version, I haven't 
tried it yet.

Thanks,
Aejaz

--- In flexcoders@yahoogroups.com, "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> I'm guessing the mapping from your cfc to the as object isn't working.
>  Just a hunch.
> 
> DK
> 
> On 6/27/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> > //Define public variables
> > [Bindable]
> > public var drawData:Object;
> >
> > Ok, changing the data type of the drawData variable to Object
which is what a repeater currentItem returns worked!  But is this the
way I want this to work?  Just use a generic Object type not my nice
custom Object I create with the drawDay.as file and is returned from
my drawDay.cfc with the remoteObject call?
> >
> >
> > --
> > 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.
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> > -- Forwarded message --
> > From: "Ian Skinner" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, 
> > Date: Tue, 27 Jun 2006 15:41:59 -0700
> > Subject: [flex2dev] Object type Coercion error.
> > I am receiving this error:
> > TypeError: Error #1034: Type Coercion failed: cannot convert
[EMAIL PROTECTED] to drawDay.
> >
> > When I run this code:
> >  > id="dayCells"
> > dataProvider="{days}"
> > startingIndex="{weekRows.currentItem}"
> > count="7">
> >>drawData="{drawDay(dayCells.currentItem)}"
> > test="{dayCells.currentItem.formatedDate}">
> >   
> > 
> >
> > How can I figure out what kind of object dayCells.currentItem is
being returned by the Repeater control?  {days} is an arrayCollection
of drawDay objects, how can I get the Repeater currentItem to be an
object of the drawDay type?
> >
> > --
> > 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.
> >
> >
> >
> >
> > --
> > You are subscribed to flex2dev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe flex2dev' as the subject of
the email.
> >
> > Flex2Dev is run by CFCZone (www.cfczone.org) and supported by
CFXHosting (www.cfxhosting.com).
> >
> >
> >
> >
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>






 Yahoo! Groups Sponsor ~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] RE: [flex2dev] Object type Coercion error.

2006-06-28 Thread Douglas Knudsen
I'm guessing the mapping from your cfc to the as object isn't working.
 Just a hunch.

DK

On 6/27/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> //Define public variables
> [Bindable]
> public var drawData:Object;
>
> Ok, changing the data type of the drawData variable to Object which is what a 
> repeater currentItem returns worked!  But is this the way I want this to 
> work?  Just use a generic Object type not my nice custom Object I create with 
> the drawDay.as file and is returned from my drawDay.cfc with the remoteObject 
> call?
>
>
> --
> 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.
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
> -- Forwarded message --
> From: "Ian Skinner" <[EMAIL PROTECTED]>
> To: , <[EMAIL PROTECTED]>, 
> 
> Date: Tue, 27 Jun 2006 15:41:59 -0700
> Subject: [flex2dev] Object type Coercion error.
> I am receiving this error:
> TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL 
> PROTECTED] to drawDay.
>
> When I run this code:
>  id="dayCells"
> dataProvider="{days}"
> startingIndex="{weekRows.currentItem}"
> count="7">
>   drawData="{drawDay(dayCells.currentItem)}"
> test="{dayCells.currentItem.formatedDate}">
>   
> 
>
> How can I figure out what kind of object dayCells.currentItem is being 
> returned by the Repeater control?  {days} is an arrayCollection of drawDay 
> objects, how can I get the Repeater currentItem to be an object of the 
> drawDay type?
>
> --
> 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.
>
>
>
>
> --
> You are subscribed to flex2dev. To unsubscribe, send an email to [EMAIL 
> PROTECTED] with the words 'unsubscribe flex2dev' as the subject of the email.
>
> Flex2Dev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
> (www.cfxhosting.com).
>
>
>
>


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] RE: [flex2dev] Object type Coercion error.

2006-06-27 Thread Ian Skinner
//Define public variables
[Bindable]
public var drawData:Object;

Ok, changing the data type of the drawData variable to Object which is what a 
repeater currentItem returns worked!  But is this the way I want this to work?  
Just use a generic Object type not my nice custom Object I create with the 
drawDay.as file and is returned from my drawDay.cfc with the remoteObject call?


--
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. 




 Yahoo! Groups Sponsor ~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
--- Begin Message ---
I am receiving this error:
TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] 
to drawDay.

When I run this code:

  
  


How can I figure out what kind of object dayCells.currentItem is being returned 
by the Repeater control?  {days} is an arrayCollection of drawDay objects, how 
can I get the Repeater currentItem to be an object of the drawDay type?

--
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. 




--
You are subscribed to flex2dev. To unsubscribe, send an email to [EMAIL 
PROTECTED] with the words 'unsubscribe flex2dev' as the subject of the email.

Flex2Dev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).


--- End Message ---