Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open the notepad thru flash ?

Status
Not open for further replies.

moulee

Programmer
Jan 12, 2003
9
IN
hi experts,

i have create a button in flash movie.
also i created a "sample.txt" notepad seperately.

what i want now is when i press the button the notepad("sample.txt") is to be open. there i can edit the contents in the notepad.

waiting for ur tips experts !!!


regards,
moulee
 
This a projector file? Regards,

oldman3.gif
 
hi,

Assume that the textfile name is "abc.txt"

I stored the flash movie and the text file in the same drive "D:"

How can i implemented this "opening the textfile when a button is pressed inside the flash movie".

my aim is to open the notepad file with its contents at the time of button pressed.

give ur valuable ideas.

with regards,
moulee

 
Whatever your graphic may be to run the txt, it should be a button. Right click on the button, goto actions, and paste this code:

on (release) {
fscommand ("exec", "abc.txt");
}

Where abc.txt is the file you want to execute. It should be in the same dir as the flash file. This is a command made for a stand alone player.

Let me know how it works out!

:)
 
Is this a projector file or not?

And MrKovacic, that won't work with the Flash player 6 generation. You need to have the text file in a subfolder ("fscommand"), and use a batch file in your fscommand. The .txt file type also has to be associated with Notepad on the user's machine. Regards,

oldman3.gif
 
It all depends on how much this program will be circulated. If it is going to go to a few windows machines, notepad is generally in the same place. If you arw worried about that, just put the text in the flash movie. The FScommand style works for me. If you are planning to put the movie on a disk or a CD, you may want to include Notepad.exe Then again, I ould say most computers can read a txt file. The MIME type would be known on the computer it is being run on. I dont know of too many computers that can not open a txt file. If moulee is trying to simply make a utility that sits on his computer, than that code above will do fine.

moulee, what is the intent of this program?
 
hi MrKovacic ,

my intent is to store some data in to the textfile

i can able to fetch the values from the textfile by variables.

assume that i publish into windows projecter file.
now at runtime the data in the textfile is assinged in the flash movie its fine !!!

but i want to change the data in the textfile with out opening the textfile externally.

for that i create a button in flash movie whenever i click the button the textfile is to be open there i can able to change the data.

hence it is a utility i going to run on different windows machine.

i am using flash 5 and a notepad.

i think u have got the intent.

if possible please sent the sample code flash file.

mail to : moulee_s@rediffmail.com

regards,
moulee
 
My only point was that if the Flash player 6.x is installed on those machines, this code:

on (release) {
fscommand ("exec", "abc.txt");
}

...Will simply not work. Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top