In Lesson 7, in the CategorizedProductManager.mxml, in function
prodByCategoryHandler, when creating the Product object, instead of
using the casting operator ( ) , I use the 'as' operator.
This caused the categorizedProducts to be filled with null values with
no error.
I did abit of check in the differences between using ( ) or 'as' and
it tells me that using 'as' is recommended since it doesn't throws any
TypeError but fill the Product object with default values for the
relevant type, whereas using ( ) will throw a TypeError if flex fails
to parse the data.
I would like to know whether the 'as' operator is easily switchable
with the ( ) operator when doing casting.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "Flex 3:Training from the Source" group.
To post to this group, send email to
flex-3training-...@googlegroups.com.
To unsubscribe from this group, send email to
flex-3training-from-t...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/flex-3training-from-the-source?hl=en.