ActionScript 3.0 :: Undo And Erase Button For A Drawing Application?
May 16, 2010
I found this code on a forum which allows for an undo and erase button for a drawing application (and is perfect for what I need) but it's in AS2 and I can barely make sense of it:
Code:
_root.attachMovie("canvas", "canvas", 0);
d = 0;
[code].....
View 5 Replies
Similar Posts:
Jan 9, 2009
Im building a pretty simple drawing board in flash, i got this code from this forum and it works fine (there is more to it but this is the drawing part)[code]This works fine. But i want to be able to erase the drawings, step by step this is ths tricky part, ive looked everywhere(ok not everywhere) but in a whole lot of places but the only thing i found is how i could delete everything with removeChild and that in not what i want. Maybe i need to change the function abowe? Please help me to get in the right direction. What should i read about /look at?
View 5 Replies
Jan 12, 2011
I have a problem with functions, i'm creating a painting app in flash as3. i want to draw two different style a pen and rectangle.
When i draw pen style in first frame there is no problem, but when i click rectangle style in second frame it is drawing with both style. How can i stop or kill other function?
How do I make both of the not drawing. And How can i undo my last action in drawing?
[code]...
View 4 Replies
Aug 5, 2005
i'm currently devolping a drawing board out of flash but i was wondering instead of erasing all the pen lines drawn just the last pen line drawn,im using kirupa drawing board tut for the all erase just stuck to gewt the last line erase done
View 9 Replies
Jun 1, 2010
I have a Sprite that I draw into using lineTo. Later the sprite is drawn into a bitmap to add to a mask. That works great. The issue is erasing the vectors in the Sprite once they are drawn.
To draw I just do something like:
userDrawing.graphics.lineStyle(12,0x000000,1);
userDrawing.graphics.lineTo(mouseX,mouseY)
[code].....
View 3 Replies
Dec 8, 2011
I am making a flex whiteboard application where lines are drawn over an image here is the scenario:
1: main canvas holding the background image and drawing canvas
2: user can move image by dragging image
3: user can draw over image, which is actually drawing on canvas over image.
I'm having problem on erasing lines like it eraser in paint. Searched evry where but didnot find a way to erase drawn lines
[Code]...
View 1 Replies
Feb 22, 2007
I have developed an small application in flash 8. It is creating xml at runtime and add new nodes,delete particular nodes at run time. I want to use undo option in this application.
View 5 Replies
Aug 13, 2009
how to make eraser tool my problem is i have two sprite one have backgroun image and other one have drawing by pen ,brush.
now i want to make earser to erase only the drawing part not the background image .
View 6 Replies
Aug 7, 2010
I wnat to make my movie clip undo redo how to make them in flash application similar to Microsoft office 2003 application..
View 1 Replies
Apr 30, 2010
I created some Combobox and, when you select each item, a Movieclipappears with a different width,height and name.When it's in the scene you can Drag it to the position you wish.I made two button:Undo(), Redo()for the user who wish to make a previous action,in other words,put the Movieclip to its previous place.I try something with some Arrays that capture the different position when Drag is stopped.I place a Shared Object for registring all the previous position but I don't know how to make it work.So,I show you my code.function of the combobox:
Code:
ComboBoxclassic.addEventListener(Event.CHANGE,select);
function select(evt:Event)
[code]......
View 0 Replies
Nov 24, 2009
1. Can I create an UNDO button to my runtime editing website?
2. Can I create a REFRESH button which will only refresh the current frame?
View 2 Replies
Apr 10, 2010
i've created a simple drawing application with colors, a clear button, and a save function, but my problem is i want what people draw to become the head of a character in my animation.I would LOVE a transparent backround too to whatever they draw,
View 3 Replies
Mar 10, 2009
how can i do export the image that drawing in the application (swf file) ontime . i 'm design the flash application that you are drawing , switching the brush style and font and .. but i don't know how can i save the image that draw in .
View 1 Replies
Jul 28, 2009
I wonder which component to extend in Flex 3 in order to make a drawing stage.
View 1 Replies
Feb 6, 2012
There are several flashbased painting/sketching online apps that allow multiple users to paint simultaneously. Some examples: [URL]For a project, we want to implement something similar. The question is, whether we need to start from scratch or whether there are any libraries available that could facilitate development (especially the networking part).
View 1 Replies
Feb 22, 2009
I'm trying to make a drawing program in Flash 9 (AS3 ) which will allow the user to make their own caravan decking design. I'm having trouble getting it finished as I have only been working in Flash for about a week. Please see attached files.I think I'm on the right track, but heres 4 things I need to complete the work:
Add Object Focus: When the user moves the mouse over one of the decks I would like the decks border colour to change (0xFF0000) and to activate focus.
Add Object/Clone Copy: When the user starts to drag the deck and the deck has focus I would like the program to instantly clone that object to simulate the decks having an unlimited number.
Add Rotation: When the deck has focus I would like the registration point to be reset to the middle of the sprite. Currently I only have it working on one.
Add Collision Detection: I will have a basic drawing of a caravan in the middle of the screen and I wish for the deck to never go over the border of the caravan. When the user let's go of the mouse I would then like the collision detection to include both the attached deck and the caravan.
View 0 Replies
Jun 24, 2009
How to make multi user drawing application in as 3.0
View 8 Replies
Feb 19, 2010
I have a drawing application likewhere the user can select a brush size to draw.I need a way to determine that all the surface has been drawn.
View 2 Replies
Apr 8, 2011
So i have a project i am working on that is a drawing application. I am trying to put a brush size slider into the application but i have no idea where to even begin.I am very new to flash/actionscript so i dont know where to start.
View 9 Replies
May 30, 2009
i make good Online Mulit Drawing example for you herethere is a Socket Server that i made, and swf to.
View 2 Replies
Jun 14, 2011
I have this: [URL]. And would like to be able to stop drawing when dragging the added picture. The thing is, the drawing App is inside the fla. The Drag and Drop is an external class. What I think myself is I probably have to change the entire drawing code to an external class also, but then I'd still not know how to have those 2 classes communicate with each other.
Fla file:
PHP Code:
Draw API Marius Posthumus
import com.adobe.images.JPGEncoder;
Importsimport flash.display.Shape;
import flash.events.MouseEvent;
import flash.display.BitmapData;
[Code] .....
View 10 Replies
Jul 9, 2010
How do I create a simple live drawing board/whiteboard functionality using flash as3, and flash media server 3.5.
View 1 Replies
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
Aug 4, 2011
How I will be back in Login Page after click of logout which is in application's component.
Project.mxml
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
[Code]....
View 2 Replies
Sep 20, 2011
I am creating an application. At one view I have three states. If I changes state and than back button pressed it unloads the application.I am developing it in Adobe AIR.
View 1 Replies
May 3, 2009
I somehow hided the frames:How du i undo that?
View 2 Replies
Sep 5, 2009
How to implement undo/redo functionality? Actually I have a painting canvas in flash in AS3.0. For it I need UNDO/REDO functionality as user draws.
View 2 Replies
Dec 2, 2009
Im wondering how to implement undo redo functionality with a TextArea. I already have an undoredo framework functionality working, now I have two questions.When do I start/stop a new undo/redo command, eg when a user hits undo, how far back do I go. How do I implement this(1.) in a normal TextAreay thinking:I thinking that I should create a new undo command, when anything but a alphanumber+space is hit. To do this I would use the keyDown event and test if the key is alpha num if it is not I will reset the command.
View 3 Replies
Jan 17, 2011
i've been unsuccessfully attempting to create my own undo/redo classes that work well with any type of possible undo and redo commands.
for example, my simple class works perfectly with undoing/redoing x and y positions of display objects or undoing/redoing values of sliders, etc., but things get dicey when i try to tailor my classes to also work with things like adding and removing items to a list.
is there any well known and well documented solution for general undoing and redoing for actionscript (without Flex)?
View 1 Replies
Nov 16, 2011
I am going to create an application in that i have to implement an Undo and Redo feature. In the application there will be multiple objects located on stage and user can customize the position of the objects. But when user clicks on Undo the object go back to their default position and after clicking on redo object will move on the new position. So my question is how can I apply these feature in my application? Is there any library or any third party classes?
View 3 Replies