Solved

Create a text file

Posted on 2004-03-25
1
256 Views
Last Modified: 2010-04-03
Is there a way to create a text file and write data to that file from Flash?
0
Comment
Question by:bisonfur37
1 Comment
 
LVL 2

Accepted Solution

by:
SandyCooke earned 350 total points
ID: 10683372
Put this on a button:

myLoadVars = new LoadVars();
myLoadVars.variableOne = "This is the contents of the first variable";
myLoadVars.variableTwo = "This is the contents of the second variable";
myLoadVars.send("textfileMaker.php", myLoadVars, "POST");

Put this in a php file (called "textfileMaker.php") in the same directory as your swf:

<?php

$variableOne = $HTTP_POST_VARS['variableOne'];
$variableTwo = $HTTP_POST_VARS['variableTwo'];

$variableString = $variableOne.$variableTwo;

$myFile = fopen("myTextfile.txt","w");
fwrite($myFile , $variableString);
fclose($myFile);

?>

Sandy
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now