Flex :: Draw Squiggly Line Below Wrong Word For RichEditable?
Jan 4, 2012I want to draw a squiggle line below misspelled word in a Flex Spark RichEditableText component.
View 1 RepliesI want to draw a squiggle line below misspelled word in a Flex Spark RichEditableText component.
View 1 Repliesdraw a squiggly or wavy line in the MOUSE_MOVED event as the user clicks and moves the mouse.
View 1 RepliesSo I have a simple game I'm making where you are a box shaped character and you have basic movement around the screen. I know how to make walls and the coding but I would like to make a wall that the character can't go through on either of the 4 sides or even a squiggly line that doesn't have a definite shape. I used this coding:
[Code]...
And that does kind of work, but it's not stable (works better with one side only). Sometimes one side of the wall, the character will still be able to go through. The tool I'm using to make the wall is a rectangle tool if that makes any difference. And I'm on actionscipt 2.0 on adobe flash cs4.
Dose the Flex has some Tags just like <v:line> or <v:polyline> in VML?
View 1 RepliesAfter some search and reading the Graphics class document, I can't find a way to specify the line style of a line. I mean whether the line is a solid one or a dotted one.
View 3 RepliesUpdate: 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].....
Apparently, it is not possible to have a chart with several independant horizontal axis. What I am trying to achieve is :
Display a bar chart, organized by any category
Overlay a line (actually a single horizontal line) on top of it (to display some sort of threshold)
I tried doing the following :
[Bindable] public var columnsDataProvider : ArrayCollection =
new ArrayCollection([{"Category" : "Cat1", "Value" : 10},
{"Category" : "Cat2", "Value" : 20}]);
[Code] .....
This is the closest to what I want, except that the line does not start span all the graphs vertically (it is drawn only between the two columns of my bar chart). Is it possible to define a completely independant horizontal axis? I also tried drawing directly on the canvas, but the canvas.lineTo() method only works in "data" coordinate; I would need something that works in "chart/canvas/absolute/whatever" coordinates.
Is there a way to draw a line on a graph (or at least get the position) on specific date?
I have a graph where X is Date data, I want to draw a line with a text on each Year and each 3 months as reference, not part of the graph series.
I need to be able to draw a thick patterend line between 2 points in AS3, I can't use the draw API because it doesn't all me to actually put detail (pattern etc) into the thickness of the line, I thought about perhaps using the line to create a bitmap version and then using that as a mask, but I remember many years ago seeing some examples that use a movieclip as a source for a line.
View 1 Repliesdraw a line on mouse movement, not the static line.
I am attaching a sample which is 90 degree bounded as it has been given in animation, I want to make this or such type through mouse movement.
I'm trying to produce a game that on mouse down a dotted line (or just a line) gets dragged out following the mouse until it is realized then it disappears.
View 1 RepliesI want to create a line tool exactly like flash line tool. But the code that I am using shows the line when we release the mouse button. How can I show the lines while it is drawing[code]...
View 4 RepliesI'm making a very simple game that lets you draw a curve by hand (using lineTo to the mouse position on mousemove) but now, I need to check wether the line intersects wiith another part of the same line (e.g. a loop)
I first used an onrollover command, and that worked, but not always because the mouse moved too fast (same with hittest with mouse). Then I pre-drawed the line in another mc, used hittest on it, and if it wasn't intersecting, draw it in the real mc. But that didn't work because it used the bounds to test. I guess the best way is to use some mathematical formula, but that would mean I have to save all my coordinates in an array..
I'm trying to export my movie clip into an image, everything works fine but when the user draws in negative coordinates, the draw bitmap command doesn't get my movieclip as I need, here's a graphic explanation of what's going on:As you can see the user can draw in any part of my movie clip (black border), the 0,0 coordinates are in this example located in the black spot. when I get the bounds of my object I get correct values (in this case i get negative x and y and the correct width and height), but when I apply the draw bitmap command what its captured is the area represented with the red border, the height and width values are correct but it captures from the 0,0 coordinates and not from the coordinates I want! anyone? i have a dead line approaching.this is the code:
ActionScript Code:
//funciones click
function exp_cli(e:MouseEvent):void {
[code].....
I have 2 balls, which i connect with a drawn line using the following code.
[Code]....
This code works great except the line I draw has the wrong x coordinates....The line is drawn to the correst y value but the X is at least 300px off? Does it have to do with my anchor point or reg point?
So when I call lineTo() and then next call lineStyle() with a new color - that previous lineTo gets drawn in the new color, not whatever color was previously set. It is strange but I don't know if there is some kind of justification for the behaviour?Example: this is meant to draw 2 white lines but the second is drawn in blue if I do a blue lineStyle immediately after. Insert a moveTo or similar "end-draw" function then it's ok. seems broken to me...
//EDIT: - put this rect draw bit first
graphics.beginFill(0x000000);graphics.drawRect(0,0,50,50);
graphics.lineStyle(1, 0xFFFFFF);
graphics.moveTo(0,5);
graphics.lineTo(30,5);
[Code]...
how I draw a line through a path line? An example I have a movieClip that is a pencil and it is moving through a path line, now I want to draw the line that the pencil draw.
View 2 RepliesIs there a way to get the line index from a specific word in a textfield?
View 1 RepliesHow can I break the last word of a line in a textField so that it will break with a "-" if the word is too long.
The width of the textField is fixed.
I want to create a line tool exactly like flash line tool. But the code that I am using shows the line when we release the mouse button. How can I show the lines while it is drawing
Code:
this.createEmptyMovieClip("drawing_mc",this.getNextHighestDepth());
drawing_mc.lineStyle(1,100);
[code].....
How do I draw a line across the USA starting in San Francisco in frame 1, moving through Kansas City in frame 5, and then extending to New York in frame 10. By frame 10 I'd like to see the whole line, representing the whole journey I took in my car over summer vacation.
I can make a "dot" do this in flash (ie without leaving a line trailing behind it) but I don't know how to make the line "grow" across the USA over time.
how to draw a simple line? Im not using designer (which means i call Document class method that ouputs everything).
View 2 Repliesi am trying to create a line that can be draggable and extedable from start and end points of line.
View 1 RepliesThe Xml
<?xml version="1.0"?>
<root>
<route portStart = "USLAX"
portStartx = "2014"
portStarty = "433"
portEnd = "JPTYO"
portEndx = "1995"
portEndy = "456" />
[Code] .....
What is the simplest way to draw a 3d line? E.g. I want a vector from (0,0,0) to (50, 100, 50).Do I have to do it the old school way with maths or is there some new 3d drawing API? (I heard f10 had lots of new 3d stuff...)
View 4 RepliesI'm making a fishing flash game where you drop your hook off a boat and i want to draw a white line from the boat to the hook and the hook can move up and down so i want it to stay with the hook
View 1 RepliesI'm trying to draw this hint box and was wondering if anyone could explain to me how to draw a curved line like the one below in flash?
View 4 Repliesmake two movable buttons connected with a line. When changing position of any button you'll change look of the line of course I know how to draw a line but after MOUSE_DOWN, and I don't know how to remove an old one line, and how make this line t be shown all the time?
My code
btn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);btn2.addEventListener(MouseEvent.MOUSE_UP,
[code]......
i need to draw a line at runtime, and i found this "myShape.graphics.moveTo(100, 100); myShape.graphics.lineTo(200, 200);" but don't know for sure how to declare myShape, i think it needs 2 lines to declare it properly, right?
View 3 RepliesHere is a video explanation:
[URL]
If I use the Pen tool and attempt to draw a line within a symbol, the anchor point on the other end of the line moves [out of my control] to the right. I'm not sure whether this is a bug or a feature, but I'm leaning towards the former; either way
Adobe Flash CS5Mac OSX 10.7.2