RE: [flexcoders] XML - What var type can I use for my XML nodes?
[Bindable]public var _xmlVar:XML; private function init():void{ _xmlVa = testID.result.(@now=='today')[0]; //NOTE the array[0] brackets. ... All e4x expessions return an XMLList, even if there is only one node, so you must specify that node toput it in an XML variable. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sailorsea21 Sent: Thursday, February 05, 2009 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML - What var type can I use for my XML nodes? Hi everyone, I have the following: What var type can I use for "testID.result.(@now=='today')" to simply my text string? I would like to have the following: [Bindable] public var xmlvar:String = testID.result.(@now=='today'); Thanks. David
Re: [flexcoders] XML - What var type can I use for my XML nodes?
Hi Tracy, I get "An Internal build error..." with: text="{_xmlVar.date}" Thanks! -David From: Tracy Spratt To: flexcoders@yahoogroups.com Sent: Thursday, February 5, 2009 1:03:41 PM Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes? [Bindable]public var _xmlVar:XML; private function init():void{ _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. … All e4x expessions return an XMLList, even if there is only one node, so you must specify that node toput it in an XML variable. Tracy Spratt Lariat Services Flex development bandwidth available From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com ] On Behalf Of sailorsea21 Sent: Thursday, February 05, 2009 10:28 AM To: flexcod...@yahoogro ups.com Subject:[flexcoders] XML - What var type can I use for my XML nodes? Hi everyone, I have the following: What var type can I use for "testID.result. (@now=='today' )" to simply my text string? I would like to have the following: [Bindable] public var xmlvar:String = testID.result. (@now=='today' ); Thanks. David
RE: [flexcoders] XML - What var type can I use for my XML nodes?
Clean the Project: Menu, Project, Clean. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of - - Sent: Thursday, February 05, 2009 2:48 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] XML - What var type can I use for my XML nodes? Hi Tracy, I get "An Internal build error..." with: text="{_xmlVar.date}" Thanks! -David From: Tracy Spratt To: flexcoders@yahoogroups.com Sent: Thursday, February 5, 2009 1:03:41 PM Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes? [Bindable]public var _xmlVar:XML; private function init():void{ _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. ... All e4x expessions return an XMLList, even if there is only one node, so you must specify that node toput it in an XML variable. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcod...@yahoogro ups.com <http://ups.com/> [mailto: flexcod...@yahoogro ups.com ] On Behalf Of sailorsea21 Sent: Thursday, February 05, 2009 10:28 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] XML - What var type can I use for my XML nodes? Hi everyone, I have the following: What var type can I use for "testID.result.. (@now=='today' )" to simply my text string? I would like to have the following: [Bindable] public var xmlvar:String = testID.result. (@now=='today' ); Thanks. David
Re: [flexcoders] XML - What var type can I use for my XML nodes?
Hi Tracy, it still doesn't work... From: Tracy Spratt To: flexcoders@yahoogroups.com Sent: Thursday, February 5, 2009 3:54:34 PM Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes? Clean the Project: Menu, Project, Clean. Tracy Spratt Lariat Services Flex development bandwidth available From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of - - Sent: Thursday, February 05, 2009 2:48 PM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] XML - What var type can I use for my XML nodes? Hi Tracy, I get "An Internal build error..." with: text="{_xmlVar.date}" Thanks! -David From:Tracy Spratt To: flexcod...@yahoogro ups.com Sent: Thursday, February 5, 2009 1:03:41 PM Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes? [Bindable]public var _xmlVar:XML; private function init():void{ _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. … All e4x expessions return an XMLList, even if there is only one node, so you must specify that node toput it in an XML variable. Tracy Spratt Lariat Services Flex development bandwidth available From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com ] On Behalf Of sailorsea21 Sent: Thursday, February 05, 2009 10:28 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] XML - What var type can I use for my XML nodes? Hi everyone, I have the following: What var type can I use for "testID.result. . (@now=='today' )" to simply my text string? I would like to have the following: [Bindable] public var xmlvar:String = testID.result. (@now=='today' ); Thanks. David