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


Similar Posts:


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 :: 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 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 :: 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 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 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 :: 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 :: Draw Text On The Board When Drag The Balloon

Sep 26, 2004

I have a drawing board created and a comic speech bubble clip created. The clip is draggable and text can be inputted into it. The problem is that I don't want to draw on the board when I drag the balloon. See the fla attatched!

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

ActionScript 2.0 :: Draw *only* On The Board Area (a 450 X 350 Pixels Area) Instead On The Whole Movie

May 30, 2004

However I'd need to be able to draw *only* on the board area (a 450 x 350 pixels area) instead on the whole movie... how to "tweak it?" Here's the fla: [URL]

View 8 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 :: 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

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







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