Computers & Internet Logo

Related Topics:

Posted on Mar 06, 2008

ActionScript How can I store the XML data from Actionscript into external XML file?

1 Answer

Anonymous

Level 1:

An expert who has achieved level 1.

Corporal:

An expert that has over 10 points.

Mayor:

An expert whose answer got voted for 2 times.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 16 Answers
  • Posted on Jan 09, 2009
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Corporal:

An expert that has over 10 points.

Mayor:

An expert whose answer got voted for 2 times.

Problem Solver:

An expert who has answered 5 questions.

Joined: Jan 09, 2009
Answers
16
Questions
0
Helped
2974
Points
23

If you are making desktop application u need 3rd party flash software like mdm zinc or flashjester jugglor. it provides easy way to write on files. If you are developing web you need to use either php / asp which ever u know. If you know nothing better is doing in php. its easy and powerful. See below for sample php code. to send from flash you have to use sendToURL(request); in AS 3.0

$fileName = $_POST["filename"];

$xmlContents = $_POST["xmlcontents"];

$lastBackslashPos = strpos ($xmlContents, “\\”);
while($lastBackslashPos >0){
$xmlContents = substr($xmlContents,0,$lastBackslashPos)
.substr($xmlContents,$lastBackslashPos+1,strlen($xmlContents));
$lastBackslashPos = strpos ($xmlContents, “\\”);
}
$fh = fopen($fileName, “w”);
fwrite($fh, $xmlContents);
fclose($fh);

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

192 views

Ask a Question

Usually answered in minutes!

Top Virtual Training Company Computers & Internet Experts

ADMIN Andrew
ADMIN Andrew

Level 3 Expert

73783 Answers

ADMIN Eric
ADMIN Eric

Level 3 Expert

42222 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Virtual Training Company Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...