ActionScript 2.0 :: Save Data On Local Disk And Load Up Again?
Jun 14, 2004
I need to save data to the local disk and then load it back up again as required. I'm using a local shared object to save data to and this works fine. Getting it back out again seems less straightforward. This is the code I'm using:
//Saving
myLocal_so = sharedobject.getLocal("flashcookie","/");
datastring = "anyoldstuff";//sample data to save
myLocal_so.data.savegame = datastring;
myLocal_so.flush();
//Loading
myLoadVars = new LoadVars();
myLoadVars = myLocal_so.data.savegame;
myLoadVars.onLoad = function(success) {
if (success) {loadgame = myLocal_so.data.savegame;
trace (myLocal_so.data.savegame);
} else {trace ("Error!");}}
Nothing appears to happen at all. The program continues with no traced output at all.
View 3 Replies
Similar Posts:
Sep 28, 2010
I am a developer in Web Flash Game.(I use AS3.0) I want to save and load the swf-file to a local disk of any user,Because I want to decrease the time for loading a flash movie from site.Is it possible?If it is possible, I hope the swf-file has only one loading from site and it will be loaded from a local disk of any user after that. (I know a concept of Internet temporary file. I want to know the other techniques of only using AS3.0.)
View 3 Replies
Jan 19, 2010
I would like to save a webcam captured video to the local disk using AS. The application is running in a standalone Flashplayer 10. I can save pictures from ByteArrays using file.save, but I can't find a way for doing this with video. There is a nice implementation for that using AS and AIR at http:[url]...I don't want to have to install AIR before running the app.
View 2 Replies
Jan 19, 2011
We have a Web login feature. We will offer Free calls to a large campaign.
Scenarios:
Because of free calls, we will offer a unique file to be downloaded and stored After a week or month we will call them and offer them our desktop application to scan and see how trusted, the user is If we dont find the same file again, we will never start business and more our own statistics Based on that report we want to do some follow ups campaign We can do this with cookies but we want user experience and trust analysis
Example: if you play a music in youtube.com, without notice your file is actually in /tmp/Flash....flv with lot of data on it.
Question: How can i do the similar using Flex/Flash from the web browser ?
View 2 Replies
Jun 14, 2011
I got the code
var mic:Microphone = Microphone.getMicrophone();
mic.setUseEchoSuppression(true);
mic.setLoopBack(true);
when I browse thru adobe documentation for microphone access. But I could not find a way to record the sound and save it in the local drive.How to store the sound in local drive???
View 2 Replies
Jul 26, 2011
I've posted this in the AS3 forum, but I was told its supposed to go here...I need to know if it is possible to do this in AS2...
Code:
w w w.kirupa.com/developer/as3/loading_files_disk_pg2.htm
(cannot add links... since I have less than 50 posts)
[code].....
View 5 Replies
Nov 7, 2011
how to store data local hard disk in flash applications
View 1 Replies
Jun 28, 2011
I am currently using filereference in as3 to load a file from the users local disk and display instantly within a loader on the stage. This works fine but i am now needing to load files that are already stored on a server not the local disk, is this possible?
I have tried loading the url into a loader object but this takes far too long if the image is quite big where is filereference is almost instant.
My current code is:
Code:
var mFileReference:FileReference;
browseButton.addEventListener(MouseEvent.CLICK, onBrowseButtonClicked);
function onBrowseButtonClicked(event:MouseEvent):void {
[Code]....
Is there anyway i can take out the browse and selected stages and just load the server based image?
View 3 Replies
Nov 14, 2011
I got a very nice article to load files from local disk to flash movie directly.
article link : [URL]
i want to do same thing using as2.0
View 8 Replies
Sep 9, 2011
I'ld like to save variables to an Encrypted Local Store. This example is working but how can I extend it to save more than 1 variable?
[Code]....
View 1 Replies
May 23, 2010
I know it's possible to load and save a local file using CS4 and Flash Player 10, but my question is if I can load a SWF local file without using 'browse' and 'load' methods and then save it. I really pretend to "copy" a specific SWF local file into another folder on my HD and I think this is possible loading first this file and then saving it. For this reason I don't want the dialog box appears (with browse method). ('maybe with 'Loader'?)
View 2 Replies
Dec 8, 2009
I'm playing with Local Shared Objects, and I was able to save and load simple data types like strings and integers. Pretty cool.
I want to Save/Load a Bitmap Object but I'm having problems. I think I got a Bitmap Object to save but when I loaded it back in, it was basically a blank bitmap. I located the actual .SOL file on my computer and opened it up. It had some basic Bitmap info like scale, rotation, visible, width, height, etc, but NOT the actual bitmap.
So I realized that I need to be saving/loading a BitmapData object instead of just Bitmap. BitmapData holds the actual bitmap pixels, I think. Anyway I saved out a BitmapData object. When i tried to load it back in, I get a type coercion error: "Type Coercion failed: cannot convert Object@df355b1 to flash.display.BitmapData". I dont get it because this error didnt occur for Strings, ints, or Bitmap Objects. Whats happening?
Also, I looked again at the .SOL file after saving out the BitmapData object, And I dont see any pixel data there. The bitmap I'm saving is 800x800 so the .SOL file should be pretty big but its just a tiny file so I know the pixels havn't been saved properly.
Here is the code I'm using (Simplified - error handling removed, etc)
Code:
// save
var mySo:SharedObject = SharedObject.getLocal("mysharedobjecttest");
mySo.data.testA = 14;
mySo.data.testB = "hello this is a test";
[Code].....
View 14 Replies
Sep 16, 2010
I've been fooling with this problem since AS2.0 (and shared Objects) and I'm not much closer to solving it, partly because every article I read on it is focused on php and server-side stuff that doesn't apply. How to load a String Array from a txt file in local user space (the folder from which the .swf is run). What I need to know: The easiest way for the user to save/load a file. The file has to contain Objects and Arrays reflecting his current status in the game. The goal is to avoid non-Flash apps and languages, and external Classes if possible (I do everything right in the main fla). I don't mind that the user has to initiate and approve the upload/download.
View 1 Replies
Aug 20, 2010
Im not sure if this is possible in AS2 but i will ask anyway! Would it be possible to have a standalone SWF which gives the user the ability to browse their computer files and then load a picture for example? I know this can be done in AIR but im restricted to AS2 only!
View 1 Replies
Feb 22, 2011
I am currently an English teacher and I am familiar with programming in DOT.Net platform. I am completely new to Flash. I turned to this platform because I thought that would be the best way to prepare interactive computer based exams in English. My real problem is, I don't have the slightest idea as to how I can create a Flash application which records the sound through the microphone and saves it on the local disk.
View 1 Replies
May 11, 2004
Is it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?
View 1 Replies
Feb 22, 2004
I want to do a stand alone application in wich you can select a mp3 from local disk with Flash MX. I've been searching for a function or a method who allows to open a "browser window" or to have a string with the filenames but I haven't find nothing. I also have searched for an argument for fscommand but nothing. Does someone know if some function exists in javascript to give a string with the filenames of a folder? And in this case, how to integrate it in actionscript? I know that I can use a explorer to do that with javascript, but I need to do it without browsers.
View 3 Replies
May 11, 2004
Is it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?
View 1 Replies
Jan 14, 2008
I have an Access Database (doesn't need to be Access, I can phpAdmin or mysql, whatever will work) that has a list of names. I want the user to open a Flash form and have the names load up into seperate input boxes for each name. The user can then change the names, move them, whatever, and then save the record. I want it to just overwrite the record. I donlt want create a new record. I cannot, for the life of me, figure this out. I have tried to find some tutorials but nothing makes sense. Is ASP a good way to go? I have been struggling with this for a week now.
View 3 Replies
Apr 8, 2010
I would like to play AAC audio format file from local disk. I got example to play through netstreaming but I need to play it from local disk. I got an example to play mp3 file from local disk using Sound class.URL...
View 1 Replies
Jun 2, 2011
While trying to develop some Android app I ran into the following problem:I load an swf file to a WebView, that makes js calls. I want to catch those js calls, so I useWebViews.addJavascriptInterface() to do so.Everything worked just fine when i loaded the swf file from a remote server, but when I load the same swf file form the Android file system, the javascript methods seem not to run (at least I cannot see them).
View 1 Replies
Jul 31, 2011
don't have any experience with it but I've designed a tool for people to use on my website.I need a way for them save a section of the flash interactive flash to their computer Hard disk.link here
View 1 Replies
Apr 27, 2005
how can i take a screenshot from flash and save it to disk using php or whatever.
View 3 Replies
May 14, 2010
Is it possible to script a flash application to search the local hard disk to display txt files and or jpgs? I would like to be able to enter some text in an input text field then have flash search my hard drive for what i typed into the txt field.
View 3 Replies
Mar 13, 2011
saving the data from microphone to hard disk.I manage to save the data but is heavily distorted.Here is the as3 code:[CODE]
import flash.events.ActivityEvent[code]........
View 4 Replies
Jul 2, 2010
I see flash has a save call to do this job, but it requires user interactive.
How to save it automatically?
View 3 Replies
Aug 1, 2011
I want to also add cuepoints to a live recording video as it is incoming.
I have a live feed incoming from a VideoDisplay object in my Flex Air app, and I would like to be able to record the video/audio of this and save it to disk and/or upload to server.
Is this possible? If so, would it be possible to add CuePoints to the video as it is being streamed live? Right now I am just trying to record a live stream from my VideoDisplay.
View 2 Replies
Mar 24, 2012
FMS receive livestream (on Media live encoder or other way). Output device in my program [url]...
How i save permanently this media stream to hard disk?
View 1 Replies
Jun 2, 2006
in writing XML File on hard disk ... i make a xml object on runtime .. menupulat it and then i want it to save on hard disk of the client .... i want to used this for both online and offline flash aplication.
View 2 Replies
Nov 16, 2010
I wonder how can I download/save/write a file from my server to a client's computer using flash or flex.
Sign up
Sign in
Click on the ("FREE") button placed on the right of the page. (the
orange button)
[code]....
then you'll see a confirmation popup for the download, then you choose where do you want to save the file, and the flash movie saves the file!
View 1 Replies