Actionscript 2.0 Brush
im trying to create a brush effect in AS that later on i will paint ( the change color part its done and easy ) but im having some problems doing it. can someone give me a hint?
i tried both of these aproaches, it simply drags:S
Code: a = a+1; duplicateMovieClip ("bola", a, a);
startDrag ("bola", true);
Code: startDrag ("bola", true);
count++;
duplicateMovieClip ("bola", "clone" + count, count); thanks for your time.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-25-2008, 10:08 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Brush Api
hi,
im trying to create some graphics dynamically that look like brush strokes. i know there is no built in "brush" api for AS like the drawing api, but im wondering if anybody knows if anybody has created custom classes that do something like this.
brint
Brush MC Always On Top?
I am making a draw toy, and it is mostly all worked out. I am just adding finishing touches... like a brush that takes the place of the mouse. My problem is that when drawing as the screen starts to get filled up the brush will be under the drawing pen lines.
Is there a way to make that one mc named "brush" always be on top of everything else. If i cant figure this out, i will just not do the whole hide mouse and attach clip, because naturally the mouse will go on top so i could just keep it plain
rL
Brush MC Always On Top?
I am making a draw toy, and it is mostly all worked out. I am just adding finishing touches... like a brush that takes the place of the mouse. My problem is that when drawing as the screen starts to get filled up the brush will be under the drawing pen lines.
Is there a way to make that one mc named "brush" always be on top of everything else. If i cant figure this out, i will just not do the whole hide mouse and attach clip, because naturally the mouse will go on top so i could just keep it plain
rL
:: How Did I Do This With The Paint Brush? ::
ok when i used the paint brush, i drew a thick white line that had blue borders...AND I DONT KOW HOW the freak i did it...it has a white interior color...and the borders where blue...how did i do this...anyone know?
mercy
peace (;O)
Brush Action
How do I recreate a lormal brush tool, by that I mean, circles that should, be dublicate as the mouse is pressed, and moves. Hope you understand what I mean, could you please give me a start on that.
-=Thanx=-
Brush Tool
When wi was using the brush tool in mx 2004, all of the sudden, i couldnt paint but then realtized it switched so that i have to make a complete shape like a circle for anything to show up
tell me how to get it back to normal, plz plz plz its sooo ANOYING!
Jerky Brush, Pen Etc?
Hi all. When using the pen tool, the control of it starts to jerk and draw straight lines. This clears up for a few strokes and input reflects output on my screen but shortly after, it goes back to being jerky again. This also happens when using the eraser. Also the brush tool, that is unless I turn on pressure sensitivity. When this is selected on with the brush tool, it never jerks, skips etc, it is perfect. Is it something to do with memory (Laptop Pentium 4, 3.06 Ghz, 512MB DDR Ram, 40 gb HD). I have looked throughout Flash MX 2004 and cannot find any memory allowance panels. Help!!!
Flash 8 Brush ~
Hii,
I wasn't sure where to put this, so I assume this place is appropriate ^ ^;
I recently installed Flash 8, and I LOVE the brush settings on it (I use a Walcom tablet). The pressure sensitivity is really smooth~ I was wondering.. how to import this exact brush setting into Photoshop CS2, so I can draw with the same stroke style!
Thanks in advance!!
JyShin
P.S. When I said pressure sensitivity, i just meant the regular brush. So without the pressure or tilt icon toggled. Just regular brush, but with my tablet.
Help With Brush Sizes
Hey guys, I'm a complete newbie to Flash MX, as I downloaded the trial only today. I would really like to buy it when my trial is up but things are going so well so far.
I'm using Flash for my drawings, and I'm not making movies. My problem is that the pen pressure is not working for my tablet. My tablet is fully installed on this computer and I have never had any trouble with it on any sort of image program. I usually use Photoshop.
The lines that I've been drawing are thin and thick in some places, but not where I've been pressing down on my tablet. It's really strange and I can't work out why it's not working. I was just wondering if a Flash veteran could help me here.
Also, how come when you zoom in the brush doesn't get bigger? I know that it is supposed to be that way, but I found it really inconveniant...
Brush Stroke
hi
we can create lines using actionscript, like that:
this.createEmptyMovieClip("drawing_mc", 11);
drawing_mc.lineStyle(0, 0xFF0000, 100);
drawing_mc.moveTo(0, 0);
drawing_mc.lineTo(200, 0);
drawing_mc.lineTo(200, 100);
but is there any way to create bruch stroke using actionscript?
it's ok now, i've sorted it out
but i got another question.
using this:
this.createEmptyMovieClip("drawing_mc", 11);
drawing_mc.lineStyle(0, 0xFF0000, 100);
drawing_mc.moveTo(_xmouse, _ymouse);
drawing_mc.lineTo(_xmouse+ 10, _ymouse+10);
when i click, it makes the line on the code above on "drawing_mc" movie clip.
if i click somewhere else, this line disapears and it creats new lines where i've clicked.
is there any way to keep them?
so if i click lots of times i have many different lines on my screen
Paint Brush Effect
hi,
Can anybody tell me how to do a movie where in a brush is painting a image. Like the brush moves and either draws a image or writes something. Hope you got me.
thanks
Rough Brush Tool
Does anyone else have problems with the brush tool in Flash 5 or MX? All of my lines are rough and jaggey, Flash doesn't seem to be smoothing out the lines like it does in v4. Any suggestions?
Problem With The Brush Tool
I've been using the Brush tool just fine as a secondary stroke function for quite a while on my Flash MX 2004 program.
However, today I started working on my animation project and all of a sudden my brush tool wouldn't work. I would draw the stroke and it would disappear.
I checked and checked and it turned out that I was using a correct non-locked layer to draw on, so this shouldn't be a problem.
On further investigation I noticed that my brush tool, if I was to draw in a circle would make a circle FILLED by the brush color. So apparently I had to draw in circles for the brush stroke to show similar to how Illustrator works.
But I don't want it to do that, is there a way I can make it go back to a secondary "stroke" tool?
Brush Up Scrollbar In MX2004
Hi,
In MX I used following code to brush up my scrollbars:
scrollbar.setStyleProperty("face", 0x09B7B6);
However, in FlashMX 2004 this doesn't seem to work. Do you know how to adjust this code for 2004?
Thanx!
Flash Pro 8 Brush Problem
(I want to repost this in the other bulletin since it concerns flash 8 pro, not mx)
Whenever I use the brush, it only works as an "outline" type thing. How can I make it like an old fashion paintbrush?
[F8] What The Hell Is Wrong With The Brush, Please Help
I am very new to Flash and need to get the damn brush working correctly.
I want to get the brush to stay filled like in this first picture:
http://img253.imageshack.us/img253/7564/flash1wj2.jpg
But whenever I let go it just gives the finish product an outline as opposed to how I want it to be in pic 1. It looks like this:
http://img253.imageshack.us/img253/631/flash2zu3.jpg
Please help, thanks.
I Wants To Design A Paint Brush
hey! this is Tanveer ul Hassan, i want to design a paint brush. my requirment is.
1. browse for image
2. select image
3. then paint on image
plz help me how i've to do it.
Create Own Brush Tool
Does anyone know how to create their own brush tool?? you know like in photoshop? You just use one tiny image and when you click & drag your mouse the effect will be seen in SWF.
Thanks!
Font / Brush Colour
I have made a very simple flash movie which as you move the mouse with the left button held down it draws a line wherever the mouse goes. Release the button and it doesn't draw. I have three coloured squares at the sdie of the screen which I want to be able to click on , to change the colour of the line which the mouse produces...any idea of the code I will have to use?
Thanks in advance.
Cool Brush Tool?
The ???brush tool in the pic is only accessable with a graphics tablet attached as said with flash help
is there a way to accesss the tool via a preference without a tablet?
Brush Drawing Problem
I've got following problem:
sometimes when I try to go inside a symbol to draw with brush, nothing seems to happen (and it is on "normal brush mode") - what is wrong? when I brake the symbol apart, I can draw and stuff but cant do it inside it - very strange
Eraser And Brush Issues
I have a problem, in my flash u cant resize the brush or the eraser, its on the largest size at all times?
Reinstall flash or what?
Ine/brush Styles With LineTo
I'm working on a little app that uses the drawing API quite a bit. I'd like to jazz up the line styles a little more than just color, weight, alpha. I was hoping there was a way to change the line style to one of the style options that you get when just drawing a line on the canvas (scribbled, dotted, etc...)???
Code:
lineStyle(thickness:Number, rgb:Number, alpha:Number, pixelHinting:Boolean, noScale:String, capsStyle:String, jointStyle:String, miterLimit:Number, brushStyle:String)
brushStyle = "scribble";
That would be ideal!
I found the naming conventions for the line styles: Hairline, Normal, Dashed, Dotted, Ragged, Stippled, and Hatched. Now how to apply them?!?!?!??!?
Cool Brush Tool?
The ???brush tool in the pic is only accessable with a graphics tablet attached as said with flash help
is there a way to accesss the tool via a preference without a tablet?
Brush Drawing Problem
I've got following problem:
sometimes when I try to go inside a symbol to draw with brush, nothing seems to happen (and it is on "normal brush mode") - what is wrong? when I brake the symbol apart, I can draw and stuff but cant do it inside it - very strange
Flash5 Brush Tool
When using the brush tool in Flash 5 with my pressure sensitive tablet a black box apprears over the cursor about 1 inch squared. It blocks my view of area immediatly around the brush so it gets in the way. Does anyone know how to get ride of this box?
Laggy Brush Tool On Windows XP.
Ever since I got Windows XP on my systems, the brush tool in any version of Flash (mx, 5 and 4) lags like there's no tomorrow. I want to finish my artist portfolio; Flash is my main drawing application and now it's backstabbing me. it looks quite like this:
http://www.angelfire.com/ks3/kurusuru/brush.swf
does anyone else have this problem? I have it on 2 machines running XP, by he way. If there's any way to fix it.. thanks in advance.
[edit: my system specs are:
AMD Athlon 1800
Geforce 4 Ti 4200
256 mb ram, so I see no problem there
Flash - Online Paint Brush
Hi All
Is there a guide or any advice for Flash Online Paint Brush
Basically the concept is like this, user creates a simple picture using Online Paint Brush, saves and submits a Jpeg format of the pic to the website owner for review.
Please help, really need a guide to this.
If you need more details Please let me know, I will try my best to provide more.
Thank You Very Much.
[CS3] Brush Stroke Anti Aliasing?
All of the sudden my pencil and brush tools won't work too well with my wacom tablet. I've never had this problem before. It seems like the brush strokes aren't being anti-aliased and when I'm done drawing everything is immediately pixelated and pushed the right a pixel or two.
Anyone know what the problem could be?
Heres a Gif to illustrate my point
I'm Trying To Recreate A Grungy Brush In Flash.....
I am trying to recreate a brush palette in flash, for my users to be able to 'draw' on my site. I have done the standard lines. But now want to have a custom grungy style brush. I have a png in my library of the grunge brush texture....
but how do I do an attachMovie to make it so that when the user clicks and drags, it uses that brush shape and creates a line?
Thanks.
Help With Making Straight Brush Lines
I've seen all of these stick movies and stuff, and I want to make my own. But what I notice is that the brush always makes the line look weird. In the movies that I've seen, the stick people's limb's look perfectly straight!
Line!?!?!
Creating Calligraphy Brush Strokes?
Hi
I have a bunch of graphics that are made from paint brush strokes that I want to show as if it's being painted on the stage, sort of like watching calligraphy being painted.
I tried doing a mask with a shape tween and then a motion tween, and I thought I could painstakingly do zillions of keyframes and do it by hand, but it either doesn't look right or is just way too much work if I do it key frame by frame.
Is there an widely used approach for creating brush strokes that I might use in Flash 8?
Any help appreciated.
I Want To Create A Grunge Brush App For My Site.
I am trying to recreate a brush palette in flash, for my users to be able to 'draw' on my site. I have done the standard lines. But now want to have a custom grungy style brush. I have a png in my library of the grunge brush texture....
but how do I do an attachMovie to make it so that when the user clicks and drags, it uses that brush shape and creates a line?
Thanks.
Dynamic Line Brush Stroke
Is there any way to draw a line dynamically using Actionscript, and have it have a brush stroke, similar to using a brush stroke in Illustrator from the brush library?
brendan
Brush Size Keyboard Shortcut
After looking I couldn't find a keyboard shortcut that controls brush size. Is there a way to set brush size to the bracket keys, as in Photoshop?
...Forgot to note: I am running Flash Pro 8, but would like to know if there is a solution in either 8 or CS3.
Thanks.
Edited: 04/25/2007 at 01:50:57 PM by adam@blueapplestudio
Changing Brush Size In Flash
Hi everryone - just wondering if anyone knows how to change the brush size on flash? sorry if it sounds like a easy question its just I havn't been able to find an apropriate button to change it. I have done lots of other effects on the brush jsut not changing its dize - does anyone know about this problem? - Helen
Brush Options In Flash CS3 Not Showing Up
Hello. I'm using Flash CS3 and I'm not able to see all of the options for the Brush tool. I don't have the pressure-sensitive option or the tilt option. Is there something I need to download or click on to get these options? I'm not sure why I don't have them available to me..my tool palette ends at the brush size and shape options at the bottom. Any ideas please?
Flash CS4 3D Spray Brush Tool
I would like to recreate the twinkling stars animation as shown on this page for the 3D Spray Brush Tool:
http://www.adobe.com/products/flash/features/?view=topnew&promoid=DRIMV
How is the randomness of the twinkling achieved? When I made a movie clip of a star that dissolved in and out, all the stars pulsated simultaneously. Is there a specific tutorial for that? I'd hate to think that Adobe pulled some sort of sleight of hand to fool us into thinking it's so easy.
Also, I want to do a "Star Wars" opening credits type of animation, where the type crawls in perspective. I tried crawling type (as a movie clip) vertically inside of a movie clip that was angled back, but in the SWF, the type if flat-on. What's up with that?
Please help. Thanks.
Paint Brush Tool Using Flash
I am making a paintbrush tool in Flash.
Though almost finished i am facing the implementation of selection tool.
When I select an object thru the selection and scale it scale abnormally. Plz help me resolving this.
Steps to replicate:
click on "Rectangle" tool button.
Draw within white space area.
click on the shape.
Shape handler will appear.
Now drag the shape handlers.(here is the problem.)
swf: http://testgame.b2yf.nl/help/test.swf
fla: http://testgame.b2yf.nl/help/test.fla
Custom Paint Brush Effect
Hi all,
I am trying to make a drawing application in Flash that that you can paint on using a custom "brush", and not use the default lines that are made by lineTo. The idea I had was to create a brush movie clip, and as the mouse moves duplicate it and place it at the mouse location. However, the problem arises that I often get large gaps in between movie clips if I move the mouse fast enough (which is more like normal speed for me).
Can anyone help me out in solving this problem, or offer a different solution?
Thanks !
Brush Tool In Flash 8 Keeps Dying On Me
hi,
Sometimes when i use my brush tool in Flash 8.. At times it'll work perfectly and draw my lines out.. but sometimes! It just dies on me! And Whenever i click and drag to draw.. It comes up.. but once i let go of the click.. it dissappears!!
I have to draw a full touching circle with the brush tool for the drawing to appear.. But if i wanted to draw straight lines with the brush tool, then i'm screwed! lol
Does anyone know a solution to this?
Also, I've checked my brush modes and it's always on normal!
I Want To Create A Brush Palette App For My Users...
I am trying to recreate a brush palette in flash, for my users to be able to 'draw' on my site. I have done the standard lines. But now want to have a custom grungy style brush. I have a png in my library of the grunge brush texture....
but how do I do an attachMovie to make it so that when the user clicks and drags, it uses that brush shape and creates a line?
Thanks.
Soften Mask Made With Brush
the title sounds odd, but this is what I am trying to refer to:
When drawing in Flash, it's standard a sharp edge.
I tried using soften fill edges (or whatever its called), which looks better.
But when using this artwork as a mask for my movieclip, the softened edge is gone, and its 'hard' again.
Isn't there any way to soften handdrawn masks (thus not using a gradient fill)? because the hard edge makes it look like crap:(
please note I am still in Flash mx04, so I am unable to try any funky F8 effects.
Any tips whatsoever are welcome
Brush Tool Line Quality MX Vs Flash4
Does anyone else here see a big difference in line quality (using the Brush Tool) drawing in Flash MX vs. Flash 4? I do quite a bit of animating using a Wacom Tablet and drawing directly in Flash and I get terrible line quality in MX. I usually end up working in Flash 4 because it looks so much better. I've played around with the Smoothing settings in MX to no end but I'm still getting terrible quality. (see attached sample).
http://www.goonland.com/sample.jpg
Anyone have any ideas?
Thanks!
Pencil And Brush Keep Forcing Straight Line
Alright it doesnt look like my first post was posted so ill try again, While im drawing lines or small curves, the brush or pencil tool will go into a horizontal or vertical line, making it impossible for me to draw slight curves, now this is before i let go so it doesnt refer to the snap to straight option, is there anyway i can turn this feature off? I am using Flash MX.
Is There A Keyboard Shortcut For Changing Brush Size?
Is there a keyboard shortcut for changing brush size in flash MX?
Just like in photoshop you can use the [ and ] brackets to make the brush incrementally larger and smaller. I'm getting annoyed of going back to the tool bar all the time to change brush size...
thanks
|