Export variables to Notpad?

Such as saving username/pass, or score?

Page 1 of 1

1 Replies - 3117 Views - Last Post: 05 March 2008 - 04:27 AM

#1 icedd   User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 98
  • Joined: 04-March 08

Export variables to Notpad?

Posted 04 March 2008 - 08:50 PM

Hey, i've made an extremly simple password program. At frame1 it prompts you to enter a choosen Username + Password. Then on frame 2 it asks you to enter them in. If done correctly it will take you to frame 3 which will let change the user name and pass. If done wrong you will be directed to frame 4 which is a "Please try again" page. The problem I have is I want to beable to save the entered/ changed username and passwords somewhere, "in hope of being able to save things such as score in the future". I know that in java you can write them to a text document. I want to know if you can do this in Flash, or even better if you can write code that will alter specifyed code.

This is what I have to enter your user and pass.
on (release){
	real_user = pick_name.text;
	real_pass = pick_pass.text;
	gotoAndStop(2);
}






I would like some like this
Frame 1 timeline:
real_user = "doesn't_matter";  //reference1
real_pass = "doesn't_matter";  //reference2




Here's where I don't know the proper code, but here's an Idea of what im looking for.
on (release){
	
	**doesn't_matter**  = change_user.text;   
//   ^^/>^^respect to reference1
//I would want to physicaly change the code to what the user enters in frame 1 of the time line
	
				**doesn't_matter**  = change_pass.text;
//   ^^/>^^respect to reference2
//Again I would want to physicaly change the code to what the user enters in frame 1 of the time line

gotoAndStop(2);
}






I'm not really sure if that is possible, its just an Idea I had. But if its not or you cant understand what I mean. Then I would like to know how to export variables to notpad or some such. I know your not going to do my "homework", but if someone could point me in the right direction with a URL to where I could learn how to do such, or even some code to look at as an example much appricieated. Thank You

Icedd

Is This A Good Question/Topic? 0
  • +

Replies To: Export variables to Notpad?

#2 theRemix   User is offline

  • D.I.C Regular

Reputation: 15
  • View blog
  • Posts: 440
  • Joined: 19-October 05

Re: Export variables to Notpad?

Posted 05 March 2008 - 04:27 AM

i didn't read your entire post, but in order to write to a text file, you need a server side technology... like php, asp, .net, perl, ruby... anything will do, whatever you have.

then google how to write to a text file using the server side technology of your choice... lots of tutorials out there.

you'll end up using LoadVars to send the variables to that page (like write_to_file.php)

this should get you going.

hth.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1