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




Dynamic Saving



Hey all,

I am trying to set up something where people dynamically create something, using dynamic text mainly, and then they can save it to their computers. I have completed just about the entire thing except the saving part. A site that has the save function I am looking for is www.FlashButtons.com - You can create a button, then save it, and somehow it "freezes" what they dynamically created into a static file. Any help with this would be greatly appreciated.

Thanks,
Roller Rebel

Also: If you know how to do this, and it's not a hassle for you could you contact me on AIM at r0ller rebel and explain it to me? Thanks a bunch.



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-07-2004, 05:21 PM


View Complete Forum Thread with Replies

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

Dynamic Text Box Not Saving In FLA?
I have dynamic text boxes with scrollable text in them. I have two buttons that I created to scroll the text. The text box has the "selectable text" button pressed and the "render as html" button pressed. when I paste in my info into the dynamic text box, everything works great and the text just shows in the area that I initially created the dynamic text box (so in order to view all the text you have to put your cursor in the text box and scroll up or down. This works great... until I save my file, then open it back up to work on it... then all the dynamic text boxes extend as far as the end of the text that was in them. I then have to recreate it in order to work. What is going on? Why would it be doing this? I don't want to have to do this every time... please help me!

Thank you,

-- K

Saving Dynamic Text
Is there some way to save text in a dynamic text box after the user has entered it? Say clicking a button that saves the text to a txt file?

Saving Dynamic Files
http://www.redonegroup.com/saving_files_as3/

I have this code:


Code:
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.*;
import flash.text.TextField;
import flash.text.TextFieldType;
import flash.text.TextFormat;


public class SavingToTextFiles extends Sprite
{
private var txt_title:TextField;
private var txt_title_input:TextField;
private var txt_img:TextField;
private var txt_img_input:TextField;
private var txt_comment:TextField;
private var txt_comment_input:TextField;
private var txt_send:TextField;
private varstatus_txt:TextField;
private var txt_format:TextFormat;
private var myData:URLRequest;
private var variables:URLVariables;
private var loader:URLLoader;
private var numOfObject:uint;

public function SavingToTextFiles ()
{
init();
}

private function init() : void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
buildForm();
trace(this);
trace(this.getChildAt(0).name);
trace(this.numChildren);
}

private function buildForm () : void
{
txt_title = new TextField ();
txt_title.text = "Title: ";
txt_title.x = 50;
txt_title.y = 50;


txt_title_input = new TextField ();
txt_title_input.background = true;
txt_title_input.width = 180;
txt_title_input.height = 20;
txt_title_input.x = 110;
txt_title_input.y = 50;
txt_title_input.type = TextFieldType.INPUT;

txt_img = new TextField ();
txt_img.text = "Image: ";
txt_img.x = 50;
txt_img.y = 80;

txt_img_input = new TextField ();
txt_img_input.background = true;
txt_img_input.type = TextFieldType.INPUT;
txt_img_input.width = 180;
txt_img_input.height = 20;
txt_img_input.x = 110;
txt_img_input.y = 80;

txt_comment = new TextField ();
txt_comment.text = "Comment: ";
txt_comment.x = 50;
txt_comment.y = 110;

txt_comment_input = new TextField();
txt_comment_input.background = true;
txt_comment_input.type = TextFieldType.INPUT;
txt_comment_input.x = 110;
txt_comment_input.y = 110;
txt_comment_input.width = 180
txt_comment_input.height = 60;

txt_send = new TextField();
txt_send.selectable =false;
txt_send.text = "send";
txt_send.height = 20;

status_txt = new TextField();
status_txt.x = 50;
status_txt.y = 10;
status_txt.width = 200;
status_txt.height = 20;
status_txt.text = "";


var s:Sprite = new Sprite;
s.buttonMode=true;
s.x = 265;
s.y = 175;

addChild(txt_title);
addChild(txt_title_input);
addChild(txt_img);
addChild(txt_img_input);
addChild(txt_comment);
addChild(txt_comment_input);
addChild(status_txt);
s.addChild(txt_send);
addChild(s);


s.addEventListener(MouseEvent.MOUSE_DOWN,sendData);


}

private function sendData (e:MouseEvent) : void
{
if(txt_title_input.text != "" && txt_comment_input.text != "" && txt_img.text != "")
{
myData = new URLRequest("http://www.redonegroup.com/saving_files_as3/save.php");
myData.method = URLRequestMethod.POST;

variables = new URLVariables ();
variables.Title = txt_title_input.text;
variables.Comments = txt_comment_input.text;
variables.Image = txt_img_input.text;

myData.data = variables;

loader = new URLLoader ();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE,dataOnLoad);
loader.load(myData);


}else {
status_txt.text = "All Fields are mandatory";

}
}

private function dataOnLoad (e:Event) :void
{

if(e.target.data.writing == "Ok")
{
status_txt.text="Submited data was saved";
}else {
status_txt.text="Error in saving submitted data";
}

}

}
}


And its giving me this error:





Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables$iinit()
at flash.net::URLLoader/flash.net:URLLoader:nComplete()


here is the php code


PHP Code:



<?php
//Capture data from $_POST array
    $title = $_POST['Title'];
    $comments = $_POST['Comments'];
    $image = $_POST['Image'];
    //Make one big string in a format Flash understand
    $toSave ="Title=$title&Comments=$comments&Image=.$image";
    //Open a file in write mode
    $fp = fopen("http://www.redonegroup.com/saving_files_as3/save.txt", "w");
    if(fwrite($fp, $toSave)) echo "writing=Ok&";
    else echo "writing=Error&"
    fclose($fp);
?>





can anyone help me out what is wrong, Please! ?

Saving A Dynamic .swf In Current State
Is it possible to save a .swf (for say, a coloring book) in its current state to a database so you can call it up again with all of your previous work saved?

Thanks,
Fearless

Problem Saving A .fla With Dynamic Text
Hello there,

Itīs be a while that i didnīt have this problem.

I make a box with dynamic text , and after i save the project (fla.) , when
i open the file again , the box is on the size of the full text.
That means that it change the box like it was static text.

Last time i had this problem , i solve it by put the dynamic box and the
"scrollbar" component on the same layer.
But this time , iīm not using the component.
Iīve made a "up" and "down" button , and also put it on the same layer
as the dynamic box.
But itīs not working.
I have this problem again.!!

If anyone knows how to solve this or has the same problem,
reply so we can discuss this issue.

thanks

Dynamic Text And Saving/loading
I have 2 dynamic text boxes and a save button on a movie called inputform.

the variable names for these 2 text boxes are:
lastname
age


the instance name of the button is save.

When a user finishes typing their lastname and age, and after they click the save button, I want the values to be stored in a text file.

On another movie clip called resultform, I also have 2 dynamic text boxes. I want the values of these 2 text boxes to populate with the values inputed from the inputform (of which are now stored in a text file)

I am using FlashMX...can you help me with the coding please?

Problem Saving A .fla With Dynamic Text
hello there,

Itīs be a while that i didnīt have this problem.

I make a box with dynamic text , and after i save the project (fla.) , when
i open the file again , the box is on the size of the full text.
That means that it change the box like it was static text.

Last time i had this problem , i solve it by put the dynamic box and the
"scrollbar" component on the same layer.
But this time , iīm not using the component.
Iīve made a "up" and "down" button , and also put it on the same layer
as the dynamic box.
But itīs not working.
I have this problem again.!!

If anyone knows how to solve this or has the same problem,
reply so we can discuss this issue.

thanks

Saving A Dynamic Movie As A Graphic
Hi,

I have a movie that plays in a flash projector where the user can manipulate things on screen with drag and drop etc.. I would like to have the final product be able to be saved as some sort of graphic file.  I know you can choose to print as a bitmap, but is there any way to save it as a file?

thanks for any help

Saving Text Files With A Dynamic Filename
How can I save all variables to a text file which has a dynamic filename? I want to save all my variables in an invoice with the invoice number and the extension .txt on a hard drive on a standalone flash application. The invoice number is generated each time you start a new invoice, but then I want to:
1- save the file as invoiceno(the value of it).txt and also 2- how can i later retrieve it?

Saving Dynamic Test Into External .TXT File
hi

Is there any way to make flash save text entered into dynamic text field to an external .txt ???


thank you

Tools For Saving Dynamic Flash Websites
hello fellow flash users,

What software do you guys use to save flash websites ? I have used many of them including offline explorer, inquiry, offline commander, flash saver, saveflash, etc.... None of these utilities can deal with dynamically loading .swfs. That is they'll save the initial .swf at a certain url, but cannot save the subsquently dynamically loaded swfs.

Really would appreciate anyone who knows of a better way to save an "ENTIRE" flash website with link translated for offline viewing and archiving.


p.s: the best utility i use ( comes close to saving an entire website with offline link translation ) is offline commander. But this program is no longer being updated as of 2005. therefore it will not load flash 8 or up swfs.

thank you guys.

SketchPad HELP - Saving/Redrawing Dynamic Drawings...
Hi guys

I am currently making a sketchpad in flash, the user can draw dynamic squares, line, circles, freehand etc....

I need to be able to save what the user has drawn, or click a "redraw" button and then flash re-creates what the user has just drawn.

Each different line, circle etc is draw in a new movieclip on a higher depth than the previous movieclip.

Does anyone know how to do this, or any good tutorials or .fla files I could use to help me!?

Many thanks

Jonny

Dynamic Saving/export Of Gifs From Flash Movie
Just wondering if anyone has any thoughts on how this might be done, I can't seem to get my mind around it.

I want to build a face generator that will allow users to create a face and then save it out of flash to a gif file.

So, let's say that I understand how to make the face generator... Well, I can imagine, and think I can pull it off. It is just the saving of the file that I don't know how to do.

The gifs will be used as avatars for members of the site after they are created.

The site is on a coldfusionMX server and the version of flash is MX as well.

Thanks in advance for any suggestions.

Saving From Grid Via Dynamic Variables & Accessing PDA Keyboard Via Flash
As a part of a university course in interaction design we are making an application which is supposed to be used on a PDA. Me and my partner (as well as another group) have encountered two problems which we don't know how to solve.

The first one is saving all the data in a datagrid when leaving the frame the grid is placed in. The data in the grid is being generated by the user which makes it impossible to know how many items there are, except for the fact that there will be at least two items in the grid. One of the items will always be edited by the user in the following step and therefore doesn't need to be saved. We are trying to solve this via dynamic variables that are being created in a for-loop. Unfortunaly there is something that goes wrong when we try to create the variables in following ways (inspired by the solutions in declair dynamic Variable names??? Howto? and A difficult dynamic variable problem):


Code:

//antalNu = number of items in grid +1 - i suppose dataGrid.length could be
//used as well?
for (local = antalNu - 1; local>0; local--)
{

//Trying w as well as w/o a listener:
this["snabbForseelse"+lokal] = "testtext";
}

trace (snabbForseelse2);
//Returns undefined

var theSelectedItem = my_datGrid.getColumnAt(local).label;
trace (theSelectedItem);
//Returns undefined

trace (["snabbForseelse"+lokal]);
//Returns snabbForseelseX (depending on value of X)
How should we go about to solve the problem? Can it be done?


Our second question (not sure wether it's customary to post alla questions together or seperately in this forum) is about different FlashPlayers for PDAs. We are using a HP running Windows Mobile 2003 SE if that matters. What we want to do is to play in fullscreen-mode (or with the start-bar) to be able to make the menu-bar look like we want. We've found players capable of doing this, but they don't seem to support using the soft keyboard at the same time, which is crucial to us. We therefore wonder if there is any way of accessing the soft keyboard via flash or if there are any players which lets you access the soft keyboard but still edit the rest of the menu-bar?

Thanks in advance!

Saving An Swf
I am trying to create an swf file that can be opened, modified (for example like a jigsaw game) and saved so that the game can be resumed or completed at a later date. Is this possible and if so how?

Saving
Hmm...

I made a test-movie with two layers. Then I saved it, and the next time I opened it flash had merged the two layers into one!

All my keyframes and motiontweens were gone as well, but the changes in position were left, I just ahd to remember where the keyframes were and insert new ones.

But how do I save a project so that it it looks the way I left it when I open it later?

Saving Swf's
Dear Mentors,
I am having a problem. I am trying to perform a load movie with an external swf file, but every time I try to load it is saying there is an error. Where exactly do I have to save the swf's that I would like to load? In my C drive, or somewhere else, so that Flash knows where to go find the file. Please help me on this one-Shawn

Saving Swf's
Big time props to whoever can help me solve this problem

I am trying to make a football playbook program entirely in Flash MX. My goal is to be able to select routes from a tool bar or even draw the routes. After designing the play, i would like to save the play as its own swf file.

Basic Question is:
Is there a way to save a .swf from another .swf file.

Saving Swf's
the problem at hand is saving an swf from another swf file

possible solutions:
1. MMSave command... gets half the job done, but only works in flash envronment

2. shared object... saves cookies... not sure on how to make it work

3. MING... PHP script that has a swf output... once again, little knowledge about it

4. .bat... writing a bat file to run that will open flash, and export the movie. needs to be combined with cookie... dont think bat file could run keyboard command (i.e. alt + F12) though.

now to my point... which one of these, would work best, i have a program that the user drags a bunch of football routes to a desired location to create a play for a playbook.(like in madden football create-a-play mode) i need to save the file..

please help!!!!!!!!!

Saving In Db
Hi!


in my movie.. user can create a drawing...i want the save feature in my movie...

all variable for example x, y are there... i just need the code to save that variables in my database... server side scripting language is ASP... database is SQL Server...


i want the code to save the variables in database....


and i want to retrive the values from database at first frame...

and assign to local variables of flash...

....

Saving
If I was making a game and I wanted the player to save thier place in the game (inventory, xp, lvl, gp and everything) how would I do that?

Saving .swf's
ok, dont think this is the right place, stick it anywhere you feel apropriate, sorry for the hastle, i couldnt find a fitting forum

ok, heres we go, just a quickie

if there is a .swf file embedded into a page, how can i save this to my harddrive?

a friend said that i might need to use a download manager? do i? what are they? which is the best? how does it work? ect ect


Thanks guys, any other suggestions are welcome




p.s. before you guys start to attack me, im not downloading the .swf files on a web site, i just want to download games, (free ones at that)

Saving As A Jpg
hey there fellows

i have a dealine on this project due on the 26th of Feb. and i need some guidance for this question.

the project is a "program" thing that you can customize hockey jerseys in. you can choose the color and the fabric styles etc.

what i need to do is that when the user is done their jersey, they can click a "save" button and a picture of their jersey will be saved as a .jpg on the server.

any insight would be great

thanks all

Help With Saving
Can anyone tell me how, or give me a tutorial on how to make a save game button or something that works? Cuz im workin on a flash game that need either a button for saving, or autosave. Please help, thanks

Saving FLA As AVI
I am having a Problem with FLA to AVI. The conversion takes place fine but all my movie symbol wont play in the AVI movie. e.g. I have a fairy flapping its wings the wings are a movie symbol and the fairies body is a graphic. All I get is the body and 1st frame of the movie nothing else.

Is there anything I need to be ticking for the ovie symbols to export as well?

Thanks:
confused:

Saving
I have been racking my brain about something that i have been tring to do for a week now and i dont know who or what to turn to. So if anyone can help me out i would be greatfull.
Here is what i am tring to do -
I have a shopping cart like layout for my last page in my project that i am doing, everything works up till i close out the project. I know about cookies and saving locally but that isnt what i wanted to do. I want it to be that when the person presses the save button that it is saved in the file that the project is in (i.e. P:groupproject ) everyone has access to the files but i dont want to put a cookie on their computers for one reason. The reason is that i want cookies or the txt files in the project document so that i can recall what that one person ordered, how much they orderd, and how much they spent on the front page summery. This is all i need to finish my project. Also on a side note if anyone knows how to make a search engine that takes you to that item or word that you searched for. If not no big deal.
Thanks. ^.^

Saving
i have a pdf that i want people to see but its about 600kb so when people click on the link in my flash movie it always freezes - anything under 250kb seems to work fine

is there something i can do to the button that is the same as rightclicking an html link and going to "save target as" ???

so a button that will save a file to the hard-drive

Saving XML
I have sucessfully:
- Created an XML document
- Got flash to open the XML file
- Got flash to disply the XML information
- Allow user to modify text
- Saved modifications back into the "myXML = new XML();" file

I now want to upload/save the modifications back onto the server hosted XML file.

I was trying to use the XML.send() or XML.sendAndLoad() method without sucess.

Can this be done, and if so how?

Saving The SWF As JPG
Guys, when running a SWF, is there an ActionScript command (1.0/2.0) which allows the user to save what the Flash Player is displaying to an external file like JPG? It's much like a screenshot but the only thing saved is what the Flash Player is showing.

All of this has to be at runtime and not at the authoring stage. Please help if you can.

I have this insane project in mind and was hoping that if Flash can load external images, is it also possible to do it the other way around with the addition that vector images such as those displayed in Flash could be converted then saved as JPG or any other format.

Saving As JPG
Since you can draw in a swf using the Flash API, is there a way to save what you drew to an external file such as JPG or any other format? Some people suggested PHP and others...please help me out on this one guys. I'm open to any possible answer.

All of this has to be at runtime and not at the authoring stage. Please help if you can.

I have this insane project in mind and was hoping that if Flash can load external images, is it also possible to do it the other way around with the addition that vector images such as those displayed in Flash could be converted then saved as JPG or any other format.

Saving A Fla As A Swf
I have a fla that whenever i try to export it to a swf file there are two fonts present in the file that will distort. Other people have exported it with no difficulty, but wont tell me how to unless i pay them.

I am very new to flash and before i go paying someone to tell me how to export a file without the fonts distorting is there someone here that could help me.

Someone mentioned to me that i might have to install the fonts?

I honestly have no clue. I am wondering if maybe the settings on on my flash mx 2004 are incorrect. Like i said ..no clue.

Thanks

Saving XML?
could someone please point me to a good tutorial on saving XML data from flash.
PHP would be preffered.

thanks for any help.

Saving Jpg's
I know this question has been asked a million times but I can't seem to find the aswer anywhere, so here it come again.

Is it possible to have a button that takes a screenshot of your flash and saves it as a jpg to your desktop? I don't want to use anything outside of the flash. for example I don't want to press print screen then paste it in photoshop.

Cheers
B

---------------------------------------------
one day someone will answer my cry for help

Saving
How would I save data to a text file from a swf file that's running. For example, if I wanted to create a hi-score list that could be transfered with the swf file.

Help With Saving
I have a flash application (I'm using flash 8) that is running on the client (windows for now). I've basically wrapped the Shockwave Flash ActiveX control with an c++/MFC App. I'm a windows developer and new to flash.

The application allows the user to open an image file in a viewer that's masked. I then allow them to zoom and pan(pan is done with the start and stop Drag functionality) The problem I have now is allowing the user to save the changes they have made to the image. (and saving only the masked portion of the image plus a little extra on the sides.

I'm having issues with the movie clip boundries (meaning the drag isn't always working and I'm not sure why, but that's another question..).

Anyways, I'm sure lots of people have done this. I read this quote on another message board, has anyone done this in a windows app locally and not server? "Direct access to the BitmapData pixel array so it is not necessary to read out an image pixel by pixel if one wants to send it to a server."

Thank you, any help is appreciated. Please let me know if this doesn't make any sense or if you need anything to help.

Saving
I would like the easiest/most portable forum of saving with flash. Could someone give me an example for saving text and pictures. I want something that is not location dependent or needs extra software installed to use. I would love to learn. Thanks all for any help.

Saving To Psp
I know Shared Objects dont work but what does I can find anyway to save data to the PSP. I know people have done it if you look at the PSP forums you can see the portals.

Saving Swf
is there is any way that we can save swf at some specific point and then reload that swf from that same point.

Saving?
Does anyone know if saving games, info, etc. in Flash is possible? Maybe using cookies or common files saved on to hard drive. Sounds unlikely but I'll research it.

Saving
im making my first flash game and after lots of searching through tutorials ive got a decent erngine but one thing i really need to know is how to make it possible to save a game and return at a later time to load.

ive ahd flash for 2 days but i know a little about the function of codes, i jsut don't know any =S

[F8] Saving?
Just wondering, how can you save in flash?
in this game, Xeno Tactic (one of the best flash games i've seen)

http://www.onlinegamesquad.com/index.php?1085-1

after finishing 1 mission, when you exit and come back it resumes to that mission.

Saving
Sometimes i explain things so bad no one answers so i'm just gonna say a completly blank statement and work off what you guys say...
How do i save a variable in my game (save/load system)?

Saving Xml Changes
hi

I load an xml file and i change the value in its source attribute. now i need to save the changes so that the swf file that is loaded in the next frame, and uses this xml will read the updated value.
can i do it with AS 3? any suggestions?

thanks in advance ...

in wonder.

[F8] Help Saving Fla
hii ppl from flashkitt
i need help saving a scene from a fla
i have a fla with scenes 1,2,3,4 and 5 ,and i just want to save scene 5 as a .fla
how do i do it??

Saving
I'm using
Macromedia Flash 8 Professional
Actionscript 1.0 & 2.0

I would like to know how to save Vars for when a button is clicked the game saves, close the swf, open the swf the data from the old game is still there.

EG: I click a button with the var "clicks" 40 times, decide to take a rest, presses save, close the swf, when I want to play again, opens the swf, I wont have to start with 0 clicks, ill still be at 40.

[CS4]Saving As CS3
Any idea whether there's a way to tell flash to save all CS3 files you open back to CS3 when you press Ctrl+S?

Right now, if you open a CS3 file in CS4, and save, it will automatically save the file in CS4 format. This is annoying because I would have to go and Save As CS3 every single time I want to save...

and I don't want to continuously convert between CS3 and CS4 just in case it causes losses.

So does anyone know a way to solve this? Thanks.

Saving
Is there ANY way to save a game in Flash? I don't care if it's complicated, but is it possible?
Thanks

Help With Saving
I want to save data into a text file and i want to specify the location of where the file is to be saved

any ideas how i can do this?

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