__
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
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:
, 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
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]
@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
>
> >
> > 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
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
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
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
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.
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
11 matches
Mail list logo