Professional :: Flash / IDE - Unable To Draw Pure Black Line With Zero Alpha?
May 9, 2011Use line or pancil tool in Flash CS 5.0 or 5.5.Choose pure black color #000000 and zero alpha.Try to draw line on the tage.
result : stage is empty
Use line or pancil tool in Flash CS 5.0 or 5.5.Choose pure black color #000000 and zero alpha.Try to draw line on the tage.
result : stage is empty
Why this isn't drawing a line? The code is in frame 1 by itself, and I'm not getting any errors.
var brownLineDraw:Shape = new Shape();
brownLineDraw.graphics.lineStyle(12, 0x352000, 1);
brownLineDraw.graphics.moveTo(100, 100);
brownLineDraw.graphics.lineTo(200, 200);
have trouble with the Alpha slider (Color Effect>Alpha) not going all the way to 0% or 100%? A lot of the time, I can only get up to 99% or down to 1%, even if I manually enter values into the textbox accompanying the slider. Some of the time, it will not even take a manual entry in the textbox. For example, if the slider is set at 65%, I can enter 0%, and it will just go right back to 65%.
View 10 RepliesI have imported an object "DD_dropdown_clip" from the stage with this code:
[Code]...
The object is a black field. The fn "setup" writes text on this field. The problem with the code commented out is that it changes the alpha of both the black field and the text, whereas I simply want to change the alpha of the black field. How can I do this? Can I do it in the IDE?
I'm not able di draw a pie chart dynamically.I have the Layer1 with a F3DPieChart, 4 input text and a button, I put 4 numer in the 4 inputtext (sum total = 100) and when I press the button I would like to see pie Chart to appear with 4 slices that rappresented my 4 numbers.unfortunately it doesn't happen.This is the code on layer1:
[QUOTE]
var buttonListener = new Object();
buttonListener.click = function() {
var val;[code].....
When i try and draw anything like a square or a line it is green. Also when i try and fill naything it doesnt work!!!! It is quite important that i get it fixed because i need to use flash for an assesment that is due in next week!!!
View 1 RepliesWhy is it that now if I've got an alpha 0 movie clip on a layer and set the layer to outline, I can't see the movie clip? Outline mode used to ignore alpha!
View 1 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
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]...
View 4 RepliesI want a motion tween to draw a line in front of the viewer? how is that done? I can draw lines, just can't seem to draw in as a tween
View 2 RepliesWhen I publish as a PNG with Alpha there are black pixels that are rendered on the edge of the image near where the text is.If I remove the text from the image the black pixels do not render and the alpha looks as intended.
View 1 RepliesAll the images have to be in timeline 1 on different layers(they all have to be in timeline one........).I have a frame, it has a lot of images on it, with them all set to _alpha = 0;
on a button press the required image has its alpha set to 100;
however this means there will be a lot of images on the screen at once....
If alpha is set to 0 does flash have to still draw the object, is there a better way ?
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'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 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 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:
this.createEmptyMovieClip("drawing_mc",this.getNextHighestDepth());
drawing_mc.lineStyle(1,100);
[code].....
i have been messing around a little with flash, and i want to know how to NOT change the color of a button if i have not set an option in the query line.
example : flash.swf?buttonA=003366
or : flash.swf
here is my code....
if (_level0.buttonA != "")
{[code].....
This works when i set the value in the query line, but when i do not set a value, it is black.the default color that i set is Blue. I am trying to get it to show as blue if i have .swf?buttonA= or even just .swf and nothing following.
I'm trying to draw a static graph based on an Array of Numbers. This graph should be nice smooth sinus-like.The bottom values should be always zero, the upper values are specified in an Array of Numbers.
I've been trying to achieve this effect with curveTo(), but without any luck.
EDIT: Values are like: 10, 15, 40, 28, 5, 2, 27 etc.
how do you draw a dotted line in flash uding actionscipt ?
View 2 RepliesI'm making an info-animation piece, and it involves 3 random moving circles that when all 3 touch eachother, a black line will connect all 3 at their centerpoint, and this black line will disappear when they move away from eachother. Has anyone the code or suggestions for an actionscript like this?
View 2 RepliesI want to drag a line from the mouse down anywhere on the screen but my problem is I can only do it from a set position eg.120,120.
Everything else is fine.
Code:
var line:Sprite;
line = new Sprite();
addChild(line);
[Code].....
I have simple black line on white. It needs to crack like a whip. And it needs to recoil nicely. I'm not sure if top-notch tweening would do the trick. Or maybe a dense 'Inverse Kinematics' bone structure. Or if actionscript is the best course. I'm using a pen-tool/bezier-curved line right now and trying to shape tween with hints? I've never been bad at math, but I'm not a programmer and it's been a while.
View 1 RepliesThis is my first custom class and I'm having a few problems. I just want it to draw a line (for now) using variables from Flash. The .as file is attached. My Flash AS3 script is: var newLine:Myline = new Myline(20,210); I don't know why it won't just draw a line from 20 to 210? Here is the error I get:
[Code]...
I have a large-ish array of points.
The graphics object I am using has it's alpha value set to 0.1.
When these points are plotted iteratively, and the line being drawn overlaps another line drawn earlier, there is no visible change in the colour at the intersection.
If I draw the line differently, not using an array of points, the alpha is not ignored.
ActionScript Code:
public function render(e:Event):void
{
if (segmentsCollection.length > 0)
[Code].....
This all occurs on each ENTER_FRAME event until the array is emptied.
I have tried loads of options but the alpha is always ignored.
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 RepliesThis should be a bit of simple geometry: How do I calculate the points to draw the lines in the code below so that it makes a 2D cone or wedge shape?
import flash.geom.Point;
//draw circle
var mc=new Sprite()[code]...........
UPDATE:I should have mentioned my aim is not to draw a wedge shape, but to draw a line from a random point to the edge of an existing circle.If you're more comfortable with algebra than actionscript,
the website i have is black... and contains large flash galleries... The problem is before the load they look like a large white squares... then they load and look great... is there anyway that it can look like a large black square so that viewers cannot tell that there is something located on the black background until it loads
View 1 RepliesI am currently having a problem when launching the trial version of flash cs5.5 . The screen that says the timeleft at my trial comes up but the flash cs5.5 screen stays black and is "not responding". About two weeks ago, it worked, so i don't know what is happening. All my other programs work. I tried to reinstall it, to delete the left flash cs5.5 program files after the uninstall and many other things, but it dosen't work.Here is a screen capture of the flash cs5.5 blackscreen. notice that in the frame of the window it tells" not responding".
View 1 Replies