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("<navigation><category>This 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
>>>> <navigation><category>This 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