Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Save On Txt File Local



Hi,
PLease:
first to create a txt file then to save a varible in it .
on Hard disk ( localy)
I have Flash MX.
any Example pleaseeeeeeeeeeeeeeeeeeeee



FlashKit > Flash Help > Flash MX
Posted on: 08-13-2003, 05:40 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Can Flash Save To A Local Text File?
I was reading in one of my many books in flash, it was late, I was tired, but I came across a sentence that said it was possible on a windows system to write to a text file. Now I have spent a week pouring through my texts trying to find that reference, but it remains elusive. Does some guru out there have the answer to my quest, or did I fall asleep studying and dream the whole thing...
-John

Download File And Save It On Local Drive
Hi,

I really need help in the actionScript in Flash 5. I'm new to Flash and I need to finish up a project within a week.

I need to download a file from the server and copy it to my local drive by clicking on a button. How should I go about it? Currently, I have tried using getURL but this will open the file in the browser which I don't wish to. I have tried loadVariables and this doesn't work at all as the file which I want to download is at the server, not at the same drive as my file.fla

Please HELP!

[CS4] Save On A Local File Without User Intervention
hey,...sorry for my english...

i work with a other application who need to have the information written in the local file without an user intervention
so...

i would like to know if it s possible to write or rewrite on a local file without intervention of the user...
whitout the ""save dialogue box" or with a managed save dialogue box...

how to write in a local file without user intervention...

i need really an answer to make real my project...

thans for your conprehension

Can I Save Variables To A Text File On My Local Harddrive?
Can I save variables in a text file on my local harddrive?
I want to use a swf (with a Form) to save addresses to a txt-File.
Is there a way doing that without installing a virtual server on my notebook and using a script?

I heard there is a way doing that with fscommand, but I have no clue how.
Hope someone can help.
Thanks.
David.

Save Local File (MMSave) Not Working Anymore?
Hello,

Im have been using MMSave locally to output collated textfiles/reports from both F6 and F7 without any problems. Now in flash 8 I cant seem to get it to work.

I trace the result and the function returns true, but no file is generated.

I am using Flash8, but exporting to Flash Player 6 in Actionscript 1.0; just like I have been in F6 and F7 successfully. Im on Mac.

Does anyone know if there are any known issues with this undocumented function in F8, or if there simply is a replacement function in Flash 8.

This is the code that works for me in F6 and F7 using Actionscript 1.0.

Code:
whatever = "Hello World";
trace("MMSave: "+MMSave(whatever, "filename.txt"));
Thanks a whole bunch.
F8 Newbie

Can I Save Image File In Flash To Local Disk?
Can I save image file in Flash to local disk?

Let say I use Bitmap class (actionScript) to manipulate the image file, and save it in my local disk, is that doable?

Save User`s "info" To Local Disk =Sol File
ok after asking in the forum for help with saving varables to a text file on the users local computer. I was told it cannot be done without the aid of a script or backend system to write the data.
this i thought was my only option for saving the information i needed.

I now want to eat my Hat and words, Because it can be done without the aid of a script or php,asp etc, all one needs is Flash MX and flash player 6 and up. ok enough rambaling lets do this........

SharedObject

Macromedia introduced shared objects with Flash MX. and works with flash player 6 and upwards! you need to find out what player the user has with action script or any other method before invokeing this command.

The shared object gives us the tools for storing actionscript data on the end user`s computer sharedObject supports local and remote, im dealing with local storage here, sharedOject, supports the following datatypes: number,string,boolean,undefined,null,array, and object.


Like cookies, shared objects are used to maintain data persistence. The object data is stored in an .sol file on the user's hard drive in the same directory as the Flash MX player. The files are stored in folders corresponding to the domain that generated the Flash movie.

here is some code i found for creating a two text box imput for name and email storing on a local system. play around with this and you will find you can do everything you require localy, even i may add somethings you shouldent.


on frame one of the movie add this code:

// Action script for sharedobject

// [Action in Frame 1]
if (init == null)
{
init = true;
so = SharedObject.getLocal("smooow.com/sharedObject");
if (so.data.name != null && so.data.email != null)
{
txtName.Text = so.data.name;
txtEmail.Text = so.data.email;
} //
}

ok next on your button called submit add this code to it :

// Action script for button

on (press)
{
if (txtName != null && txtEmail != null)
{
so.data.name = txtName.Text;
so.data.email = txtEmail.Text;
so.flush();
} // end if
}

ok thats all there is two it if you require more help with this do a google for "Sol"+sharedObject
and you will find some tutorials on sharedobjects, i hope this helps all the people like myself that simply want to store there arrays to a local txt like file

smooow

Web Cam Local Save
hi can some one help me i need to save local webcam video+adio
in swf attachvideo0 local cam whit out streamig server please help

Save Xml In Local By As3
Is there any way to save a updated xml file in local computer?

Save An MC As .GIF To Local Machine
Ok! I would like to know if there is any possible way to save a sertain MovieClip from my online .swf to any pic format, preferly .JPG, .GIF, .BMP to my local machine ?

Can this be done with AS so the user just hits a button, and the prearranged boundingbox get saved as a .GIF just the same way as it now PRINT the boundingbox with 1 line of code ?


Or, if you have any other way around this...userfriendly

Local Save As Dialog Box
Hi. I'm doing a flash cd-rom interface right now, kind of showroom cd.

I'd like that the users can click on a product picture, or a button, so they could save a hi-res picture of that product on their disk.

All the pics would be located on a cd rom folder.

Is there a way to do this with flash?

Thanks.

Is It Posible To Save Out Local
I have an application ran localy that duplicates movable movieclips. A person can move them to any place on the screen. Is there a way for the finished file to be saved as an image file? To be printed later

Save An Image From A Local Swf
I am making a tool that allows me to do some editing to a movieclip and then save that movieclip as an image. This swf will run on my desktop only. Is there a way to save an image to the local hard disk without using a webserver , serverside script or installing Adobe Air? All the examples I find need serverside scripts.

Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

i also tried scripting it on the time line when that didn't work.

any ideas?
Thanks,
kool

Flash Save Local Machine
Is there any way to save info on the end users machine in flash similar to the way you can in director or is it more like the Java sandbox style. Thanks in advance.

Local SO. ¿how To Save To A Specific Folder?
Just that. How can a SO be saved to a specific folder?

this doesnt seem to work

ActionScript Code:
var my_so:SharedObject = SharedObject.getLocal("casos","/so",false);

Local Machine Save & Load
How do I save an XML file to the local machine?

And how do I Load that file?

I know how to do this off a server, but I don't know how to work off the local machine.

Thanks,

Need A Way To Create, Save Xml Files On Local Disk
in flash 5 fscommand "save" did the trick just fine- can't do that in 6.
Has anyone used 3rd party plugins or another technique for creating, saving local XML or other text files?

Thanks!

Problem With Local File And Local Link
Hi to everybody,

I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html

When I click into some link that point to some local file like as:
c: est est.htm

I don't obtain nothing the page still remain index.html.

If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!

How can solve it without upload all file everytime into some web server and without install some local web server?

Thanks in advance to everybody for any tips and sorry for my bad english!

John

Save File In Server And Save File In Clients Hd
i dont know how to do that using actionscript 5
i need 2 codes
one to write to the server a txt file
and other to write to clients hd
someone told me that you can do that, but i cant find it


if anyone can help, thank you!!

Could V Save & Retrieve Data From Local Text Files
Plz help me 2 save & retieve files from a text or excel file located in my computer itself using flash 5 since i am more familiar with it. My intention is 2 control a database that can be updated edited or deleted
plz help me out 2 do it in simple terms since i am a new commer

hopefully Jiks

Save Instance Of Custom Class With Local Shared Object
Hi there,

I am programming a web based application with Actionscript 2.0 classes for flash 8, and I want to save user data using the local shared object.
As the data is potentially rather complex I would prefer to store it in an instance of a custom class that I then stick in an array property of the local shared object data property.
However, when I try to do this, if I retrieve the stored object it seems to have lost all its instance methods. If I do a for in on it, I can see the private properties to which I have assigned my data, but as they are private I cannot retrieve them.

Does anyone know how I can store an instance of a custom class in a local shared object without it being corrupted in this way?

cheers,

Alex H

Problem With: Local Folder Path, With .swf File Inside A .html File
hey i have:

index.html
in the root of the "folder-structure".

and a photoslide.swf file inside

flashfiles/photoslide.swf

other files inside :
flashfiles/
is
flashfiles/pic1.jpg
flashfiles/pic2.jpg
flashfiles/pic3.jpg


now the index file is at root of the file structure and the photoslide.swf file is embedded in the index.html file.

and then the photoslide.swf file loads in the jpg files.

But it doenst work. unless i put the pictures inside the root level of the file structure. And by doing this i lose some of my options. anyway around this? obviously i could jsut set the photoslide.swf file to load files from the path flashfiles/pic1.jpg. But if i do this i must edit every photoslide.swf file in every flashfiles fodle ri have on the server. I have 10.


So my question is as following;

Is there a way to set the photoslide.swf file to always read from the folder the photoslide.swf file is? and not the folder it is embedded in.


thanks from Neptunesnectar

Please Help How To Get The Full File Path( The File Which Is In Local System) In Flash 8
Hi All,

It would be great if any one can help me about how to get the full file path( the file which is in local system) in flash 8.
i do not want to use any server side uploading or downloading....i just want to view the image in loader component when we select image from any location in the hard disk using browse dialog box.

here is my incomplete code ??? !!!

import flash.net.FileReference;
import mdm.FileSystem;
var lo:mx.controls.Loader;
var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
_root.pa.text = file.name;
////////////////////////////

//////////////////

}
var fileRef:FileReference = new FileReference();
var bro:Button;
fileRef.addListener(listener);
_root.bro.onRelease = function(){
fileRef.browse([{description: "Images", extension: "*.jpg;*.gif;"}] );
};

It would be great if any one can help on this issue...

thanks
Jiby

Local Flash File And File Installations From A Server
Hello all, just a query that I have.

Is there any way for a local Flash file to communicate with a server and download a file, and then install it in a predetermined directory?

For example, if a file package BOOK1 is available on a server, can I get Flash to download it and place it in the current directory that it is in? Will this require network sockets or passing of variables between javascript or the like?

Thanks in advance.

Understanding Security With Local File To Remote File
First let me explain the setup:

Our company uses a set of talking avatars in lesson Modules to help students learn Math or Writing. Each Course loads in external avatars located on our Avatar server. I have a LocalConnection (technically using SWFBridge) that has the AS3 containers loading in the AS2 version avatars (created from Character Builder by Media Semantics). I can get the LocalConnectionto accurately connect a local version of the avatars in a development environment, however once I try to access the avatars from our Avatar server, the LocalConnection refuses the connection because of the different domains (local vs the avatar server). They both have a LocalConnection, one from the Course to Avatar and vice versa. Also, the Course says it has a sandboxType of localTrusted. The error is a common one:


Code:
*** Security Sandbox Violation ***
Connection to file:///(localFilePath) halted - not permitted from http://(avatarServerPath)/avatar.swf
-- Remote SWFs may not access local files.
The issue is definately because of the Security Sandbox and I have tried : Security.allowDomain("http://(avatarServerPath)"); in the Course, and System.security.allowDomain("*") in the AS2 avatars (which are Flash Player 6) Other attempts included playing with the Publish Settings - Local Playback Security, attempting to set a setting a PolicyFile, and a few others.

I just must be missing a key part of the equation, I know it's just a small fix that I am totally missing the boat on. Any thoughts or assistance is appreciated.

Weird .as Bug -- When Saving .as File, Flash Forces 'save As', Then Creates .TMP File
has anybody seen this???

when trying to save an .as file (the file already existed), instead of it being saved, i get a 'save as' dialog from Flash

if i click 'save', i get a prompt saying the .as file already exists and do i want to overwrite it...

if i click 'yes', the file is saved and then in the directory where the .as file is saved i get something like this, Trace.as~RF11025e.TMP

the .as file in question, Trace.as, i had first saved on my PC (windows 2000), i had then saved the file to a borrowed laptop (windows xp), and now saved back to my PC...

this is when i started getting this weird bug

does anybody know what's going on???

Weird .as Bug, When Saving .as File Flash Forces 'save As', Creates .TMP File
has anybody seen this???

when trying to save an .as file (the file already existed), instead of it being saved, i get a 'save as' dialog from Flash

if i click 'save', i get a prompt saying the .as file already exists and do i want to overwrite it...

if i click 'yes', the file is saved and then in the directory where the .as file is saved i get something like this, Trace.as~RF11025e.TMP

the .as file in question, Trace.as, i had first saved on my PC (windows 2000), i had then saved the file to a borrowed laptop (windows xp), and now saved back to my PC...

this is when i started getting this weird bug

does anybody know what's going on???

Weird .as Bug, When Saving .as File Flash Forces 'save As', Creates .TMP File
has anybody seen this???

when trying to save an .as file (the file already existed), instead of it being saved, i get a 'save as' dialog from Flash

if i click 'save', i get a prompt saying the .as file already exists and do i want to overwrite it...

if i click 'yes', the file is saved and then in the directory where the .as file is saved i get something like this, Trace.as~RF11025e.TMP

the .as file in question, Trace.as, i had first saved on my PC (windows 2000), i had then saved the file to a borrowed laptop (windows xp), and now saved back to my PC...

this is when i started getting this weird bug

does anybody know what's going on???

How To Reveal A .swf Server Directory Behind A Host Html Index File To Save A Flash File To HD?
I FIND YOUR FLASH FORMAT EXTREMELY USER-UNFRIENDLY.
I spent two weeks to figure out how to save a complete .swf file to my local drive.
Finding 48 files behind a main html doc hosting those .swf's took 48 hours.
(Now I can't move my arm anymore due to RSI!)

No application to save a Flash file, seems to be able to do that in 1,2,3 convenient steps.
I always get bits and pieces or individual graphics.

I NEVER GET THE ENTIRE MANUAL the way I can browse the Flash file in my browser.
I am seriously thinking of never browsing a Flash file again if there is no solution to download e.g. a manual of my digital camera. I have the right to browse such a file at my convenience either on or offline! Online it's just impossible due to server overload.

Now I only get the desadvantages of the format to deal with (e.g. tons of spamming advertising) whereas I should be able to enjoy the benefits. Eventhough I gave the manufacturer the right to fill up 10 MB on my drive, I never got a file on my PC. And even when I did, I wouldnt know where to find it...
I hope Adobe would listen to the user more often...

WHY DON'T YOU BUILD SOLUTIONS AS EASY AS A RIGHT MOUSE CLICK
ALLOWING FOR SAVING A FLASH FILE!
That can't be rocket science, is it?

Thank you for paying attention to your customers.





























Edited: 10/29/2007 at 11:45:18 AM by VOGAN

Save Vector File File From Online Flash Tool
I am creating logo designing flash tool, user can come to the site and select symbol, add a name and create logo,
I did that part ,

but I need user to save the logo as a vector file. Is this possible? Any software for this

Regards!
Nalinda

Writting File To Local File System
I would like to find a way to write a prefrence file (in XML if possible, or plain text) back to the users local machine. I'm yet to find a good way in Flash MX. I also thought about using PHP or javascript on the server page but haven't really seen a good way to do that either. Any ideas would be very much welcome. Thanks in advance.

How To Check File Name In Local C Drive And Run Exe File
Hi All,

I'm newbie user in action script. How can i check sepecific file name in local c: drive and if file doesn't exist in local drive download from server and run and if exist go to frame ..... .

Please help to me.

Thanks,

Ho To Get File Name And Full Path Of A Local File
I want to be able to get the file name and it's full path of a local file. I was thinking of using "FileReference" but FileReference doesn't permint accessing the local file path. Can anyone suggest a way of doing this.

Thanks

Can't Save File And Can't Save As Either
Sometimes, usually after I've been working with Flash for a while, it won't let me save my work. I get an error dialog saying the file is opened read-only, or another user has the file open. What is most disturbing is that I can't even do a "Save As"--I get the same message. What's even worse, if I quit without saving, it deletes the file on disk! This happens with XP x64 as well as XP Pro.

Any suggestions?

Can I Take The First Frame Of The FLV File And Save As A JPEG File ?
Dear,

Is it possible to take a snapshot photo with a webcam, and save it to JPEG file on server ?

I have successfully taken a snapshot picture using Flash and Flash Comm Server, But it is stored on the FCS server as a FLV file. Is it possible to convert the first frame of FLV file to a picture file (like a JPEG) and shared this picture with others ?

Any Idea ?

Kevin

Can I Take The First Frame Of The FLV File And Save As A JPEG File ?
Dear,

Is it possible to take a snapshot photo with a webcam, and save it to JPEG file on server ?

I have successfully taken a snapshot picture using Flash and Flash Comm Server, But it is stored on the FCS server as a FLV file. Is it possible to convert the first frame of FLV file to a picture file (like a JPEG) and shared this picture with others ?

Any Idea ?

Kevin

Flash 8 Pro Corrupting FLA File On File/Save As?
In working for the first time in Flash 8 Pro and still within the 31 day trail, I'm saving my files often using File/Save As on Windows Xp Pro SP2. Sometimes, I get a number of dialog boxes, about 5 that say: "Page XXXXXXXXX of your document has been damaged. You should delete it.

From this point on, the FLA files, both before AND after the File/Save As are corrupted.

Upon inspecting the items in the Library, the movies don't show in the Library Window and the JPG says "BitMap not loaded".

Finally, running the movie, the animations run choppy and my whole project is ruined.

Is this a known problem and is there a work around? I'm not 100% sure it is the File/Save As operation that is causing the problem, but that is when I first notice there is a problem.

Thanks in advance,
George

File Save Error Erases .fla File
I just had a near catastrophe happen...
I had Flash MX 2004 Pro up and a movie file open that I saved Fri before going home. Monday I didn't get to the file but it was still up in my Flash app. Today I went and made changes to the file and tried to Save. It brought up the Save As dialog for some strange reason and had movie.fla.fla as the suggested file name. I changed it to movie.fla and it asked if I wanted to replace it. I said yes and then it gave me an error msg saying it could not be saved (no more details than that). I then tried Save and gave it a new file name. It gave the same error msg. I then tried Save As and a new file name and it too gave the same error msg. I don't recall exactly but it may have said it couldn't save due to a network error. I was trying to save on a file server across the network. I finally decided to quit out without a save since the changes I had made were minimal and could easily be redone. After quiting out, I went to open the movie.fla file and it was GONE!!! Apparently when I said yes to overwrite the file, it dumped it and then failed to write the new version!!! I ended up with NOTHING! Macromedia...are you listening...How about writing a new file and if no errors, THEN dumping the older version. If not for a backup done nightly here, i would have been set back weeks of work!!!

Local File In Pop-up
Just figured out how to launch a pop-up window, but how if I need to load a local file (say in a CD-ROM)? Flash seems can't recognise the path.

Local File
Hi this is kind of a repost, so apologies but i am still having no luck with opening a local PDF file from within flash.

I use an on release get url action that opens a plank document, i link the url to the directory that my PDFs are stored but nothing happens?

Can anyone help? Thanks again.

Local File IO?
I've been racking my brain for the past few days with what should be a trivial problem. Is it possible to get local file IO through Actionscript 3?

I am also working with Flex...if that helps...

Thanks in advance.

Link To A Local EXE File ( Help Me )
(English)

Dear friends ,
I have a technical question about programing
in ' Macromedia FLASH '. Please assist me if
you can .
I want to create a link from flash animations
that it can run an EXE file in a local
address . For example if when we make an
AUTORUN for CD, we have to run an EXE file
like SETUP.EXE in the another folder .
I used the 'get url {}' script for this , but
there are 2 problem. At first I have to enter
drive letter ( d: , e: , .. ) . Also this
command can not run the file at the location
automaticly & show a message for download .
My web address is :
http://www.geocities.com/pedramr2001

Thanks a lot
Pedram . Rahimi

Open Local File?
im trying to make an "on mouse" action to where it opens an html file in my browser... i know how to use the "get url" action, but i want it to read it as a local file...its going to be on a CD, what do I need to do???

Open Local File?
im trying to make an "on mouse" action to where it opens an html file in my browser... i know how to use the "get url" action, but i want it to read it as a local file...its going to be on a CD, I was told to put it as
getURL("yourFile.html"); but it opens it in the browser as: http://yourfile.html in the browser. What do I need to do???

Open Local File?
Hello,
I was the one that asked the question about opening a local file using the geturl action. and someone replied: "How about trying file:///x:/folder/subfolder/file.exe"

Thats great, it works!!! but i have a question, if i specify the drive name (ie. D:) what if the person that views the CD has a different dive letter, like E: or F:????

Writing To Local Txt File
Ok, I am creating a cd-rom based, stand alone player app. I want to be able to write variables to a txt file created on the users machine.

This is easy in Flash 5 with the fscommand ("save", "txtname.txt")
It does not work (or I cant make it work) in Flash MX.

Any ideas? I really do not want to write server code.....

Local Html File
how do i load a local html file say "members.html" it is in the same location as the swf and fla but i cant seem to get the "get url:" to work?

Copyright © 2005-08 www.BigResource.com, All rights reserved