ActionScript 3.0 :: Add Stroke To A Geometric Shape?
Oct 5, 2009
Is there an easy way to add a stroke to a geometric shape other than a modified glow filter? Say you draw a series of points and fill it in so you have a star pattern, how would you go about adding a 1px or 2px stroke to it?
View 3 Replies
Similar Posts:
Feb 20, 2012
I have a single point and a set of shapes. I need to know if the point is contained within the compound shape of those shapes. That is, where all of the shapes intersect.But that is the easy part.If the point is outside the compound shape I need to find the position within that compound shape that is closest to the point.These shapes can be of the type:squarecirclering (circle with another circle cut out of the center)inverse circle (basically just the circular hole and a never ending fill outside that hole, or to the end of the canvas is there must be a limit to its size)part of circle (as in a pie chart)part of ring (as above but lineThe example below has an inverted circle (the biggest circle with grey surrounding it), a ring (topleft) a square and a line.
If we don't consider the line, then the orange part is the shape to constrain to. If the line is taken into account then the saturated orange part of the line is the shape to constrain to.The black small dots represent the points that need to be constrained. The blue dots represent the desired result. (a 1, b 2 etc.)Point "f" has no corresponding constrained result, since it is already in the orange area.For the purpose of this example, only point "e" is constrained to the line, all others are constrained to the orange orange area.
View 3 Replies
Aug 27, 2010
So I like the whole convert stroke to fill option in the Modify menu, but what if I want to apply a stroke to a fill?
In other words, if I created a circle, then delete the stroke, is there any way to the regenerate the stroke? I mean, if I press A I can see the contours of the fill - can I just turn that into a stroke? In the properties menu, if I click on stroke (which as its colour has the white box with a red diagonal line) it's all greyed out. Am I missing something obvious?
View 2 Replies
Sep 28, 2010
I've got a complicated shape in a MovieClip.Runtime i want to change the stroke width of this Shape depending on a size ratio.
How can I change this property without redrawing the entire Shape with the drawing API (almost impossible, is a map with very detailed borders) ?
View 1 Replies
Sep 8, 2010
Somehow, I've been unable to figure out exactly how to do this, even though I suspect it should be dead simple! All I want to do is read the colors of the fills & strokes on some objects I've imported from Adobe Illustrator. They have very specific colors applied to them, such that I can parse them (hopefully!) and know what to do with the objects based on their unique color.
View 7 Replies
Feb 16, 2009
how to get the exact geometric shape of a symbol I have in my .fla. I want to be able to map the symbol and I want to be able to change it's color.
View 2 Replies
Nov 30, 2009
ActionScript Code:
package {
import flash.display.MovieClip;
public class Base extends MovieClip {
public var baseHP:int = 50;
var newRect:Shape = new Shape();
1046: Type was not found or was not a compile-time constant: Shape. 1180: Call to a possibly undefined method Shape. What does it mean by "undefined method"? I am somewhat of a newby, so sorry if there are any stupid errors
View 1 Replies
Jun 22, 2010
Whenever I add shape hints to a shape tween the shape disappears in the between frames. I am using CS5 on Vista. I using files from [URL]to practice.
View 2 Replies
Oct 11, 2011
need to draw the shape of a existing movieclip which is irregular shape.
View 2 Replies
Oct 11, 2011
need to draw the shape of a existing movieclip which is irregular shape.
View 1 Replies
Jul 9, 2009
Id like to know if there is a way to do a shape hitTest.Not as the normal hitTest would do, but shape colliding another shape, not the rectangleof a movieclip.It can be in a movieclip.
View 23 Replies
Oct 19, 2010
using the shape tool you can draw basic shapesthen using the subselection tool you can re-shape them by relocating certain points
What i want to do is create a tween whereby one of the points is movedthe problem is you have to convert to a symbol first and after you have done that you cant change the shapes shape.so how do i go about using a motion tween to change the shape of a shape?
View 1 Replies
Apr 27, 2010
I need to know how to add a stroke to an object after I have created it.
I guess the simple way of explaining is if I draw a circle without a stroke, how do I add one to the circle?
View 1 Replies
Mar 20, 2009
Is there a way to add a stroke to text in flash and if so could you explain how? I am still on flash 8.
View 2 Replies
Jun 13, 2009
Well i've used flash a bit but i never really messed with sounds. I want to make kind of a drum tool fun thing that can play sounds, so i need to know how to make a sound play when you press a letter or buton on keyboard
View 1 Replies
Nov 8, 2011
I'm trying to create a simple coloring book app and I've got it mostly working based on tutorials and code I've found on the web. I'm using an array for my color swatches and I'm trying to add a stroke but it's not working. The markers in the array are based on a symbol called "Colours".[code]
View 5 Replies
Apr 12, 2012
How do I add a stroke to text in Flex 4? Specifically I'd like to add it to a Label (the text will change in it).
The closest solution suggested has been to add a drop shadow filter as shown below. I've added a rectangle with a stroke for comparison. If the stroke weight is between 2 to 3 it's acceptable. If it's above or below that then it's too blurry or rough. In my case I need to support 2 to 6 weight.
A follow up question would be is it possible to create a stroke filter through Pixel Bender.
<s:VGroup>
<s:Label text="Select an example on the left. Right-click to view source."
color="#FF8C00"
top="10" left="10"
[Code].....
View 3 Replies
Jan 20, 2010
How to switch off Stroke Color in Flash CS4. I am a learner.
View 2 Replies
Jun 7, 2011
Is there any way to add stroke to a text? I'm quite surprised to have not found anything about this yet.
View 1 Replies
Mar 21, 2012
I have a series of previously created rectangles, all with a lineStyle(stoke), but later, when in the program, I highlight them via colorTranform with MOUSE_OVER, and and return the color back to its previous state with MOUSE_OUT, and try to re-apply the lineStyle, it returns the color, but not the lineStyle.
Here is my code:
function highlightSquare(e:MouseEvent) {
if (building == true) {
transform1.color = 0x00CCFF;
var temp1 = e.currentTarget;
temp1.transform.colorTransform = transform1;
[Code] .....
View 3 Replies
Apr 16, 2009
I'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 Replies
Nov 19, 2009
In Flash CS4, is it not possible to apply a stroke to an imported photo (which I've converted to a movie clip symbol)?
View 3 Replies
Jun 15, 2010
So we're sitting here at the studio trying to figure out how to use the pen tool without a stroke. We do most of the work in Illustrator, then paste it in Flash. Unfortunately, some objects sometimes disappear while breaking the object down, which means that we have to do some actual touchup work in Flash.
View 2 Replies
Apr 26, 2011
Apparently you can add stroke to text dynamically. Therefore how can I produce a score text with stroke around the numbers. Would I have to create the ten numbers in photoshop or in flash breaking apart and using the ink bottle and simply call them as required. ie: 10 seconds calls in the 1 and the 0 shape mimicking a real timer. Adds more for the cpu to do but looks wonderful. What do angry birds or anything similar do.
View 2 Replies
Mar 22, 2009
I was wondering how I can add stroke to my images, I want tohave a white border (3 pixel) around my images and I am calling myimages from a image folder with a TXT or XML file. Is there a wayto add the stroke to them using AS3 so it automatically applies thestroke to all my images?
View 11 Replies
May 4, 2010
how can I assign the stroke to my LineSeries, programmatically in Actionscript ?<mx:LineSeries stroke="{new Stroke(0xCC33CC, 2)}"/>How is it in Actionscript? LineSeries.stroke doesn't exist
View 2 Replies
Jan 28, 2010
As the title says. How do I add a stroke or outline to the images loaded by my XML? I need to create a hover state and selected state. So when I rollover my images there is a blue stroke that goes around the image. I created a new movieClip called newHover and I thought I could add it using my loaders mouseout and mouseover events but the loader class doesn't support do that.Maybe adding a movieClip that has the stroke isn't the way to work this. how to accomplish this.
ActionScript Code:
//floor color1
var cityPic:Dictionary = new Dictionary();
[code].....
View 9 Replies
Mar 1, 2009
I have a Shape object called myShape which contains exactly one rectangle.Is there a way to know the stroke and fill styles of myShape? I want to get the fill color, fill alpha, stroke color, stroke alpha and stroke thickness of the rectangle in myShape.
View 1 Replies
Feb 24, 2009
I would like to know if there is a way of maintain the stroke size whilst resizing my object with actionscript.I have an object that imported from Illustrator with a 7pt stroke and would like that stroke to maintain its aspect even when resized to 10%
View 1 Replies
Feb 3, 2009
Is there a way to draw a line with graphics.lineTo() that is thinner than 1point? According to the documentation the thinnest lineStyle possible should be 0 but I cannot see any difference between a 0 stroke and a 1 stroke?
View 4 Replies