ActionScript 3.0 :: Paint "Undo" Function Not Working?

May 17, 2009

Like, I perform some operations with bitmapdata (puttin' pixel there, filling with color)I have those two functions. bmdCavas it tied to actual Bitmap with image, which is placed on screen.

[Code]...

But this code is not working. Should I redraw image after changing itx bitmapdata or something? or maybe I have to do undo function with bitmap itself?

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Brush Size Change And Undo For Paint App?

May 8, 2006

im currently developing a flash paint app for the psp and im stuck in a little rut here i need a way to allow the user to change brush size depending on what they press aka if they press pencil get a thin line stroke,if big brush big line stroke is there anyway of doing this?

and the next one how can i make a undo button so it undos the last line done

[Code]...

View 7 Replies

ActionScript 3.0 :: Making Paint Bucket Function?

Jun 24, 2009

I want to make a paint bucket function, I know about floodfill, but it leaves a white (like the background color) outline.And anyhow I would rather make it on a sprite without converting it to a bitmap, is there a way?And if not then anyone knows how to fix the outline on the floodfill?

View 3 Replies

Function Calling On A Paint Bucket Style Application?

Dec 24, 2009

I'm putting together a little application that has a simpe paint bucket functionality. I'm having a small problem, i'm sure it's an easy fix, but frankly I'm not much of a programmer.

Essentially what I have is a set of color swatches that users can select, and then a grid of movie clips with a series of frames, each corresponding to a swatch color. Over that, I have a grid of clear buttons that check to see which swatch is selected and then tell the movieclip underneath to go to the frame that corresponds to the right color. What I want to do is just set up the function once and call it for each movie clip, rather than repeating the function for each cell in my 6x7 grid.

[Code]...

View 3 Replies

ActionScript 3.0 :: Making Paint Bucket Function On A Sprite?

Jun 24, 2009

I want to make a paint bucket function, I know about floodfill, but it leaves a white (like the background color) outline.I would rather make it on a sprite without converting it to a bitmap, is there a way?And if not then anyone knows how to fix the outline on the floodfill?

View 0 Replies

ActionScript 3.0 :: Clear Function In Simple Paint Program?

Mar 26, 2009

i have been messing around with a script found for a simple paint program. After adapting the code a bit for my own needs and getting an understanding of how it works I had a couple questions.first of all I need to create a button that will clear the stage (or more specifically lvg1)second what does e reference in lines similar to

Code:
e.target.graphics.lineTo(e.localX,e.localY);

Code:
import flash.events.MouseEvent;
import flash.geom.Matrix;[code].........

View 2 Replies

IDE :: Undo Hiding Of Frames?

May 3, 2009

I somehow hided the frames:How du i undo that?

View 2 Replies

ActionScript 3.0 :: Undo Last Action In Drawing?

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

ActionScript 2.0 :: Use Undo Option In Application

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

ActionScript 3.0 :: Implement Undo/redo Functionality?

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

Flex :: Implementing Undo/Redo Within A TextArea?

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

ActionScript :: Create Own Undo/redo Classes?

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

Flash - How To Implement Undo And Redo Feature In AS3

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

ActionScript 3.0 :: Making A Undo Button With SharedObject?

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

ActionScript 2.0 :: Drawing Board Undo Last Pen Line?

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

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

Flex :: Undo, Redo Functionality With Image Manipulation?

Jan 21, 2010

Loads an image to an Image component Transform the image (rotate, flip) with the Matrix Apply filter(s)

Now I am thinking about to create some undo redo functionality. Each time I do a transformation / add an filter I want to be able to go back to the previous image (before the action).

My thought is to have an Array and add the previous bitmap to the stack. But I see that there are some differences between transformations and filters I have also seen the ImageSnapshot and whot i can do and it looks like what I am after.

View 1 Replies

ActionScript 2.0 :: Simulating Undo/redo In Flash Movie?

Apr 11, 2007

i'm making a drawing tool in flash with the ability to draw shapes, put text, etc. i need to incorporate undo/redo facility in it. is there some efficient way to go about it? or will i have to go the hard way, remembering in some way the last three actions performed by the user in an array or stack or something??

View 2 Replies

ActionScript 1/2 :: Create An UNDO Button To Runtime Editing Website?

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

Flex :: Actionscript 3 - Spark TextArea InsertText Breaks Undo Buffer?

Jun 9, 2011

I have a simple TextArea

[Code]..

Everything works as expected, but the undo buffer is reset / stops at the point that a tab was inserted.Is there a way to ensure that the undo buffer remains in tact even with the tab inserted

View 1 Replies

ActionScript 3.0 :: Make Undo Redo A Movie Clip In An Flash Application?

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

ActionScript 3.0 :: How To Paint JPG Images

Dec 21, 2011

I need to develop an application using ActionScript that needs to paint an image. Like the bucket tool in Photoshop. I'm using the method floodFill(), available in the BitmapData class. Is it the best option?I'm having a second problem, because de image that will be painted is formed by 3 images. So, using de floodFill() method, I can paint only 1 of the 3 images.

View 4 Replies

Create Paint Splatter Effect?

May 20, 2009

Does anyone know how to create this effect? http:[url]............

View 1 Replies

Professional :: Use The Paint Bucket Tool?

Sep 2, 2010

for my class i have to draw this fish. in one of the steps it says to draw fins with the pencil. then it says to use the paint bucket tool to color it in. however i cannot color it in. i used all the options too, close small, medium, & large gaps and i still can't color it in. does it have to connect to the start point? i simply attached it to the fish's body. i started over on the 1st part of this 3 time already, and my patience is wearing thin.

View 2 Replies

ActionScript 2.0 :: Paint Application In Flash?

Aug 25, 2009

paint application in actionscript 2.0, and even i have to give an option to save the artwork, and i to gice pen tool option in paint also,

View 0 Replies

ActionScript 2.0 :: Create A Cut Tool Like MS Paint?

Aug 11, 2008

how to create a cut tool like MS Paint with flash8.

View 2 Replies

ActionScript 3.0 :: Random Droplets Of Paint

Feb 28, 2010

[URL] the bucket function generates random droplets of paint, I was wondering how it's possible to program it using AS. (Apparently they used pre-drawn shapes and changed their rotation, x and y scale) (BTW, I want more circle-shaped droplets than the linear ones)

View 3 Replies

ActionScript 3.0 :: Paint Application With Save Button?

Nov 9, 2009

I'm really really stuck with this. I have a flash paint application, and I want to add a button that saves the picture that has been drawn as a jpg using a PHP script. I've done the drawing bit and the PHP bit, I just can't get the button to work. This is my code:

[Code]...

View 1 Replies

ActionScript 1/2 :: Flash Paint Program Saving?

Dec 29, 2009

I have made a flash painting program, and need a "save function" that will save the image to my database.

View 1 Replies

ActionScript 3.0 :: Create MS Paint Like Application In Flash?

May 30, 2010

I am creating a MS paint like application in flash.... for this i have taken a movie clip named board.....nd i am allowing to draw different shapes in it through drawing API. But i want to create a bucket tool so that when user click in the shape drawn in movie clip (through addchild()). The color of that shape should change..

View 5 Replies







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