ActionScript 2.0 :: Save Drawing On Swf Then Reload To Draw Again

May 27, 2007

i'm working on a class project that allows people to draw on a square, save it, display it for others to see, and then lets anyone to continue drawing on that square.how do i script that? i need to use flash and AS2.0, and i'm trying to do some research on how to do this whole thing, and i'm hearing a lot of things: some say xml, some with php and mysql? whatever it is, i believe this has to be a server-side thing? i don't mind learning light scripting of other languages, but the primary scripting should be AS, since it's a flash class.i'm not sure if this is true, but i think xml, php, and mysql are only text-based? for my project, i imagine that people would be saving an swf and then loading that swf and continue adding. is there a script in AS that generates an swf? maybe jpg is fine too. i just need to be able to save and load something that's image based and not text-based.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Draw Over Swf Movie And Save The Drawing To The Database

Jul 21, 2009

im new to this forum and kinda new to flash and php together...i have this project that would load a swf movie on a drawing board and user could draw something over then swf movie. It should be able to save the drawings to the database, so that the user could just load it for later use. for example if the user draws a zigzag line at frame 5 of swf movie and on frame 10 of the swf movie deletes the zigzag line and draw a circle and then saves it. then loads it later, from frame 1 to 4 of the swf movie the zigzag line should not show but on frame 5 to frame 9 it would show and on frame 10 shows only the circle. or just on the specific frame number of the swf movie it will show. like when user draw on frame 6 then on before or after frame 6 it wont show..the second one might be a bit easier to implement.

how do i save the user drawings over the swf movie? and how do i load it? do i have to save everthing (like x and y coordinates, movieclip names) in a textfile? and use that textfile to recreate the swf file drawn? what ways could i implemnt this? hopefully someone to could point me in the right direction.

View 0 Replies

ActionScript 2.0 :: Incorporate A 'Save' Button Which Takes A Snapshot Of Their Drawing Which They Can Then Save To Their Computer

Nov 21, 2009

I've designed a painter program where the user can select different colours and 'paint' a custom design on screen. What I would like to do is incorporate a 'Save' button which takes a snapshot of their drawing which they can then save to their computer.

View 0 Replies

ActionScript 2.0 :: Way To Save Doodle Created To A Server And Then Reload It At A Later Date

May 16, 2007

I used the kirupa drawing tutorial to create a simple doodle application.[code]I really need a way to save the doodle created to a server and then reload it at a later date. It could either be as a file or as data that meant it could be redrawn.I've looked into exporting as a bitmap but the methods seem very complex and also slow/relatively large file sizes (it is only a simple doodle application!!!)url...but it doesn't even seem to be working on the site. I had a look at the code but couldn't really get to the bottom of how it worked.Is there no easy way to save a movieclip out as an swf file dynamically?

View 1 Replies

ActionScript 2.0 :: How To Draw In Particular MovieClip Using Drawing API

Oct 7, 2005

How can I draw only in a particular mc using drawing API...

View 4 Replies

ActionScript 2.0 :: Drawing App Can't Draw After RemoveMovieClip

May 14, 2009

I've been working a flash drawing application with an undo button function so you can delete the last line you drew. Everything is working ok except when I use the clear_btn removeMovieClip(shapes[sc]); deletes all the lines so far but afterwards you are unable to draw again[code]....

View 2 Replies

Flex :: Drawing This Line At (0,0) Doesn't Really Draw It At (0,0)?

Apr 13, 2010

Update: Once and for all, how can I draw a line that goes from (0,0) to the opposite corner of the stage?Here is what I have:

package
{
import flash.display.Sprite;

[code].....

View 1 Replies

ActionScript 2.0 :: Draw An Arrow Dynamically With Drawing API?

Feb 11, 2009

I would like to draw an arrow dynamically with the drawing API.

View 0 Replies

ActionScript 2.0 :: Drawing Board Stop Draw?

Jun 14, 2004

This code is from a drawing board, the problem is:

1- When you click outside the drawing area, a dot is drawn (thus you cant click anything except inside drawing area because it will result in undesired dots)

2- When you drag outside the drawing area the dot is drawn (bad), the pencil doesn't draw (good), but if you drag until reaching the drawing area draws (undesired, because it should only draw when you started to drag from inside the drawing area) how to tweak the code or simple add a "deselect" tool option ? That's a link to the fla file ziped, and that's the code of the drawing board: [URL]

Code:
_root.P = 0;
_root.level = 1000;
_root.tmpx = -1;

[code]...

View 6 Replies

ActionScript 2.0 :: Drawing Board Stop Draw

Jun 14, 2004

This code is from a drawing board, the problem is:

1- When you click outside the drawing area, a dot is drawn (thus you cant click anything except inside drawing area because it will result in undesired dots)

2- When you drag outside the drawing area the dot is drawn (bad), the pencil doesn't draw (good), but if you drag until reaching the drawing area draws (undesired, because it should only draw when you started to drag from inside the drawing area)[code]...

View 6 Replies

Professional :: Draw, It Keaps Convert To A Drawing Object

Aug 24, 2011

how to turn that "Drawing Object" thing off! I cant even fill it in! (the thing i draw) Im using Flash Pro CS5

View 1 Replies

ActionScript 3.0 :: Flash Drawing API Draw The Curved Lines?

Jun 17, 2011

I made this one poor class that has a public function which draws with a single loop a shape with curveTo() function (I tested one option to draw straight lines with lineTo() and only curved lines with curveTo() function but in my opinion, that lineTo function where a bit slower, at least in my implementations of testin speeds).I sent to it four parameters (anchor points and the control points) as many times as there were some corners to draw and everything seemed to go well untill I checked which way is faster to draw single rounded rect. Flashs own way beats my version up with huge 120 m/s distance already in some 100 000 iterations. The format of data I tested to send to my class function to draw that goddamned thing were numbers in arrays, numbers in objects and numbers in my own class objects like linked list and the file that holds just four numbers included in arrays or linked list. And two separate arrays, one for anchor points and one for the control points, with just Point Objects were fastest (if I remember correct) way but still that 120 m/s slower than Drawing API in Flash.My function in the class where something like:

ActionScript Code:
public function drawShape(points1:Array, points2:Array, lineOn:Boolean = false, fillOn:boolean = false, lineThickness:Number = 1, lineColor:uint = 0, lineAlpha:Number = 1, fillColor:uint = 0xff, fillAlpha:Number = 1):void{[code]..........

View 7 Replies

ActionScript 2.0 :: Drawing API - Attach MovieClips And Draw Lines Between Them

Oct 29, 2005

I was screwing around one day and thought I'd make a little line-drawing-thing. Basically it just attaches movie clips and draws lines between them using the drawing API. That was the easier part. Now I though I'd take it a step further and add some curves. I tried but the attached file is the best I could think of.

square.fla is the original file
lineCurve.fla is the file in which I tried to add curves.

View 3 Replies

ActionScript 2.0 :: [Flash MX] Draw Sine And Other Functions Using The Drawing Api?

Sep 17, 2003

how draw sine and other functions using the drawing api ? so far all my efforts have yielded amazing random designs but not the desired functions.

View 5 Replies

ActionScript 2.0 :: Drawing Board - User Can Only Draw On Specified Area?

Jul 14, 2004

I need to know how to script the drawing board as in the user can only draw on a specified area. For example, on a 800x600 layout, only 1/4 of it is the drawing board.After the user has drawn the image, when he/she clicks on a button, the image will be replicated on another area in the same 800x600 space. So far, I can only manage to make a drawing board on the whole 800x600 space and erasing.

View 2 Replies

ActionScript 2.0 :: Drawing API - Draw Rectangle By Dragging Mouse On Canvas

May 10, 2005

I need to to incorporate a functionality where the user can use his mouse to draw a rectangle by dragging his mouse over the canvas - much like the Rectangle Drawing Tool in the Flash Authoring environment. The requirement is something like a rubberband tool where the user can define a portion of a map by drawing a rectangle over it. The coordinates needs to be captured.

View 1 Replies

ActionScript 2.0 :: Drawing API - Draw Rectangle By Dragging Mouse On Canvas?

May 10, 2005

I need to to incorporate a functionality where the user can use his mouse to draw a rectangle by dragging his mouse over the canvas - much like the Rectangle Drawing Tool in the Flash Authoring environment. The requirement is something like a rubberband tool where the user can define a portion of a map by drawing a rectangle over it. The coordinates needs to be captured. Can anyone help me with the actionscript.

View 1 Replies

ActionScript 3.0 :: Draw And Save Web Tool

Jan 4, 2011

I'd like to draw a little web tool, which allows to draw freehand just like with a simple black felt-tip, with a button to save what has been drawn on a jpg file on my website. Do you know any examples? I looked for the code on the net, but none did function.

View 1 Replies

ActionScript 3.0 :: Draw And Save Web Tool?

Jan 4, 2011

I'd like to draw a little web tool, which allows to draw freehand just like with a simple black felt-tip, with a button to save what has been drawn on a jpg file on my website.

View 1 Replies

ActionScript 3.0 :: Save Drawing Without Bitmap Classes?

Jul 2, 2009

i m making a drawing application .i want to save my drawing wit out bitmap classs because when i reload that it is not editable. So can any one tell me how to save my drawing to server with out bitmap .because i want to reuse it in flash.

View 1 Replies

ActionScript 2.0 :: Drawing - Requires User Input Of Dimensions To Draw A Bike

Dec 18, 2009

I am working on a project right now that requires user input of dimensions to draw a bike. I am using actionscript to draw the bike on top of some bitmap images. the problem I am running into, is that the actionscript will not draw on top of the images. The images are on a layer below the layer with the actionscript.

View 2 Replies

Actionscript 3 : :Improving Slow Performance Of Drawing Application Using BitmapData.draw()?

May 27, 2011

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http:url....). There is a background image in the Application skin, and potentially any number of other components above and below the active blur component. Here's some relevant code within the skin:

public static const BLUR_FILTER :BlurFilter = new BlurFilter(16, 16, BitmapFilterQuality.HIGH);
private var _bitmapFill :BitmapFill = new BitmapFill;
private var _matrix :Matrix = new Matrix;[code]....

Unfortunately, the performance of this when the component is being resized, and especially when moved, is poor. There is noticeable drag delay and overall slowdown, and this is with only one popped-up TitleWindow in the test application. There is especially poor performance when components inside the TitleWindow are changed (button hover states, etc.)I've attempted to optimized a little bit by avoiding reinstantiation of the blur filter, bitmap fill, and matrix, but this has had little or no effect. I removed the blur at one point, just drawing the Application to a bitmap, and the performance is still poor, so it's clear that it's mostly the BitmapData.draw() call.

I've read about using scrollRect and cacheAsBitmap, but I'm not sure where to apply these properties (or other optimizations I'm not aware of) within the Application or its components.

View 2 Replies

Flash :: Professional - Let Someone Draw Then Save It To A Database Via Cs4

Jul 25, 2010

My subject sums up the question. I want parents to be able to write their name and then save it to a database. I also want it to appear in an admin panel to make sure it isn't just scribble. I am trying to use flash to comply with the COPPA Childrens Online Privacy Protection Act.

View 5 Replies

ActionScript 3.0 :: Save Drawing On A Website So It Accessable For Altering Later?

Aug 24, 2009

Lets say that a user has a profile on my webpage and is logged in. Hes using a flash draw app on that site and now he wants to save what his drawn. He wants to save it to his profil in an archive, so he can access it again later on. is this possible? and how would you go about it? the drawing is all within one movieclip (with tons of other movieclips inside it) it has to be saved in such a away so its possible to access the individual movieclip inside main movieclip.

View 9 Replies

ActionScript 3.0 :: Save Generated Drawing As Image File?

Jan 7, 2010

my saving part, where user select the necessary equipments & draw the connections. user are also able to generate the cable connection list in datagrid component.

I understand that flash doesnt provide saving to image technically, have seen some websites on the teaching & i tried to apply on my flash.

I have this error: 1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference. at source: fileRef.save(ba,"EMC"+i+".jpg");

I want to save the file locally inside harddisk, without any server script.

View 8 Replies

ActionScript 3.0 :: How To Have Flash Draw Pad Save A Pdf From User Side

Feb 5, 2010

I have found many drawing pad solutions. Some good, some not as good. All of them, however, fail to show how to save the file as a pdf  (would be happy with bmp right about now) from the drawing pad to a server side folder via php. Can someone show how to do that using as3?

On the advanced side, I also need to figure out how to make it recognize logged in users of the preexisting CMS in order to save out to specific user folders. The CMS is Joomla 1.5 latest build, with JomSocial and JSPT multi profile. It would save out to folders created by the JMarketPro system.

View 1 Replies

ActionScript 3.0 :: Save Drawing Data To A File On A Hard Drive

Feb 27, 2010

I'm still relatively new to the actionscript 3.0 world. I have been given an assignment to make a drawing program that allows me to do many different things. One of the big things that it needs to do is be able to save a file with the drawing information and still be editable. After much searching I see that you can't just write sprites to a file and then they come back cleanly, obviously returns null. I also don't think that registerClassAlias won't work because I don't think it will allow me to convert things back to a sprite. I keep an array of sprites that allows me to undo/redo, and I originally figured I could either write the arrays or the individual sprites to the file, but that is not allowed either. Does anyone have any idea how I can possibly accomplish saving my drawing document and loading my document with keeping all of my sprites in my array separate from each other?

View 6 Replies

Dynamic Drawing - Choose And Draw With Other Shapes - Square - Forward Slash (/) - Backward Slash ()

Oct 13, 2009

I am trying to work with this flash tutorial -[URL] So far it draws with a simple rounded line. I have been extending this application by making the drawing board bigger and other small things. I now want to be able to choose the line style. Currently it is rounded and I want to choose and draw with other shapes - square, forward slash (/), backward slash (). Is this possible? If so, could you explain how I could go about it?

View 1 Replies

ActionScript 3.0 :: "screenshot" With BitmapData.draw And FileReference.save?

Sep 20, 2009

I made this dress-up type game, and have been trying to figure out how to let the user save an image of their creation. I've been researching and figured out I need to use bitmapData.draw and fileReference.save in the actionscript somewhere. The only problem is I want this to be a standalone .swf if possible. The 'game' is here. This is part of my code:

[Code]....

View 8 Replies

ActionScript 3.0 :: Pencil Tool - Drawing Above A Image But The Drawing Is Below The Picture

Nov 9, 2010

i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?

[Code]....

View 3 Replies







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