@ Symbol

0 views
Skip to first unread message

Ward Bell

unread,
Oct 15, 2009, 11:51:39 AM10/15/09
to Flex 3:Training from the Source
I've looked carefully in different spots -- searching for the reason/
meaning of the @ symbol in Flex code. I found one place that claims
to have an answer but I have to join their group at a monthly fee to
see it. It isn't worth that, but I am curious.

mattreyuk

unread,
Oct 16, 2009, 11:25:48 AM10/16/09
to Flex 3:Training from the Source
The @ is used to access an attribute in an XML structure - it's part
of E4X (ECMAScript for XML). For example, if I had an XML document
that contained <product name="beer"> then product.@name would give me
beer.

This is covered in lesson 6 of the book.

Ward Bell

unread,
Oct 16, 2009, 5:25:46 PM10/16/09
to Flex 3:Training from the Source
Thanks, Matt! I missed the reference both in Chapter 6 and the index
("attribute operator (@)) when I scanned the chapter.
> > see it.  It isn't worth that, but I am curious.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages