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


Similar Posts:


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 :: Saving Flash Drawing As Png Image To Database?

Sep 5, 2010

i've seen a few good examples to save out a png of the current flash display area from a webbrowser from a flash, such as:[URL]what they normally do is stream the image data through a png encoder to a web server somewhere and then decode the image data back to current webbrowser and then trigger the web browser SAVE function, by prompting user to select a path and file name to save, like a download.however, the difference is when you click that save button, you can save your png image directly to a certain location with a fixed file name, such as on your local computer:

View 5 Replies

ActionScript 3.0 :: Saving Mouse Drawing Data In Xml And Retrieve It For Edit In Flash?

Apr 23, 2010

i am wroking in action script 3 with flash i need to save mouse drawing data in xml and retrive it later for edit purpose i have found a good technique -here but not able to make sure how to store in xml and how to retrive it

View 4 Replies

ActionScript 2.0 :: Drawing API And XML, And Dynamic Picture Loading?

Jun 4, 2006

I've loaded data from an XML file and put it in an array that contains everything. I'm trying to get the drawing API to draw some shapes dynamically on the stage using this information. They drew fine before when I was using hard-coded test values, but now that it's dynamic it doesn't work, and I think that's because the shapes are trying to draw before they get their values to draw with. Is there any kind of like "on(something)" I can use to ensure everything's fully loaded before I begin drawing? (The XML file's already in an "onLoad" function.)

Secondly, I'm trying to adapt the dynamic XML image gallery Kirupa tutorial found HERE to work when a button is pressed, and have the images load into a container created with the drawing API. Does anybody have any tips on how this could be accomplished? For reference, here's the code I'm using to create the boxes to house the images (each box consists of a nested preloader bar, and the actual container for holding the loaded image):

Code:
//main box
_root.createEmptyMovieClip("pictureBox_mc", tempClip_mc.getNextHighestDepth() + 5);

[code]....

View 14 Replies

ActionScript 2.0 :: Drawing And Then Saving As .jpg?

Jan 15, 2008

At school, we're going to have something which translates kind of "degree in computers" which requires to create something, anything, in any programming language, to get a lousy A and pass.

The standards are really low, a grade A is something a site you'd make in PHP in 45 minutes and have only 3 pages.

But this "degree" has made me think of an application, destined for kiddies. In fact, the idea belongs to my girlfriend, but that stays between us ^^

The fact is, using the Drawing API (or not, but that's the only idea I have at the moment) how could I draw something on the Stage, and then have it saved as an external .jpg? Is this possible using only Flash?

View 7 Replies

ActionScript 3.0 :: Saving Drawing Data In Xml?

Apr 19, 2010

i am working in action script 3 , is there any way that we can save mouse drawing data with color and stroke size in XML and retrieve back that data and present that in the same format and same position and edit again.?

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 / 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 :: Flash CS5 / CS4 Game Saving / Loading Tutorial

Apr 8, 2011

Somebody give me some tutorials sites for saving and loading game.

View 1 Replies

Actionscript 3 :: Flash Player 10 Dynamic Sound Saving Options?

May 5, 2011

I am able to generate dynamic sounds using flash player 10.Is there any way to save the data to a .wav file on the server?

View 1 Replies

ActionScript 3.0 :: Conversion Of Flash Dynamic Drawing Into .dxf And .dwg Format?

Nov 18, 2009

I want to convert my Drawing (that I created in a Flash Dialog using AS 3) into the .DXF and .DWG format.Is there any way by which I can give the export functionality on the flash page so that the dynamic drawing that created in flash code will export into .DXF and .DWG format.

View 3 Replies

Actionscript 3 :: Convert Dynamic Drawing Page In Flash Into .dxf / .dwg Format

Nov 23, 2009

I want to convert my dynamic Drawing (that I created in a Flash Dialog using AS 3) into the .DXF and .DWG format.Is there any way by which I can give the export functionality on the flash page so that the dynamic drawing that created in flash code will export into .DXF and .DWG format.

View 1 Replies

ActionScript 2.0 :: Saving Dynamic Text?

Jul 21, 2010

Is there a way to allow the viewer of the swf file to save any dynamic text they enter into a field, so that the next time they open the swf file it displays the saved text?

I know that's a tall order, so if anybody could recommend some reading and/or tutorial.This would be in a non-internet atmosphere. Strictly a saved swf or .exe projector file on a users computer.

View 3 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 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

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 3.0 :: Saving Xml File And Dynamic Varialble?

Jun 1, 2009

I created 10 text box with instance name ta1,ta2 .... n wrote

for(var i=0;i<10;i++)
{
var bau = "ta" +i;
this[bau].text=i*30;
}

This code works fine in AS2 but in AS3 I am getting the error

"TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()"

i am making a flash application in which i have to save information in xml file. i am able to open a xml file,make changes but unable to save it. the app n xml file are in same folders in pc.

View 3 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

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 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

ActionScript 2.0 :: Saving / Loading External Text Files

May 27, 2004

i know you can load them in as variables... but is there anyway SAVE a variable as a text file (overwriting old one as well)

View 1 Replies

ActionScript 2.0 :: Saving/loading External Text Files?

May 27, 2004

i know you can load them in as variables... but is there anyway SAVE a variable as a text file (overwriting old one as well)

View 1 Replies







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