ActionScript 3.0 :: Pencil Tool - Drawing Above A Image But The Drawing Is Below The Picture
Nov 9, 2010i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?
[Code]....
i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?
[Code]....
When I select the pencil tool and draw a path it doesn't show it until I release the mouse button!
why?
bit of a noob at flash, so I've been having a bit of a difficulty in using the pencil/brush tool in drawing an animation. I set a keyframe, and paint a yellow stroke. Then i continue onto the next key. I then go back to the first keyframe, and want to paint a black stroke over part of the yellow stroke i made earlier.
after selecting this first frame (making the layer active), I go to change the stroke color of the brush to black but find that it now changes my yellow stroke (which I want to keep yellow) to black. I see that in selecting the frame, by default whatever strokes were made on this frame are also selected (which I don't want). So I'd like to know how do I avoid altering my previous stroke and still put a different colored stroke overlapping it on the same frame?
also is it possible to append a brush/pencil stroke to an old brush/pencil stroke?
I have downloaded the trial version of Adobe Executive Suite CS5. In the Flash Professional CS5 program I am trying to do a drawing with the pencil tool. In the old version of Flash that I have (4.0) if I draw two lines that overlap, I can delete the line past the point where they cross. In this version I can't do that.It treats each line I draw as a separate item and won't combine them. I notice the properties panel says I am in Object mode which would be the reason. However I can't get it to go to merge mode, which is supposed to be the default.Is this because it's the trial version and not all features work in that version? My email address is[url].... and I can be phoned at 541 782-5904 (Oregon).
View 2 RepliesWhen I am drawing with a pencil, the line looks like the shape I want to draw, but when I stop drawing, the shape reshapes to another shape whick looks like circles and rectangles = it does not look like the shape I wanted to draw. What is the problem?
View 1 RepliesI have been working for some time trying to remake Paint in flash. Question is: how to simulate a pencil drawing, my idea so far is to draw lines one after another.
View 6 RepliesI've seen it before, and I'm unable to properly label what it is..But what I'm looking for is the method to make an imaginary pencil draw on my flash..So if it were a circle (not connecting at the end, just off of meeting) I could use a mask to make it display in any direction but how do I mask the circle going clockwise?
View 0 RepliesI'm having a hard time with strokes. First I selected a stroke and the properties panel would not let me change it's thickness. How to add a stroke to an object. We used to have a tool that allowed us to apply a stroke to an object. That is gone now. How we attach a line to an object now?? It looks like Adobe has changed Flash CS4 to be more like Photoshop. It is about as intuitive as a tax form.
View 1 RepliesI come across a problem when i follow the book "classroom in a book series" the Flash CS4 one (Red cover book) Chapter 2 Q.1 I try to draw straight lines or curves but i found i still cannot manage how to use PEN TOOL How can i draw straight line? Also how can i draw absolute vertical or horizontal line with some special combination key like CTRL or SHIFT i tried guessing SHIFT or CTRL while using PEN TOOL but no help
How can i draw curve? i know it depends somehow on whether i hold my click for a new anchor point? Any tutorial which is clear and easy for new comer for fully understanding for PEN TOOL.(Currently i try reading pdf reference from ADOBE Web site and google search but did not make myself understand.)
Q.2 I cannot use bucket filling a shape draw by PEN TOOL(i already search google sites but cannot find one with satisfied causes for this FILLING Problems) like the image shown below(Please click to enlarge this PRINTSCREEN) Tools i used are PEN TOOL drawing a shape first then a BUCKET for filling color.
I have a requirement to create a drawing tool. I have completed till where on mouse down i can draw and on mouse up i stop the drawing. Now i want a eraser in place; something very similar to what is there in paint. So on mouse down of the eraser and moving over the line segment should erase the portion of the lines.
View 5 Repliesright now i can create a straight line from mouse down to mouse up. what i cant quite get is a preview of that line. does anyone know of a simple way to show a preview of the line while the mouse is still down and the user is moving the mouse?what i have now:
Code:
var clip:Shape = new Shape();
addChild(clip);[code]......
i'm trying to animate the drawing of a picture with my wacom tablet, but the only way that i know how is to start with the full drawing and erase frame-by-frame backwards, which takes a lot of time and can look choppy.
View 1 RepliesIs it possible to draw a strokeless shape with the pen tool (as in Illustrator)? It is quite tedious to have to go back and remove strokes from my shapes.... especially since I can't see how to do it without clicking on each segment and hitting "delete"!
View 2 RepliesI've loaded data from an XML file and put it in an array that contains everything. I'm trying to get the drawing API to draw some shapes dynamically on the stage using this information. They drew fine before when I was using hard-coded test values, but now that it's dynamic it doesn't work, and I think that's because the shapes are trying to draw before they get their values to draw with. Is there any kind of like "on(something)" I can use to ensure everything's fully loaded before I begin drawing? (The XML file's already in an "onLoad" function.)
Secondly, I'm trying to adapt the dynamic XML image gallery Kirupa tutorial found HERE to work when a button is pressed, and have the images load into a container created with the drawing API. Does anybody have any tips on how this could be accomplished? For reference, here's the code I'm using to create the boxes to house the images (each box consists of a nested preloader bar, and the actual container for holding the loaded image):
Code:
//main box
_root.createEmptyMovieClip("pictureBox_mc", tempClip_mc.getNextHighestDepth() + 5);
[code]....
I am attempting to build a tool which creates a graph through data drawn from a MySQL database, however the .swf doesn't seem to accept the xml sheet that is created by the PHP. I was wondering if anyone had any thoughts on this?
View 13 RepliesIs there a way in as3 to manually call one of the preset line stroke styles? I'm going to be drawing a line in as3 and want to use one of the stroke styles given in the pull down menu (6th down actually) in the line drawing tool in the gui.
View 1 RepliesRight now I can create a straight line from mouse down to mouse up. What I can't quite get is a preview of that line. does anyone know of a simple way to show a preview of the line while the mouse is still down and the user is moving the mouse?
What I have now:
Code:
var clip:Shape = new Shape();
addChild(clip);
stage.addEventListener(MouseEvent.MOUSE_DOWN, startLine);
stage.addEventListener(MouseEvent.MOUSE_UP, drawLine);
function startLine(evt:MouseEvent) {
clip.graphics.moveTo(mouseX, mouseY);
} function drawLine(evt:MouseEvent) {
clip.graphics.lineTo(mouseX, mouseY);
clip.graphics.lineStyle(1, 0xff9933);
}
I want to display text which can be circled/marked over by the user. Also the user must be able to print/erase and move on to a new swf file once the page has been printed off. I have looked at a few different options but as yet I have been unsuccessful with the functionality.
View 1 RepliesIs there a way in as3 to manually call one of the preset line stroke styles? I need to call one of the stroke styles given in the pull down menu (6th down actually) in the line drawing tool. I.E. I'd like to be able to draw the exact same line via manual calls in as3 that I can draw with the line took in the GUI.
View 1 Repliesi'm a newbie using Flash CS4 and AS3. A retired social worker, I need to create a basic Flash drawing tool for an eLearning project to teach students how to draw their family tree.
The drawing tool would allow the students to add multiple circles and squares to symbolize their family members, plus text labels for names, ages, and they would need to be able to draw connecting lines between the circle and square symbols. Finally, in order to continue work on the drawing, over time, they would need to be able to save their drawings to be re-opened and edited (add new symbols, erase incorrect ones, etc.). Once the drawing is completed, they would need to be able to print a copy.
Being a newbie (but I have done some related scripting: JavaScripting-ECMA-262, HTML, CSS), I am not sure if this can be done in AS3, Flash CS4. But, if it is possible, I would like to learn how to create this.
I draw a shape with the pen or line tool. If i did not draw it perfectly connecting the dots, i cannot fill it with the paint buck fill tool. How can you tell it to just close the structure
View 3 RepliesI have extensive experience with MS Visio Solution development, and have a need to provide similar functionality in a web interface in the context of a heavily visual product-builder or "configurator". Visio functionality that I hope to reproduce:Visual shapes stored in a sidebar, from which the user drags and drops onto a drawing area Shape creation on the user's end is probably not necessary... just arrangement, sizing, changing parameters etc.A back-end for extracting the parts the user has dropped onto the drawing area, including the parameters they've changed, dimensions, relations between components etc.In the most general sense, I just need an interactive interface.Given the above parameters, is Flash a good option? Is there a development environment that might be better?
View 2 RepliesBasically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?
Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.
I cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:
ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);
[Code].....
I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?
Here's the code I'm using for it:
// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);
[code]....
I need to draw on stage about 40,000 4x4 squares each a different color. The color is determined by an xml file. I have this working in as2 and have converted it to as3 the problem is the amount of time it takes to draw is causing cs4 to time out. I have extended the script time out to 60 seconds. In cs3 as2 it would draw the squares in about 15 seconds. I was hoping as3 cs4 would improve performance but seems to be the opposite. I have tried several methods such as adding children and various drawing variations. the bellow seems to work the best, but is still causing flash to crash.
ActionScript Code:
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Shape;
[Code]...
is there a way to use the pencil tool (if u forgot what it exactly did, check the included image below) through actionscript, i searched the API for quite some time but couldn't it.
View 5 RepliesI'd like to use the mouse to sketch a basic curve which will then be 'auto-smoothed' when the mouse is released. This is exactly how the Flash pencil tool already behaves.
My question is: Is it possible to access this functionality with actionscript without having to reinvent the wheel?
I'm new to Adobe Flash CS4, and I was wondering why on earth my pencil tool delays when I draw with it? I will click, draw my line (which will be invisible), then when I let go of my mouse/pen, the line appears. Is it supposed to do that? Is there a way to fix it? I hate it, because I can't see what I'm doing. I downloaded all of the updates, and I have more than enough memory on my computer and my processor is more than fast enough. My paintbrush works fine, it's just the pencil.
View 1 RepliesWhen I draw something, the line doesn't show at all - I get a box outlining the area that I created the drawing in, but I can't see anything in the box itself. I tried previewing (View>Preview mode), but that showed as a hairline and I wasn't able select it to DO anything to it
View 4 Replies