Unfortunately you can't yet, which is definitely a shame. We'd all love to
do that, there's a feature request somewhere on the Adobe bugs site you can
vote for I believe.
-Josh
On Thu, Dec 4, 2008 at 4:47 PM, ADK [EMAIL PROTECTED] wrote:
I have built a galaxy of data structures, in a hierarchical order. I
can easily transverse and zero-on onto the object given a few params.
Now what i want to do is write an E4X like statement like:
var myObject:Object = car.objects().(name() == radiator @id
==PART2234 @r==12);
and it calls name() of my carpart object, and retrieve id, r. my
carpart class is dynamic
Here are a few points on my class.
1. Objects() will return an Array of various car parts like radiator,
carb, hoses, enginebox etc etc
2. i wanna avoid filtering using filter function callbacks in
arraycollection. just wanna enable use of e4x like expressions in
my class
3. all my classes returned by objects() are of type class partbase
which does not have a base class (like XML, XMLList)
I opened Global.as. and looked at XMLList nd XML class headers..
pretty straight, has no base class nothing at all to raise eyebrows.
Oh i get an run time error:
TypeError: Error #1123: Filter operator not supported on type
com.parts.EngineBlock
an object of com.parts.EngineBlock was in the first of the Objects
array...
Thanks a ton,
ady
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
--
Therefore, send not to know For whom the bell tolls. It tolls for thee.
Like the cut of my jib? Check out my Flex blog!
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk