write value from flash file to an external file

Posted: 12-26-2005, 02:13 PM
how can I write value from flash file to an external file like (text file or xml file)
Reply With Quote

Responses to "write value from flash file to an external file"

Motion Maker
Guest
Posts: n/a
 
Re: write value from flash file to an external file
Posted: 12-26-2005, 09:02 PM
You can store data on the client side or the server side.

1. On the local client you can use something in Flash that is the equivalent
to cookies. That is the ActionScript SharedObject class.

Basically the user has control over allowing or disallowing the writing of
the data in this case.

Here is an example I have posted for training seminars I conduct:
http://www.hosfordusa.com/ClickSyste...tsEx01_Doc.php

2. On the server then you use server side scripts to do the work writing to
either files or databases. For the Flash side you use either LoadVars or XML
Actionscript classes to communicate with the server side script.

Here is an example that demonstrates Flash XML Actionscript class
communicating with a PHP script and echoing the data back. It also writes
the data to a file. The problem of course writing to files on the server is
that the last user to use the Flash movie will overwrite the file with the
new data unless you are creating a log type of app were you continuously
append the data to the file.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"art-v" <webforumsuser@macromedia.com> wrote in message
news:dop1a0$5ko$1@forums.macromedia.com...
how can I write value from flash file to an external file like (text file or
xml file)


Reply With Quote
Motion Maker
Guest
Posts: n/a
 
Re: write value from flash file to an external file
Posted: 12-26-2005, 09:03 PM
Forgot the link for the Flash XML to PHP into a serverside file and back to
Flash XML:
http://www.hosfordusa.com/ClickSyste...hoEx01_Doc.php

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"Motion Maker" <macromedia@osfordusahay.com> wrote in message
news:dopp9j$4tl$1@forums.macromedia.com...
You can store data on the client side or the server side.

1. On the local client you can use something in Flash that is the equivalent
to cookies. That is the ActionScript SharedObject class.

Basically the user has control over allowing or disallowing the writing of
the data in this case.

Here is an example I have posted for training seminars I conduct:
http://www.hosfordusa.com/ClickSyste...tsEx01_Doc.php

2. On the server then you use server side scripts to do the work writing to
either files or databases. For the Flash side you use either LoadVars or XML
Actionscript classes to communicate with the server side script.

Here is an example that demonstrates Flash XML Actionscript class
communicating with a PHP script and echoing the data back. It also writes
the data to a file. The problem of course writing to files on the server is
that the last user to use the Flash movie will overwrite the file with the
new data unless you are creating a log type of app were you continuously
append the data to the file.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"art-v" <webforumsuser@macromedia.com> wrote in message
news:dop1a0$5ko$1@forums.macromedia.com...
how can I write value from flash file to an external file like (text file or
xml file)


Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
advice needed... cf write data to xml file for use in flash app thatuses xml file Donna Casey Coldfusion Flash Integration 7 11-30-2005 09:38 PM
Can Flex write to local file? ntsiii Macromedia Flex General Discussion 4 04-11-2005 04:15 PM
read/write binary file Stephen Richardson ASP.NET Web Services 3 08-13-2003 06:56 AM
can director write xml file? Joan Delacourt Macromedia Director Basics 0 07-03-2003 08:31 AM
Write line at beginning of file? Tad McClellan PERL Miscellaneous 2 06-26-2003 06:37 PM