ActionScript 2.0 :: Saving And Loading Locally?

Aug 22, 2006

Is it possible that, when I publish my flash program to the internet that the user can save and load text to a text file somewhere on his computer?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Saving Data Locally?

Jan 16, 2008

I have an offline presentation for a client that needs to have a form submitted data saved local on the machine (kiosk) to be gathered later.I researched on google and found fscommand to write to a txt file but this no longer works and is sorta sloppy.

View 5 Replies

ActionScript 2.0 :: Opening And Saving A Text File In Flash Locally?

Aug 1, 2009

I'm simply trying to get Flash to display the first ten characters in a trace, but the results always come back undefined. Here is my code:

var lin = "";
var testfile = new File("test.txt");
testfile.open("text","read");
lin = testfile.read(10);
trace(lin);

The flash file is in the same directory as the text file.

View 1 Replies

Actionscript :: Download Multiple Large Files And Saving Locally - URLStream Or URLLoader?

Feb 17, 2011

This is absolutely driving me crazy. While I'm a fan of the availability of asynchronous calls in AIR, I'm finding that being forced to use them for something that should be SUPER simple is a severe limitation. So severe that I may end up abandoning AIR and writing native Android and iOS apps instead of using the shared AIR platform.

OK, now that I have that off my chest, here's what I'm trying to accomplish. I have an app that, when deployed, is relatively small. But once deployed to a user's device that user will log in using a login name/password. Once they log in, content specific to that user needs to be downloaded and saved to the local device. Since the content varies by user I can't include it in the package for deployment.

But I cannot figure out how to accomplish this: say I want to download 10 files and each file is 2-3mb and I want to show a "Downloading, please wait..." view during the download. The application cannot proceed until all 10 files are downloaded. But since from what I've seen URLStream and URLLoader are both async I cannot figure out how to block the app from opening the "View available content" and say on the "Downloading, please wait..." view.

View 1 Replies

Professional :: Saving The "trace" Output Locally?

Sep 4, 2010

I was wondering whether there's a way to save the "trace" output to a text file on the user's machine. I know we can use the flash debugger for this purpose but is there a better and more efficient way?

View 2 Replies

ActionScript 3.0 :: 2 Flash GMaps / Both Loading Locally But Only 1 Loading Online

Apr 11, 2011

I'm building a flash website which uses a google map for a contact section and another one generated via external class for a projects section (for each one of the projects available there will be generated a map and a marker).This website uses SWFAddress and each of the projects receive SWFAddress dynamicaly via xml, pulling in the name of the project.The problem is when I test the website localy, on Flash IDE both the maps are loaded fine, but once I try it online on a webserver just the map on contact section is being loaded.I've tried to use a different key for each other -the contact section map key based on an url.Does anyone know what the problem might be? Is it because I'm using 2 maps on the same website? Is it because the url generated by SWFAddress is too long (I tried to generate a key based on something like URL...

View 0 Replies

Xml :: Loading XML Locally?

Aug 1, 2011

I have a project in Flash Builder and I use Bulkloader to load some configuration files. When I run the project from Flash Builder or in a server, everything works as expected, but when I run the SWF from another location (for example "my documents"), the project can't load the XML.

View 2 Replies

ActionScript 3.0 :: Loading Xml-file If Not Placed Locally

Jun 14, 2010

I started a discussion about my parameter catching problem and I've now narrowed it now. It turned out it wasn't the parameters not getting catched. The swf took the parameters fine, so that's apparently not the issue. My problem is that it seems like the .xml-file don't get loaded. When I've got my .xml file and .swf locally on my computer and runs it it works fine. When I place it on my web server the same way, it works fine. However, when someone else puts my .swf in embedded on their website the xml won't be loaded by the swf for some reason. Below is the AS3 code loading the xml file. It's been working fine all along until I started playing around with calling the swf from different sources (my friend's web server by embedding it etc.).

[Code]...

View 5 Replies

ActionScript 3.0 :: Loading Images From Another Server But Works Locally?

Mar 30, 2010

I'm using BulkLoader to load a single XML, parsing this, extracting out a list of images on another server (amazon), adding them to BulkLoader and loading them in.
 
this all works great running in the Flash IDE but as soon as it's uploaded the xml loads, parses BulkLoaders starts but non of the images load.

I assume it's a security issue but linking to these images from the local or from a html page works fine just not from Flash from a server.

View 4 Replies

ActionScript 3.0 :: Flash Presentation Loading Locally But Not Online

Mar 21, 2011

I got this sweet minisite built in Flash that I'm going to load onto facebook for the fan page. Problem? I can't get the XML to load. I don't know the first thing about ActionScript, so I'm upp'ing a copy of the Source Files.

View 1 Replies

ActionScript 3.0 :: Save Flash Data Locally From Locally Running .swf?

Jun 10, 2009

I want a user running a Flash game on his machine (not from a server) to be able to save some game data locally.From what I've read, there still isn't any way to do this, but I thought I'd throw it out there in case anyone knows a sneaky xml or php work around.

View 2 Replies

Actionscript 3 :: Flash - Error #1014 : When Loading Remotely But Not Locally?

Apr 2, 2012

Starting with a blank project, when I load a SWF which has a dependence on ISomeInterface defined in a swc which is compiled into my blank project

var lc:LoaderContext = new LoaderContext( true, ApplicationDomain.currentDomain );
var loader:Loader = new Loader();
loader.load( new URLRequest( "Some.swf"), lc );

[code].....

View 2 Replies

ActionScript 3.0 :: Flash Movie Not Loading Locally - 5 Animated Dots Seen

Nov 17, 2010

We built a demo for a product we may build. The demo is in flash for FP 9 and is one master clip that loads about a dozen other clips. All these clips are intended to load locally in a browser window (just from the file system - not a server). What we noticed is that the two computers we developed this on (with Flash CS5 on them) show this fine in it's finished form (1 .html page / 1 main .swf - 12 child .swfs in a subfolder).

But on all other computers without Flash IDE installed it doesn't work. It loads the page in a browser and then just shows a grey screen with 5 "loading" dots that just repeat in the middle of the screen. I have not seen this before and didn't build the app - before i start digging into the code (was told maybe a problem with the loader trying to load from the file system as opposed from a URL) I wanted to know what could be causing this?

View 1 Replies

ActionScript 2.0 :: Loading Variables Not Working On Server But Works FINE Locally?

May 17, 2010

I have one .swf that loads a second one on level 2.level 2 then in turn loads variables from a text file .The problem is that it works locally, but refuses to work on the server. The urls are all local. This is such a simple procedure, I can't figure out what is wrong..... are there limitations doing this via server vs. locally? I never get any "file open" errors locally. I've spent 2 hours on this.... I'm just using a simple LoadVars similar to this example:

Code:
loadText = new LoadVars();
loadText.load("text3.txt");

[code].....

View 5 Replies

Professional :: Saving And Loading Data To/from SWF?

Jul 23, 2010

I have created a simple flash animation for my employer. I basically have a square that changes color depending on which of three buttons are clicked. This is replicated about 30 times on the page. There is also about 15 circles that have a toggle button created so that when you click on the circle, they change between two colors. As I said, a very simple application.

Now, I need to save the data so that whenever someone new opens the swf, the current color combination is displayed. My way of thinking, with my limited AS3 experience, is that each button click, in addition to changing the color of a movie clip, should also send the data to a server. Then when someone opens the application fresh, I can use the URLLoader to load the most current data.

Am I on the right track, or am I missing it completely? I think I can figure out the URLLoader, but what code would I use to create the text file or xml file?Here is a snippet of my code:

var rtmColor:ColorTransform = f13335.transform.colorTransform;
var okColor:ColorTransform = f13335.transform.colorTransform;
var usColor:ColorTransform = f13335.transform.colorTransform;

[code].....

By clicking on either the rtm_13335, ok_13335, or us_13335 buttons, they will change the f13335 movie clip to the appropriate color (blue, green, or red). The default color is green.

What I would like to do is make the movie clip red, for example, then another person opens the swf, and the movie clip is red as opposed to the default green because I saved the current state to a text or xml file.

View 3 Replies

Xml :: Saving And Loading File With Flex?

Aug 25, 2009

I want to have a xml file for my configuration and so i have to load it from the same directory the swf file lies in and save it afterwards. I saw articles about filestreams in flex but my compiler didn't allow me to use the filestream. I use the open source flex sdk

View 3 Replies

ActionScript 2.0 :: Saving And Loading Drawings?

Feb 17, 2009

i am working on a flash project, not ment for the web, i am creating an interactive map app.here is a section that involves the user to draw custom shapes ,lines and text over the maps.the problem is gettting the user to save this drawings so that the next time the application is started he/she can load the previously saved drawings.

View 1 Replies

ActionScript 3.0 :: Saving And Loading To A Database?

Jan 12, 2010

hey people wondering if there is a way to use AS3 to save and load to a database.

Specifically I have created a flash program for a teacher that runs tests for her students. When a student loads up the .swf they are prompted for their name. Ideally we would like to be able to save the progress of a student after he/she has completed a test and then use that data later. Is there a way to save data like this and call upon it at a later time?

View 8 Replies

Actionscript 3.0 :: Saving And Re-loading Data?

May 9, 2009

I've made a small application in Flash CS4 that I use when I'm teaching. Part of the application allows me to 'write' on draggable 'post-it' notes (using a draw function) and another part allows me to type text onto similar 'post-it' notes. how I could save the data that is written or typed in and then re-load it on another occasion? Am I out of my depth?My AS3 is probably intermediate level, I have some experience with SWF Studio and I'm beginner level with php/mySQL.

View 3 Replies

ActionScript 2.0 :: Saving And Loading Data

Jun 14, 2004

I've searched load of threads for info on this because for what I'm doing 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.[code]Nothing appears to happen at all. The program continues with no traced output at all.

View 3 Replies

ActionScript 2.0 :: Saving/Loading Variables With PHP?

Jan 26, 2005

I'm trying to save a change to a text document (In this case a variable "Title" just to test) and then view the changes from another swf movie... In the end I'm hoping to build a client updatable flash site. In particular menu items... feature items & prices.

A Recap: a client types in the items, php/flash saves the changes to the text document, and site visitors can views those changes.

Something in my code isn't clicking:

My PHP is:

Code:
<?php
$Title = $_POST['Title'];
$toSave = "Title=".$Title;

[code]....

View 1 Replies

ActionScript 2.0 :: Saving And Loading Bitmaps?

Jun 5, 2007

Ok I wrote an application where I have panels that the user can draw on, kind of like paint, but they can create panels. Now I want them to be able to save and load their work. Using Quasimondo's bitmap exporter, I was able to save a bitmap (200x200), and the application prompts the user where they were to save the image file. However, my problem is that the user will probably have 6-12 panels to save, and so I want the program to save all those panels so they can be loaded later.

Now in order to load, I don't want the user to manually select each panel to load. I want the user to select one file and it will load all the images into the panels. I was thinking about maybe loading a zip file and flash would extract the images and load them, but I don't know if that's possible. I think the user would need to select an XML file,which would direct Flash to what files to load and in what order. For this, and I'm assuming when it saves the flash application/php, it would need to write a new xml file.So I guess what I need to know how to do is:- How do I get flash to save several images to the server or the users hard drive- flash to generate an xml file- is there any way to make flash combine all the files into one file so that the user doesn't have to deal with several files?

View 3 Replies

ActionScript 3.0 :: Saving And Re-loading Data

May 9, 2009

I've made a small application in Flash CS4 that I use when I'm teaching. Part of the application allows me to 'write' on draggable �post-it� notes (using a draw function) and another part allows me to type text onto similar �post-it� notes. Does anyone know how I could save the data that is written or typed in and then re-load it on another occasion? Am I out of my depth? My AS3 is probably intermediate level, I have some experience with SWF Studio and I�m beginner level with php/mySQL.

View 3 Replies

ActionScript 2.0 :: Saving And Loading A Dynamic Text Box?

Aug 19, 2009

I was wondering if there is a way to save and then load a message of a Dynamic text box.

View 4 Replies

ActionScript 3.0 :: Loading In An Image At 300 Dpi Manipulating It And Saving It As A 300 Dpi Png

Feb 27, 2012

I have a project where the user uploads a large 300dpi image, then manipulates it (drag it, rotate it, position it). And the user can reuse this 300 dpi image, basically to make something like a t-shirt pattern. Then when the user is ready, they save this t-shirt pattern, and the save format is a large 300dpi png. This saved png file is for printing.  Now I figure I can have PHP take bitmap data (as binary I assume) and the php can create the png. Is it a good idea to use Flash for this?  I will have to scale down the users loaded 300dpi image so they can position. Then I assume scale it back up when it comes time to save Does anyone think Flash can't handle this?

View 4 Replies

Flash :: Saving Dynamic Drawing, Then Re-loading?

Jan 30, 2010

the short version of what i need to do - via AS3 and PHP - is a user can come to this project and draw something. drawing's no problem, that's done. my issue is figuring out how to take that drawing data, converting it into something i can save to my database ... then reload said data and recreate it on the stage when the user "loads" it.

i guess i'm just searching for a way to take drawn data (just using typical as3 drawing methods) and breaking it down to a string, then bringing that string back in and recreating it. i'm not super versed in ByteArrays - which i suspect is where my answer lies.

user doesn't need to adjust any of this after it's loaded, fwiw. i'd just like to send this drawing data out - then bring it back in and place it back on the stage.

View 2 Replies

Flash Cs5.5 :: Saving/Loading To A Mobile Device?

Feb 6, 2012

I am pretty fresh into working with mobile at all here but i am having no luck finding solid info on the basic principles of file saving/loading locally on a mobile device (specifically android).

View 1 Replies

ActionScript 2.0 :: Saving And Loading Variables Using Buttons

Jun 21, 2011

So I want to do saving and loading for variables. I.E. I want to save a variable by pressing the save button. When you use the "load" button, the variable is what it was when it was saved. I've tried this but it didn't work...

Code:
//Code on the frame
var saveState = SharedObject.getLocal("Cookie");

//Code on the save button
on (release) {
_root.save.gotoAndPlay(2);
savefile.data.blah = _root.blah;
savefile.flush();
}

//Code on the load button
on (release) {
gotoAndStop(3);
_root.blah = savefile.data.blah;
}

View 3 Replies

ActionScript 2.0 :: Saving / Loading Files From / To Flash

Dec 16, 2002

I know this can be done, but not sure how. I have seen a program that basically has its own fscommands and must compile them itself. Does anyone know how you would do this. The program i refer to is [URL] flash studio pro. There are other programs out there like this but these all cost money for commercial use.

View 1 Replies

ActionScript 3.0 :: Saving And Loading Data To Local Machine?

Feb 1, 2012

I am new to Flash/ActionScript, and I am having a lot of fun creating a project in Flash. am working on a character tracker (yes I am totaly geeking out) an I was wondering how to save the data I have entered into the project (hit points etc...) and load it back next time I opened it. The data would be saved on my local machine. How can I get Flash/ActionScript to do this?

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved