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


Similar Posts:


Actionscript 3.0 :: Flash Drawing Board With Erase Function / Erase Line By Line

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

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

ActionScript 2.0 :: Drawing Board Thing?

Nov 19, 2005

I found this tut http:[url]...and wat i want to do is have thing like Flash.I know how to make the lines thicker but i need when you click the button the lines turn thicker like the As changes.

View 9 Replies

ActionScript 2.0 :: How To Disable Drawing Board

Mar 10, 2012

Upon hoping to the frame with the drawing board actionscript on it, i've successfully created the erase button to remove all the drawings made, but then i also have a 'HOME' button that takes me back home. BUT the drawing board actionscript is still active even on the HOME frame. +On the home button i've added in the clear(); function to also remove the drawing. Either way this still does not remove the drawing board actionscript. How do I completely disable the drawing board actionscript upon clicking home? but still be able to reactivate it when I'm on the frame again.

[Code]...

View 1 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 :: Change Drawing Board Pen Color?

Mar 19, 2005

I'm making a drawing board and i want users to be able to press colors on my swf to be able to change the colour of the pen how can i do this?

if you dont know what i mean just check a paint package out and look at how you chose your colour thats what i want to do?

View 7 Replies

ActionScript 2.0 :: Drawing Board How To Add Text, Shapes

Oct 17, 2006

(MX2004)I have made a 'whiteboard', users can draw on it, change width of pen, clear it.

I need to:

1. allow users to add text as well as lines

2. allow them to add a circle or a square

3. clear last stroke/shape

4. save the drawing

5. email it or print it

View 9 Replies

ActionScript 2.0 :: Setting Drawing Board Boundaries?

Dec 12, 2006

I used Kirupa's drawing board tutorial, but when I finished making the flash file I wondered if there was a way to limit where the viewer can draw. For example, on his tutorial he shows you how to create an easy erase button. Well, what if I don't want the viewer to be able to draw on the button. Is there a way to specify the area that you want the viewer to be able to draw on? I tried making the space a movie clip and just adding the actionscript to the movieclip, but when I placed the movie clip inside a bigger flash file it wouldn't let me draw at all. I thought making it a movie clip would then limit the drawable area. Did I do a good enough job explaining my problem? I just want to be able to limit where the viewer can draw, so that the viewer can't get wild and draw all over the buttons and controls.

View 1 Replies

ActionScript 2.0 :: Drawing Board - How To Get Color Selector

Jan 16, 2008

I have put a drawing board on my application, but I cannot figure out how to get a colour selector..? Another problem with this, is that when the page is selected I can draw out of the board, and also when I navigate to another page I can continue to draw on other pages (not good!)...

Heres the script:
this.createEmptyMovieClip("drawing_mc",this.getNex tHighestDepth());
this.onMouseDown = function() {
drawing_mc.lineStyle(10,0x000000);
drawing_mc.moveTo(_xmouse,_ymouse);
onMouseMove = function() {
drawing_mc.lineTo(_xmouse,_ymouse);
}} this.onMouseUp = function() {
onMouseMove = noLine;
}

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

ActionScript 2.0 :: Changing Drawing Board Pen Colour?

Mar 19, 2005

im making a drawing board and i want users to be able to press colours on my swf to be able to change the colour of the pen how can i do this? if you dont know what i mean just check a paint package out and look at how you chose your colour thats what i want to do?

View 9 Replies

ActionScript 2.0 :: Changing Color In A Drawing Board?

Feb 21, 2005

in a flash drawing board... how do i get it to change color of the pen... i know how to draw.... but not how to change color

View 3 Replies

Flash :: Drawing Board In Professional CS 5.5 Installed Or An Extension?

Sep 20, 2011

Is there a drawing board in Flash Professional CS 5.5 installed or an extension? I want to use it to display a text string, and the user would be able to draw above the text. For example I could display a question and the user would be able to circle the right answer. Is it possible?

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

Flex :: Create A Simple Drawing Board/whiteboard Functionality?

Jun 17, 2009

How do I create a simple drawing board/whiteboard functionality in Flex ?

View 2 Replies

Flex :: Creating Simple Live Drawing / White Board Application?

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

ActionScript 2.0 :: Get The Pattern Drawn On The Drawing Board To Be Repeated On Another Area Of The Stage

Jul 15, 2004

This time round i need to get the pattern drawn on the drawing board to be repeated on another area of the stage.I need it to be repeated 4x4 tile.

View 1 Replies

ActionScript 2.0 :: Make A Drawing Board(like Colouring Book) Where When Click And MOVE THE MOUSE It Colours The Object?

Jun 14, 2006

i am trying to make a drawing board(like colouring book) where when i click and MOVE THE MOUSE it colours the object(more like a brush and not as a paint bucket)i would like to know how to colour objects individually(without coloring background) and the most IMPORTANT is there any way to detect what percentage of object had been colored(like if 100% of object coloured something happens!)

View 2 Replies

Flash - When Drawing A Freehand Line With The Cursor, How To Make It A Dashed Line

Nov 23, 2011

I am using Flex 4 and AS3 and I am trying to make it so that the user can draw a freehand line with the cursor - I have this part done.However, I also need the line to be a dashed line instead of one solid line like it is now. below is my code I am using. I have found some examples on how to do this, but they are all for straight lines, not for a freehand line.

Class File (DrawingArea):

package
{
import flash.display.BitmapData;
import flash.events.Event;
import flash.events.MouseEvent;

[code]....

View 3 Replies

Actionscript 3 :: Drawing An Arrow At The End Point Of The Line Using Line Slope?

Jan 9, 2012

I am developing a white board application which allows the user to draw line with arrow head (some like Microsoft Word line with arrow feature). I am using graphics property along with lineTo() method to draw a line. Now i have to draw a angular arrow on the last point of line. I am drawing the arrow by connecting the points around last points. As 360 line can pass through this point and each line can have a different angle of arrow.

View 1 Replies

IDE :: Animating A Drawing Line?

Nov 19, 2009

How do i animate a drawing line? I mean like from point A to point B, the flash will show it is "drawn" itself.Can I do it simply without actionscript? Is it possible? Because I have many lines to draw, to make it into a diamond.

View 14 Replies

ActionScript 3.0 :: Line Drawing Effect?

Apr 16, 2009

What I'd like is the ability to draw a line with the drawing tools in Flash, and have that line appear onscreen as if it were being drawn. I don't think there's a way to do that with the animation tools (I'd like to give it a go, but I have no idea, once I've drawn a line and converted it into a symbol, how I could access the anchor points and whatnot of said line to then do some funky stuff with curveTo, or whatever better solution is out there...

View 2 Replies

Create An Animation Of Line Drawing Itself?

May 15, 2009

How can a create an animation of line drawing itself.

View 1 Replies

Simulate Drawing A Line Or Growth

Nov 9, 2009

With several flashes I'm trying to create, I find that I need to know how to depict a line being drawn or a plant/vine growing (same concept right). Obviously frame-by-frame animation can be used, but that's quite tedious. There must be some other, more productive way to pull it off. Example of the vine: [URL] I've tried shape tweens with shape hints but it didn't render very well at all.

View 6 Replies

ActionScript 3.0 :: Looking For Smooth Line Drawing In It?

Oct 18, 2010

I am looking for a smooth line drawing effect as in the pencil tool in Flash. I need to implement the same using as3.

View 7 Replies

ActionScript 1/2 :: Drawing A Long Line?

Mar 26, 2009

I'm having troubles with the width of a line using the lineTo and lineStyle function, I can put setting the thickness and noScale parameters, and it works fine for no longer lines than 32000 pixels, but when I try longer line, the thickness changes to a bigger width. if you want to try what I'm saying you can prove this by changing the num variable:to 33000 for example:

num = 32000
this.createEmptyMovieClip ("Envolvente", 100);
this.Envolvente.lineStyle(0,0x00CC00,100, false, "none",
"round", "miter", 0.8);

[Code]...

View 2 Replies

ActionScript 3.0 :: Line Drawing Is Too Slow

Sep 4, 2011

i'm developing a game for mobile devices where I need to draw many objects and some lines(1~3 just occasionally).
 
my problem in short is: Line drawing is too slow for iPhone4

objects are drawn with bitmap, so it's pretty fast with GPU support. drawing lines are slow.

a end point of a line follows mouse cursor, so it changes every frame.

here's how i did it

initialization step:
var img:Shape = new Shape();
addChild( img );

[Code]....

that gives me 47~48 FPS on my iPhone. +2 FPS but still way too slow for a simple line. 
 
without the line, i can maintain my whole game around 30 FPS. with the line, it goes below 20.

View 3 Replies

Flex :: Drawing Line Without Mxml ?

Feb 16, 2011

i want to draw a line with actionscript .Here is my code

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]......

View 2 Replies







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