I've been using "as" already. In fact, I must say I am really impressed with the compiler, which actually suggests that you use "as" when you are trying to do type casting the old type(object) way. It says something like "hey dude I think you are tryin to type cast, but the way you're doin it is real old school and wont work in AS3. Try it this way using "as"!
Hank
On 8/10/06, Tom Bray <[EMAIL PROTECTED]> wrote:
Hey Hank,
Check the "Other" section at this link: http://livedocs.macromedia.com/flex/2/langref/operators.html
"as" is a new one too.
-TomOn 8/10/06, hank williams < [EMAIL PROTECTED]> wrote:Thanks Claus.
So "is" is a new keyword. Cant find it in the online docs because I
guess its to common so it returns "nothing found". Does that have any
other uses?
Thanks
Hank
On 8/10/06, Claus Wahlers <[EMAIL PROTECTED]> wrote:
> hank williams wrote:
>
> > I have an object that is either a TextArea or a TextInput.
> > I want to find out which one it is. How do I do that?
>
> if(o is TextArea) { .. }
>
> Cheers,
> Claus.
>
>> --
> 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
>
>
>
>
>
>
>
__._,_.___
--
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.
__,_._,___

