Thanks Tracy,
But complex objects are passed by reference. Right after the assignment in
the function, the address of the variable is modified, i.e. += actually
creates a new variable...
- Breizo
Tracy Spratt-2 wrote:
>
> Hmm, it is acting like the XMLList variable is being passed as a value and
Hmm, it is acting like the XMLList variable is being passed as a value and
not a reference.
I can think of at least three other ways to do this.
Tracy Spratt,
Lariat Services, development services available
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
Subject: RE: [flexcoders] XMLList to ArrayCollection
Sure, but you have to do it manually. Loop over the nodes, then use the
attributes() to loop over the attributes. If I recall correctly,
attribute[n] will give you the attr value, and attribute[n].name() will
give you the attr name. XML.name
Sure, but you have to do it manually. Loop over the nodes, then use the
attributes() to loop over the attributes. If I recall correctly,
attribute[n] will give you the attr value, and attribute[n].name() will
give you the attr name. XML.name() (or localName()) will give you the
name of the node.
Surprised this didn't error before.
All e4x expressions reuturn an XMLList, even if there is only one node.
So you have to do:
x = srv.lastResult.Term.Department.(@id==cDept).Course.(@num==cCrs)[0];
//to get the one and only XML node
Tracy
From: flexcoders@y
xml.gallery.photo.(@SubMenuID == "4")
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of NileAge, Mail
Sent: Wednesday, February 27, 2008 9:17 AM
To: [EMAIL PROTECTED]; 'Flex Components'; [EMAIL PROTECTED];
flexcoders@yahoogroups.com; [EMAI
.item.child("koala").(text()=="Y")
figo2324 wrote:
>
> Hi people, i need your help, i have a xmllist object so i need to
> query this xmllist, im doing it in this way
>
> var jo:XMLList=myDataProvider.data.item.(koala=="Y");
>
> where myDataProvider.data =
>
>
> ccct
> X
>
>
> sambil
> Y
>
7:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] XMLList
Interest to know if anyone has been able to make this work.
I struggled with trying to use variables in filtering XMLList without
success.
Alex Harui wrote:
>
>
> ([variab
Interest to know if anyone has been able to make this work.
I struggled with trying to use variables in filtering XMLList without success.
Alex Harui wrote:
>
>
> ([variable] == “Y”)
>
>
>
>
>
> *From:* flexcoders@yah
([variable] == "Y")
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of figo2324
Sent: Friday, September 14, 2007 2:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XMLList
Hi people, i need your help, i have a xmllist object s
Thanks !
-- Keith H --
Tracy Spratt wrote:
>
> One way”:
>
> var points:XMLList=obj.POINT;
>
> var obj:XML = ;
>
> obj.setChildren(points);
>
> Tracy
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> *On
One way":
var points:XMLList=obj.POINT;
var obj:XML = ;
obj.setChildren(points);
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 11:23 AM
To: flexcoders@yahoogroups.com
Subj
It ususlly depends on what format you get your data in. I almost always
use xml between the server and Flex, so when I consume that data, I use
using e4x expressions, which return XML and XMLList.
If I was using a back-end + RPC protocol that didn't steer so heavily
towards xml, and was recei
Assuming the XMLListCollection created from the myData XML object looks
like this:
public var col:XMLListCollection = new
XMLListCollection(myData.children());
Then you would sort on the category name like so:
private function applyMySort():void
{
var s:Sort = new Sort();
14 matches
Mail list logo