Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-11 Thread Omar Fouad

teresa i Remeber i sent you the link at php.net where u can find some php
code to alterate and save external xml files

it is a very simple php function called write(). look for it at www.php.net

regards

On 3/9/07, Sebastián Sirvent [EMAIL PROTECTED] wrote:





On 3/8/07 7:48 PM, Teresa Hardy [EMAIL PROTECTED] wrote:

 Wow, I seriously misread something along the line. But it sounds like I
can
 pass something back to the script and that would work. Thanks I'll go
look
 at the other forum but I thought this was way above a newbie question.
 Teresa

 On 3/8/07, Muzak [EMAIL PROTECTED] wrote:

 That's because Flash can't write any files, only read.
 You'll need a server side language to handle that for you (ASP, PHP,
 ColdFusion, etc..) or look into Remoting.

 And you probably may wanna join the Flash Newbie (figleaf) or
 FlashMacromedia (yahoogroups) list for this type of questions.
 http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
 http://tech.groups.yahoo.com/group/FLASHmacromedia/

 regards,
 Muzak

 - Original Message -
 From: Teresa Hardy [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 08, 2007 11:12 PM
 Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML
file


 This definitely loads the Flash object...I get that part. But it
doesn't
 write to my file called setup.xml. I am in the OReilly ActionScript
book
 now
 and this is the first time it has ever failed me. I tried parseXML and
 sendAndLoad but I can't seem to write into the file.

 Thanks for helping me.
 Teresa

 On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:

 All you need to do is set the nodeValue rather than access it.

 var trial_xml:XML = new XML(navigationcategoryThis is a
 category/category/navigation);
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
 category;
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trace(trial_xml);
 stop();

 trace output:

 This is a category
 This is a NEW category
 navigationcategoryThis is a NEW category/category/navigation

 Hope that helps,
 Andrew


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


--

Sebastián Sirvent


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-11 Thread Omar Fouad

see This http://www.php.net/manual/en/function.fwrite.php

On 3/11/07, Omar Fouad [EMAIL PROTECTED] wrote:


teresa i Remeber i sent you the link at php.net where u can find some php
code to alterate and save external xml files

it is a very simple php function called write(). look for it at
www.php.net

regards

 On 3/9/07, Sebastián Sirvent [EMAIL PROTECTED] wrote:




 On 3/8/07 7:48 PM, Teresa Hardy [EMAIL PROTECTED]  wrote:

  Wow, I seriously misread something along the line. But it sounds like
 I can
  pass something back to the script and that would work. Thanks I'll go
 look
  at the other forum but I thought this was way above a newbie question.

  Teresa
 
  On 3/8/07, Muzak [EMAIL PROTECTED] wrote:
 
  That's because Flash can't write any files, only read.
  You'll need a server side language to handle that for you (ASP, PHP,
  ColdFusion, etc..) or look into Remoting.
 
  And you probably may wanna join the Flash Newbie (figleaf) or
  FlashMacromedia (yahoogroups) list for this type of questions.
  http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
  http://tech.groups.yahoo.com/group/FLASHmacromedia/
 
  regards,
  Muzak
 
  - Original Message -
  From: Teresa Hardy [EMAIL PROTECTED]
  To: flashcoders@chattyfig.figleaf.com
  Sent: Thursday, March 08, 2007 11:12 PM
  Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML
 file
 
 
  This definitely loads the Flash object...I get that part. But it
 doesn't
  write to my file called setup.xml. I am in the OReilly ActionScript
 book
  now
  and this is the first time it has ever failed me. I tried parseXML
 and
  sendAndLoad but I can't seem to write into the file.
 
  Thanks for helping me.
  Teresa
 
  On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:
 
  All you need to do is set the nodeValue rather than access it.
 
  var trial_xml:XML = new XML(navigationcategoryThis is a
  category/category/navigation);
  trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
  trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a
 NEW
  category;
  trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
  trace(trial_xml);
  stop();
 
  trace output:
 
  This is a category
  This is a NEW category
  navigationcategoryThis is a NEW
 category/category/navigation
 
  Hope that helps,
  Andrew
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 --

 Sebastián Sirvent


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful nor conceited It is never rude or selfish. It does not take offense
and is not resentful. Love takes no pleasure in other people's sins...but
delights in the truth. It is always ready to excuse, to trust, to hope...
and to endure... whatever comes.





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-11 Thread Teresa Hardy

Omar,
Thanks for the php references. I need that for a  different piece of this
puzzle. I left out the the non-Flash part of this story in the original
description. I have a bunch of Python wrapped around the Flash. So I wrote a
Python CGI to write the variable out to XML and bridge my little
misunderstanding with Flash. I use a .send() to invoke the Python with a
query string and it works fine.

Thanks,
Teresa



On 3/11/07, Omar Fouad [EMAIL PROTECTED] wrote:


teresa i Remeber i sent you the link at php.net where u can find some php
code to alterate and save external xml files

it is a very simple php function called write(). look for it at
www.php.net

regards

On 3/9/07, Sebastián Sirvent [EMAIL PROTECTED] wrote:




 On 3/8/07 7:48 PM, Teresa Hardy [EMAIL PROTECTED] wrote:

  Wow, I seriously misread something along the line. But it sounds like
I
 can
  pass something back to the script and that would work. Thanks I'll go
 look
  at the other forum but I thought this was way above a newbie question.
  Teresa
 
  On 3/8/07, Muzak [EMAIL PROTECTED] wrote:
 
  That's because Flash can't write any files, only read.
  You'll need a server side language to handle that for you (ASP, PHP,
  ColdFusion, etc..) or look into Remoting.
 
  And you probably may wanna join the Flash Newbie (figleaf) or
  FlashMacromedia (yahoogroups) list for this type of questions.
  http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
  http://tech.groups.yahoo.com/group/FLASHmacromedia/
 
  regards,
  Muzak
 
  - Original Message -
  From: Teresa Hardy [EMAIL PROTECTED]
  To: flashcoders@chattyfig.figleaf.com
  Sent: Thursday, March 08, 2007 11:12 PM
  Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML
 file
 
 
  This definitely loads the Flash object...I get that part. But it
 doesn't
  write to my file called setup.xml. I am in the OReilly ActionScript
 book
  now
  and this is the first time it has ever failed me. I tried parseXML
and
  sendAndLoad but I can't seem to write into the file.
 
  Thanks for helping me.
  Teresa
 
  On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:
 
  All you need to do is set the nodeValue rather than access it.
 
  var trial_xml:XML = new XML(navigationcategoryThis is a
  category/category/navigation);
  trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
  trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a
NEW
  category;
  trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
  trace(trial_xml);
  stop();
 
  trace output:
 
  This is a category
  This is a NEW category
  navigationcategoryThis is a NEW
category/category/navigation
 
  Hope that helps,
  Andrew
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 --

 Sebastián Sirvent


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never
boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but
delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread dr.ache
Maybe i get you wrong, but maybe |nodeValue:String is, what you are 
looking for.

Give the manual a chance - search for XMLNode

greez,
dr.ache



|Teresa Hardy schrieb:
I thought this was really basic and easy but I just can't find the 
syntax to
do it. All I am trying to do is update one nodeValue from the swf to 
the xml

based on which button is selected. I don't want to make a new node, just
update the theme that exists. The reading part listed below works 
fine. I

just can't figure out how to write TO a specified child node and all the
documentation has me totally confused. I am starting to wonder if I 
have to

.removeNode and recreate itI still don't have the syntax.

Thanks in advance. I have been learning a huge amount from listening 
to all

the conversations here as I teach myself ActionScript!

Teresa

my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.load(setup.xml);
my_xml.onLoad = function(success) {
   if (success) {
   sessionInfo_xml = my_xml.firstChild;
   children = sessionInfo_xml.childNodes;
   folderName = children[0].firstChild.nodeValue;
   maxImages = children[1].firstChild.nodeValue;
   domainName = children[2].firstChild.nodeValue;
   searchSubject = children[3].firstChild.nodeValue;
   theme = children[4].firstChild.nodeValue;
   } else {
   trace(XML error);
   }
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Teresa Hardy

I have been through more manuals than I can list, have also been through the
complete www.lynda.com tutorial. All the examples create new nodes. I have
not seen any example that writes to an existing node.
Teresa

On 3/8/07, dr.ache [EMAIL PROTECTED] wrote:


Maybe i get you wrong, but maybe |nodeValue:String is, what you are
looking for.
Give the manual a chance - search for XMLNode

greez,
dr.ache



|Teresa Hardy schrieb:
 I thought this was really basic and easy but I just can't find the
 syntax to
 do it. All I am trying to do is update one nodeValue from the swf to
 the xml
 based on which button is selected. I don't want to make a new node, just
 update the theme that exists. The reading part listed below works
 fine. I
 just can't figure out how to write TO a specified child node and all the
 documentation has me totally confused. I am starting to wonder if I
 have to
 .removeNode and recreate itI still don't have the syntax.

 Thanks in advance. I have been learning a huge amount from listening
 to all
 the conversations here as I teach myself ActionScript!

 Teresa

 my_xml = new XML();
 my_xml.ignoreWhite = true;
 my_xml.load(setup.xml);
 my_xml.onLoad = function(success) {
if (success) {
sessionInfo_xml = my_xml.firstChild;
children = sessionInfo_xml.childNodes;
folderName = children[0].firstChild.nodeValue;
maxImages = children[1].firstChild.nodeValue;
domainName = children[2].firstChild.nodeValue;
searchSubject = children[3].firstChild.nodeValue;
theme = children[4].firstChild.nodeValue;
} else {
trace(XML error);
}
 };
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread R�kos Attila

node.nodeValue = something;

  Attila

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Rost, Andrew
All you need to do is set the nodeValue rather than access it.

var trial_xml:XML = new XML(navigationcategoryThis is a
category/category/navigation);
trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
category;
trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
trace(trial_xml);
stop();

trace output:

This is a category
This is a NEW category
navigationcategoryThis is a NEW category/category/navigation

Hope that helps,
Andrew
-Original Message-
From: Teresa Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 2:49 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file

I have been through more manuals than I can list, have also been through the
complete www.lynda.com tutorial. All the examples create new nodes. I have
not seen any example that writes to an existing node.
Teresa

On 3/8/07, dr.ache [EMAIL PROTECTED] wrote:

 Maybe i get you wrong, but maybe |nodeValue:String is, what you are
 looking for.
 Give the manual a chance - search for XMLNode

 greez,
 dr.ache



 |Teresa Hardy schrieb:
  I thought this was really basic and easy but I just can't find the
  syntax to
  do it. All I am trying to do is update one nodeValue from the swf to
  the xml
  based on which button is selected. I don't want to make a new node, just
  update the theme that exists. The reading part listed below works
  fine. I
  just can't figure out how to write TO a specified child node and all the
  documentation has me totally confused. I am starting to wonder if I
  have to
  .removeNode and recreate itI still don't have the syntax.
 
  Thanks in advance. I have been learning a huge amount from listening
  to all
  the conversations here as I teach myself ActionScript!
 
  Teresa
 
  my_xml = new XML();
  my_xml.ignoreWhite = true;
  my_xml.load(setup.xml);
  my_xml.onLoad = function(success) {
 if (success) {
 sessionInfo_xml = my_xml.firstChild;
 children = sessionInfo_xml.childNodes;
 folderName = children[0].firstChild.nodeValue;
 maxImages = children[1].firstChild.nodeValue;
 domainName = children[2].firstChild.nodeValue;
 searchSubject = children[3].firstChild.nodeValue;
 theme = children[4].firstChild.nodeValue;
 } else {
 trace(XML error);
 }
  };
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Teresa Hardy

This definitely loads the Flash object...I get that part. But it doesn't
write to my file called setup.xml. I am in the OReilly ActionScript book now
and this is the first time it has ever failed me. I tried parseXML and
sendAndLoad but I can't seem to write into the file.

Thanks for helping me.
Teresa

On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:


All you need to do is set the nodeValue rather than access it.

var trial_xml:XML = new XML(navigationcategoryThis is a
category/category/navigation);
trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
category;
trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
trace(trial_xml);
stop();

trace output:

This is a category
This is a NEW category
navigationcategoryThis is a NEW category/category/navigation

Hope that helps,
Andrew
-Original Message-
From: Teresa Hardy [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 08, 2007 2:49 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file

I have been through more manuals than I can list, have also been through
the
complete www.lynda.com tutorial. All the examples create new nodes. I have
not seen any example that writes to an existing node.
Teresa

On 3/8/07, dr.ache [EMAIL PROTECTED] wrote:

 Maybe i get you wrong, but maybe |nodeValue:String is, what you are
 looking for.
 Give the manual a chance - search for XMLNode

 greez,
 dr.ache



 |Teresa Hardy schrieb:
  I thought this was really basic and easy but I just can't find the
  syntax to
  do it. All I am trying to do is update one nodeValue from the swf to
  the xml
  based on which button is selected. I don't want to make a new node,
just
  update the theme that exists. The reading part listed below works
  fine. I
  just can't figure out how to write TO a specified child node and all
the
  documentation has me totally confused. I am starting to wonder if I
  have to
  .removeNode and recreate itI still don't have the syntax.
 
  Thanks in advance. I have been learning a huge amount from listening
  to all
  the conversations here as I teach myself ActionScript!
 
  Teresa
 
  my_xml = new XML();
  my_xml.ignoreWhite = true;
  my_xml.load(setup.xml);
  my_xml.onLoad = function(success) {
 if (success) {
 sessionInfo_xml = my_xml.firstChild;
 children = sessionInfo_xml.childNodes;
 folderName = children[0].firstChild.nodeValue;
 maxImages = children[1].firstChild.nodeValue;
 domainName = children[2].firstChild.nodeValue;
 searchSubject = children[3].firstChild.nodeValue;
 theme = children[4].firstChild.nodeValue;
 } else {
 trace(XML error);
 }
  };
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread R�kos Attila

TH This definitely loads the Flash object...I get that part. But it doesn't
TH write to my file called setup.xml. I am in the OReilly ActionScript book now
TH and this is the first time it has ever failed me. I tried parseXML and
TH sendAndLoad but I can't seem to write into the file.

A Flash movie cannot write anything to a file, especially if it is
located on a remote server (not mentioning that automatically saving
changes to a file made on an object residing in the memory is totally
pointless). If you want to save your XML, make your changes and send
the whole XML back to a server-side program which can store it to a
file. Or if you are on desktop, look after some third party
projector creators providing file handling capabilities.

  Attila


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Muzak
That's because Flash can't write any files, only read.
You'll need a server side language to handle that for you (ASP, PHP, 
ColdFusion, etc..) or look into Remoting.

And you probably may wanna join the Flash Newbie (figleaf) or FlashMacromedia 
(yahoogroups) list for this type of questions.
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
http://tech.groups.yahoo.com/group/FLASHmacromedia/

regards,
Muzak

- Original Message - 
From: Teresa Hardy [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 08, 2007 11:12 PM
Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file


 This definitely loads the Flash object...I get that part. But it doesn't
 write to my file called setup.xml. I am in the OReilly ActionScript book now
 and this is the first time it has ever failed me. I tried parseXML and
 sendAndLoad but I can't seem to write into the file.

 Thanks for helping me.
 Teresa

 On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:

 All you need to do is set the nodeValue rather than access it.

 var trial_xml:XML = new XML(navigationcategoryThis is a
 category/category/navigation);
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
 category;
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trace(trial_xml);
 stop();

 trace output:

 This is a category
 This is a NEW category
 navigationcategoryThis is a NEW category/category/navigation

 Hope that helps,
 Andrew


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Rost, Andrew
Sorry miss understood the question.

You won't be able to write back to the XML file located on the server
directly. You'll have to add a logic layer (ASP, PHP, C#, etc...) that you
can send the new XML data and have that layer update your XML file
(XMLConnector, WebServiceConnector, etc...)

Andrew
-Original Message-
From: Teresa Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 4:12 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file

This definitely loads the Flash object...I get that part. But it doesn't
write to my file called setup.xml. I am in the OReilly ActionScript book now
and this is the first time it has ever failed me. I tried parseXML and
sendAndLoad but I can't seem to write into the file.

Thanks for helping me.
Teresa

On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:

 All you need to do is set the nodeValue rather than access it.

 var trial_xml:XML = new XML(navigationcategoryThis is a
 category/category/navigation);
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
 category;
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trace(trial_xml);
 stop();

 trace output:

 This is a category
 This is a NEW category
 navigationcategoryThis is a NEW category/category/navigation

 Hope that helps,
 Andrew
 -Original Message-
 From: Teresa Hardy [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 08, 2007 2:49 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file

 I have been through more manuals than I can list, have also been through
 the
 complete www.lynda.com tutorial. All the examples create new nodes. I have
 not seen any example that writes to an existing node.
 Teresa

 On 3/8/07, dr.ache [EMAIL PROTECTED] wrote:
 
  Maybe i get you wrong, but maybe |nodeValue:String is, what you are
  looking for.
  Give the manual a chance - search for XMLNode
 
  greez,
  dr.ache
 
 
 
  |Teresa Hardy schrieb:
   I thought this was really basic and easy but I just can't find the
   syntax to
   do it. All I am trying to do is update one nodeValue from the swf to
   the xml
   based on which button is selected. I don't want to make a new node,
 just
   update the theme that exists. The reading part listed below works
   fine. I
   just can't figure out how to write TO a specified child node and all
 the
   documentation has me totally confused. I am starting to wonder if I
   have to
   .removeNode and recreate itI still don't have the syntax.
  
   Thanks in advance. I have been learning a huge amount from listening
   to all
   the conversations here as I teach myself ActionScript!
  
   Teresa
  
   my_xml = new XML();
   my_xml.ignoreWhite = true;
   my_xml.load(setup.xml);
   my_xml.onLoad = function(success) {
  if (success) {
  sessionInfo_xml = my_xml.firstChild;
  children = sessionInfo_xml.childNodes;
  folderName = children[0].firstChild.nodeValue;
  maxImages = children[1].firstChild.nodeValue;
  domainName = children[2].firstChild.nodeValue;
  searchSubject = children[3].firstChild.nodeValue;
  theme = children[4].firstChild.nodeValue;
  } else {
  trace(XML error);
  }
   };
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
  
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought 

Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Teresa Hardy

Wow, I seriously misread something along the line. But it sounds like I can
pass something back to the script and that would work. Thanks I'll go look
at the other forum but I thought this was way above a newbie question.
Teresa

On 3/8/07, Muzak [EMAIL PROTECTED] wrote:


That's because Flash can't write any files, only read.
You'll need a server side language to handle that for you (ASP, PHP,
ColdFusion, etc..) or look into Remoting.

And you probably may wanna join the Flash Newbie (figleaf) or
FlashMacromedia (yahoogroups) list for this type of questions.
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
http://tech.groups.yahoo.com/group/FLASHmacromedia/

regards,
Muzak

- Original Message -
From: Teresa Hardy [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Thursday, March 08, 2007 11:12 PM
Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file


 This definitely loads the Flash object...I get that part. But it doesn't
 write to my file called setup.xml. I am in the OReilly ActionScript book
now
 and this is the first time it has ever failed me. I tried parseXML and
 sendAndLoad but I can't seem to write into the file.

 Thanks for helping me.
 Teresa

 On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:

 All you need to do is set the nodeValue rather than access it.

 var trial_xml:XML = new XML(navigationcategoryThis is a
 category/category/navigation);
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
 category;
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trace(trial_xml);
 stop();

 trace output:

 This is a category
 This is a NEW category
 navigationcategoryThis is a NEW category/category/navigation

 Hope that helps,
 Andrew


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help with updating a nodeValue in an XML file

2007-03-08 Thread Sebastián Sirvent



On 3/8/07 7:48 PM, Teresa Hardy [EMAIL PROTECTED] wrote:

 Wow, I seriously misread something along the line. But it sounds like I can
 pass something back to the script and that would work. Thanks I'll go look
 at the other forum but I thought this was way above a newbie question.
 Teresa
 
 On 3/8/07, Muzak [EMAIL PROTECTED] wrote:
 
 That's because Flash can't write any files, only read.
 You'll need a server side language to handle that for you (ASP, PHP,
 ColdFusion, etc..) or look into Remoting.
 
 And you probably may wanna join the Flash Newbie (figleaf) or
 FlashMacromedia (yahoogroups) list for this type of questions.
 http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
 http://tech.groups.yahoo.com/group/FLASHmacromedia/
 
 regards,
 Muzak
 
 - Original Message -
 From: Teresa Hardy [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Thursday, March 08, 2007 11:12 PM
 Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file
 
 
 This definitely loads the Flash object...I get that part. But it doesn't
 write to my file called setup.xml. I am in the OReilly ActionScript book
 now
 and this is the first time it has ever failed me. I tried parseXML and
 sendAndLoad but I can't seem to write into the file.
 
 Thanks for helping me.
 Teresa
 
 On 3/8/07, Rost, Andrew [EMAIL PROTECTED] wrote:
 
 All you need to do is set the nodeValue rather than access it.
 
 var trial_xml:XML = new XML(navigationcategoryThis is a
 category/category/navigation);
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trial_xml.firstChild.firstChild.firstChild.nodeValue = This is a NEW
 category;
 trace(trial_xml.firstChild.firstChild.firstChild.nodeValue);
 trace(trial_xml);
 stop();
 
 trace output:
 
 This is a category
 This is a NEW category
 navigationcategoryThis is a NEW category/category/navigation
 
 Hope that helps,
 Andrew
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 

-- 

Sebastián Sirvent


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com