RE: [flexcoders] Re: Casting in flex

2007-11-10 Thread Alex Harui
__ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Saturday, November 10, 2007 7:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Casting in flex So then is the technical/traditional definition of casting different from the behavio

[flexcoders] Re: Casting in flex

2007-11-10 Thread ben.clinkinbeard
mailto:flexcoders@yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] > On Behalf Of ben.clinkinbeard > Sent: Friday, November 09, 2007 6:03 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> > Subject: [flexcoders] Re:

RE: [flexcoders] Re: Casting in flex

2007-11-09 Thread Alex Harui
, November 09, 2007 6:03 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [flexcoders] Re: Casting in flex Good point Alex, I guess conversion does occur when dealing with primitives. As for there being no casting in AS, how would you describe what happens with

Re: [flexcoders] Re: Casting in flex

2007-11-09 Thread Alex Birch
t returns an object of that type > > > -- > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *ben.clinkinbeard > *Sent:* Friday, November 09, 2007 6:03 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders]

RE: [flexcoders] Re: Casting in flex

2007-11-09 Thread Alex Harui
@yahoogroups.com Subject: [flexcoders] Re: Casting in flex Good point Alex, I guess conversion does occur when dealing with primitives. As for there being no casting in AS, how would you describe what happens with complex types? Like dog = Dog(animalArg) from below. Ben --- In flexcoders@yahoogroups.com

Re: [flexcoders] Re: Casting in flex

2007-11-09 Thread Brendan Meutzner
> > > > > From: flexcoders@yahoogroups.com [mailto: > flexcoders@yahoogroups.com ] On > > Behalf Of ben.clinkinbeard > > Sent: Friday, November 09, 2007 12:29 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Re

[flexcoders] Re: Casting in flex

2007-11-09 Thread ben.clinkinbeard
ROTECTED] On > Behalf Of ben.clinkinbeard > Sent: Friday, November 09, 2007 12:29 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Casting in flex > > > > Yes, casting does not actually convert anything from one type to > another. Casting simply allows you to

RE: [flexcoders] Re: Casting in flex

2007-11-09 Thread Alex Harui
s@yahoogroups.com Subject: [flexcoders] Re: Casting in flex Yes, casting does not actually convert anything from one type to another. Casting simply allows you to refer to an object by a type that it already is, but that its not specifically defined as. I know that sounds confusing, so let me expl

[flexcoders] Re: Casting in flex

2007-11-09 Thread ben.clinkinbeard
Yes, casting does not actually convert anything from one type to another. Casting simply allows you to refer to an object by a type that it already is, but that its not specifically defined as. I know that sounds confusing, so let me explain a bit. You could have a method that accepted an argument

[flexcoders] Re: Casting in flex

2007-11-09 Thread luciddream54321
Hi, I'm working with Arash on this project. Thanks for the suggestions but even using these alternate methods for geting the selectedItem the cast to a Position object still fails. Our dataProvider is an ArrayCollection that is populated by a ColdFusion query returned from a RemoteObject call.

[flexcoders] Re: Casting in flex

2007-11-08 Thread ben.clinkinbeard
I assume your dataProvider is a collection of Position objects? Is it an ArrayCollection? Try changing this line selectedItem = event.currentTarget.dataProvider[selectedRow]; to this selectedItem = event.currentTarget.dataProvider.getItemAt(selectedRow); HTH, Ben --- In flexcoders@yahoogroup