Re: [flexcoders] Re: Changing Root Node attributes

2008-09-08 Thread Josh McDonald
Must simply be a restriction of your original source ( or  or
something). Glad to have helped! Double check the docs for whatever source
you used, and if it makes no mention of un-modifiable attributes in the root
node, add a comment to the docs or file a bug with Adobe, and you'll save
somebody else the same troubles you've just had :)

-Josh

On Tue, Sep 9, 2008 at 10:13 AM, Rafael Faria
<[EMAIL PROTECTED]>wrote:

> LEGEND! :P
>
> It actually works using .copy() :P
>
> not sure if the right way thou, but look what i've done and let me
> know if there is another way to do that.
>
> var rootNode:XML = XML(tree.dataProvider);
> var cloneXML:XML =  rootNode.copy();
> [EMAIL PROTECTED] = Number(rootNode.attribute('sid').toXMLString())+1;
> tree.dataProvider = cloneXML;
>
>
> working like a charm now :)
>
> raf
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Can you change other nodes? It could be something to do with the
> source of
> > your XML... Perhaps you can .copy() it first?
> >
> > -Josh
> >
> > On Tue, Sep 9, 2008 at 9:38 AM, Rafael Faria
> > <[EMAIL PROTECTED]>wrote:
> >
> > > That's the thing. I thought it would but it doesnt.
> > >
> > > No idea why i can't change the root node of the xml.
> > >
> > > Any other suggestion?!
> > >
> > > raf
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Josh McDonald"  wrote:
> > > >
> > > > Have you tried:
> > > >
> > > > [EMAIL PROTECTED] = "59";
> > > >
> > > > And it didn't work?
> > > >
> > > > -Josh
> > > >
> > > > On Mon, Sep 8, 2008 at 3:46 PM, Rafael Faria
> > > > wrote:
> > > >
> > > > > Hello All,
> > > > >
> > > > > I need your help again.
> > > > >
> > > > > I make a call and get in return a XML. With this XML, i feed
> my tree's
> > > > > dataprovider. It is something like this:
> > > > >
> > > > > 
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > > 
> > > > >
> > > > > The thing is, at some point i need to get the "sids" from the root
> > > > > node (so far no problem, i'm using
> > > > > XML(tree.dataProvider).attribute('sids').toXMLString() and it
> works)
> > > > > but the catch is that i need to change it to 59 and i can't
> manage to
> > > > > change it no matter what.
> > > > >
> > > > > Any one could throw some ideas so i can solve my problem ?
> please? :P
> > > > >
> > > > > thanks
> > > > > Raf
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > > --
> > > > > Flexcoders Mailing List
> > > > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > > 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."
> > > >
> > > > http://flex.joshmcdonald.info/
> > > >
> > > > :: Josh 'G-Funk' McDonald
> > > > :: 0437 221 380 :: josh@
> > > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > 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."
> >
> > http://flex.joshmcdonald.info/
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 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."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Changing Root Node attributes

2008-09-08 Thread Rafael Faria
LEGEND! :P

It actually works using .copy() :P

not sure if the right way thou, but look what i've done and let me
know if there is another way to do that.

var rootNode:XML = XML(tree.dataProvider);
var cloneXML:XML =  rootNode.copy();
[EMAIL PROTECTED] = Number(rootNode.attribute('sid').toXMLString())+1;
tree.dataProvider = cloneXML;


working like a charm now :)

raf


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Can you change other nodes? It could be something to do with the
source of
> your XML... Perhaps you can .copy() it first?
> 
> -Josh
> 
> On Tue, Sep 9, 2008 at 9:38 AM, Rafael Faria
> <[EMAIL PROTECTED]>wrote:
> 
> > That's the thing. I thought it would but it doesnt.
> >
> > No idea why i can't change the root node of the xml.
> >
> > Any other suggestion?!
> >
> > raf
> >
> >
> > --- In flexcoders@yahoogroups.com, "Josh McDonald"  wrote:
> > >
> > > Have you tried:
> > >
> > > [EMAIL PROTECTED] = "59";
> > >
> > > And it didn't work?
> > >
> > > -Josh
> > >
> > > On Mon, Sep 8, 2008 at 3:46 PM, Rafael Faria
> > > wrote:
> > >
> > > > Hello All,
> > > >
> > > > I need your help again.
> > > >
> > > > I make a call and get in return a XML. With this XML, i feed
my tree's
> > > > dataprovider. It is something like this:
> > > >
> > > > 
> > > >  
> > > >  
> > > >  
> > > >  
> > > >  
> > > >  
> > > > 
> > > >
> > > > The thing is, at some point i need to get the "sids" from the root
> > > > node (so far no problem, i'm using
> > > > XML(tree.dataProvider).attribute('sids').toXMLString() and it
works)
> > > > but the catch is that i need to change it to 59 and i can't
manage to
> > > > change it no matter what.
> > > >
> > > > Any one could throw some ideas so i can solve my problem ?
please? :P
> > > >
> > > > thanks
> > > > Raf
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > 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."
> > >
> > > http://flex.joshmcdonald.info/
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > 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."
> 
> http://flex.joshmcdonald.info/
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




Re: [flexcoders] Re: Changing Root Node attributes

2008-09-08 Thread Josh McDonald
Can you change other nodes? It could be something to do with the source of
your XML... Perhaps you can .copy() it first?

-Josh

On Tue, Sep 9, 2008 at 9:38 AM, Rafael Faria
<[EMAIL PROTECTED]>wrote:

> That's the thing. I thought it would but it doesnt.
>
> No idea why i can't change the root node of the xml.
>
> Any other suggestion?!
>
> raf
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Have you tried:
> >
> > [EMAIL PROTECTED] = "59";
> >
> > And it didn't work?
> >
> > -Josh
> >
> > On Mon, Sep 8, 2008 at 3:46 PM, Rafael Faria
> > <[EMAIL PROTECTED]>wrote:
> >
> > > Hello All,
> > >
> > > I need your help again.
> > >
> > > I make a call and get in return a XML. With this XML, i feed my tree's
> > > dataprovider. It is something like this:
> > >
> > > 
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > > 
> > >
> > > The thing is, at some point i need to get the "sids" from the root
> > > node (so far no problem, i'm using
> > > XML(tree.dataProvider).attribute('sids').toXMLString() and it works)
> > > but the catch is that i need to change it to 59 and i can't manage to
> > > change it no matter what.
> > >
> > > Any one could throw some ideas so i can solve my problem ? please? :P
> > >
> > > thanks
> > > Raf
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > 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."
> >
> > http://flex.joshmcdonald.info/
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> 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."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Changing Root Node attributes

2008-09-08 Thread Rafael Faria
That's the thing. I thought it would but it doesnt.

No idea why i can't change the root node of the xml.

Any other suggestion?!

raf


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Have you tried:
> 
> [EMAIL PROTECTED] = "59";
> 
> And it didn't work?
> 
> -Josh
> 
> On Mon, Sep 8, 2008 at 3:46 PM, Rafael Faria
> <[EMAIL PROTECTED]>wrote:
> 
> > Hello All,
> >
> > I need your help again.
> >
> > I make a call and get in return a XML. With this XML, i feed my tree's
> > dataprovider. It is something like this:
> >
> > 
> >  
> >  
> >  
> >  
> >  
> >  
> > 
> >
> > The thing is, at some point i need to get the "sids" from the root
> > node (so far no problem, i'm using
> > XML(tree.dataProvider).attribute('sids').toXMLString() and it works)
> > but the catch is that i need to change it to 59 and i can't manage to
> > change it no matter what.
> >
> > Any one could throw some ideas so i can solve my problem ? please? :P
> >
> > thanks
> > Raf
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > 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."
> 
> http://flex.joshmcdonald.info/
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>