Professional :: Fading Out Drawn Lines?
Jun 29, 2010
I'm trying to make a program that's meant for graphics tablets in AS3. So far I can allow the user to draw a line across the stage so that they know where their moving their pen around. However I want this line to only be temporary, and so the graphics.Clear() method is called to remove it.
I'd like this to look a lot better however, as the line just instantly disappears. Does anyone know how I could add code that makes the line fade out to 0 alpha first before I call the clear command?
[Code]...
View 6 Replies
Similar Posts:
Apr 26, 2007
Is it possible to create 2-3 drawn lines in actionscript?Wanted to make a dynamic chart, but so far when I add coding for the second line, the first no longer works.
Trying to nest the lines in movie clips didn't work.Is this a restriction of the createEmptyMovieClip?I'm using....
_root.createEmptyMovieClip("lineFirst",0);
lineFirst.lineStyle(12,0x000000,100);
lineFirst.moveTo(0,0);
View 2 Replies
Aug 27, 2009
im trying to work out how to keep lines drawn between different movieclips. It works, but wont clear the lines!!, so i have to leave it out.. to see something .. should I put them all inside an empty movieclip?
[Code]...
View 4 Replies
Aug 20, 2009
How can I erase lines I've drawn using
_root.lineStyle()
_root.moveTo()
And
_root.lineTo
View 1 Replies
Feb 21, 2012
I'm working on a Flash project in which users are able to draw on the stage. Once they've drawn their lines and turned off the pen tool, though, I want them to be able to do something unusual. I want them to have the ability to drag and drop the lines they've drawn. I actually don't really care whether they pick up individual segments separately or everything together, but they need to be able to drag and drop in some way, shape or form.
The line-drawing code currently looks like this:
ActionScript Code:
onMouseDown = function(){
if (penOn) {
if (erased7 == true) {
[Code]......
When I make line7 draggable (by dynamically appending event handlers to the line after the user creates it), subsequent attempts by the user to draw lines cause the new lines to appear within the confines of the movieclip already created, no matter where the mouse button is pressed. The problem, as I've been able to determine, is essentially this: When you don't make the line draggable, the dimensions of the line movieclip expand every time the user clicks the mouse button. But appending the event handlers in effect freezes the movieclip, and its dimensions aren't changed after that, at least not by this code. I've tried workarounds, but no luck. I've also tried creating a new movieclip each time the user tries to draw another line, but that's failed as well
View 2 Replies
Mar 27, 2012
Im using the code bellow to draw a line:
Code:
createEmptyMovieClip("line",1);
line.lineStyle(2,0xFFFFFF,100);
line.moveTo(0,0);
line.lineTo(100,100);
How can I make the line to tween, from alpha 0 to 100 using AS2? I Tried TweenMax on "line" movieclip but it does not work.
View 1 Replies
Apr 6, 2007
I want to have a menu where you click on a node and lines are drawn to its sub menus, any links to examples or tutorials would be great p.s a mind map is like these: [URL]
View 2 Replies
Jan 31, 2010
I draw a shape with the pen tool in Flash CS4. I made sure the shape was closed. But, I cannot fill the shape no matter what. Paint bucket tool does not work. Whatever I do, I get the red diagonal line on the fill color. I can fill a shape with the rectangle or oval tools but not the pen tool.
View 7 Replies
Nov 8, 2010
I'm trying to learn Flash CS5, but having a bit of trouble with the basics. I start a new actionscript3 project and, whenever I try to draw anything, no matter what I select, it always comes out as a plain, green outline. For example, say I want to draw a red, dotted circle It should look something like this, but it will always come out like this
View 3 Replies
Mar 30, 2012
I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.
Here is the script of it:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);
[Code]....
View 2 Replies
Jan 12, 2010
I want to create a swf of 5 photos that fade into each other. For example, black background, first photo fades up from alpha 0 to alpha 100 in one second, stays on screen for 4 seconds, then fades back to alpha 0 while the next photo fades up, etc, then the 5th photo fades back into the 1st photo and it loops.
What's the best, easiest way to accomplish this with cs4?
Also, if the jpgs are 980 x650 pixels and approx. 70 kb apiece, will I need a preloader if I'm going to use the swf as a header to my site? If so, is there a simple, plug n play preloader I can use?
View 3 Replies
Oct 11, 2011
I would like to change backgroundColor of an drawn object(square) by mouseover. I acutally found the function for mouseover in action scripts but BackgroundColor("#ccc") does not work.
View 3 Replies
Jan 14, 2010
I have almost completed my first Flash project at work, after numerous losses of sanity, blood, sweat and tears. Anyhow I am on the last step and can see the end in site.
I have a movie within the webpage where text fades in. There are three components to the section; static text, a button and text that is linked via another movie file. When the text fades in each of the elements mentioned fade in at different times/rates. What should be looking at? I think that all the frame rates should be the same? Should I combine them all into one and make the fade easier to work with?
View 3 Replies
Apr 7, 2009
I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!
[Code]...
View 7 Replies
Jun 3, 2011
I have created a flash pro cs5 movie with several key frames in and as the movie plays, it moves onto the next keyframe - each keyframe uses the same template but with a different picture in each. Also each keyframe has buttons in of which are all identical as well and stay in the same place as the movie plays.
As the movie plays and the picture in each keyframe changes I want each one to fade out then in to the next picture. I can see that you can do this in Flash Catalyst but can this be done in Flash Pro? I can not see how I can import the swf file into catalyst then fade each of the pictures which is tied up in a single swf file?
View 1 Replies
Feb 16, 2010
I am completely new to Flash and have been learning about alpha tweening to fade one .jpg image (of a customer's happy comment) to another. This works fine if I only have a small number of comments, but modifying each and every stage of the transitions would be a huge task if I have more than a handful of comments to deal with. Is there some way to set the transition and then apply that transition to all images? That way, I would only have to amend the transition once and it would make no difference whether I had 2 or 200 images to fade in and out of.
View 2 Replies
Jul 28, 2010
I've read through several tutorials but I must be doing something wrong on this. I'm using Adobe Flash Pro CS4. I am trying to create a short clip that fades text in over a bacground video. When I create a motion tween on the text track, I'm generating an error and the background video is no longer visible in the preview. Instead, I see the text over the stage background color. It is as if the background video track has switched to wireframe. Here are the steps I've followed:
1. Created Flash File (ActionScript 3.0).
2. Imported Video into the State background layer - it appears as a black image in the it previews fine at that point
3. Created new layer for text and placed text - it previews fine at this point, text is overlaying video
4. I right click on the text block and choose convert to symbol.
5. Next with the play head on the first frame and the Text layer selected I choose Create Motion Tween. This is when AFP throws this error:TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.video::UIManager/http://www.adobe.com/2007/flash/flvplayback/internal::hookUpCustomComp onents() at [code]...
View 1 Replies
Dec 18, 2010
I'm doing this via the motion editor. But, is it possible to fade an image gradully from left to right instead of the whole image at once?
View 8 Replies
Oct 11, 2003
when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in
View 5 Replies
Oct 11, 2003
i've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.
View 5 Replies
Aug 17, 2011
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
Code: Select allvar movie:Shape = new Shape();
for( ... )
{
movie.graphics.clear();[code].....
View 2 Replies
Jan 12, 2009
just another CS4 newbie in a panic about the "new skool" tweening. I'm sure that I'm going to absolutely love it once it all sinks in, but at the moment, there are a few things that strike me as odd and I'm looking for guidance... Something I noticed last night that was different in terms of workflow was animating consecutive objects. Imagine the following simple storyboard: - a photo appears on the screen and gradually grows in size while fading out - after that photo has completely faded out, a new photo appears on the screen and grows in size while fading out.
Now, "old skool" I would have economized my timeline real-estate by having both of these images on the same layer. Since they are not visible at the same time, you can clear (delete) the first image and drop in the second image and everything is peachy. I found that this was not the case in CS4. Here's what happens AFAICR: - import first image to stage. it appears in a layer
[Code]...
View 9 Replies
Nov 15, 2009
My code is on the main timeline.I call a function loop to draw lines between them.The lines are drawing between the right x, y values BUT between those values on the main stage, not those values within the kite.For example, dot1_mc is at x100, y0 inside kite. the line that should go from its center, draws from stage x100, 0.How do I draw the lines inside kite so that they draw between the dots?Heres my code that draws the linesPHP Code:
function loop():void{ lineDrawing.graphics.clear(); var a:Point = new Point(kite_mc.dot1_mc.x, kite_mc.dot1_mc.y); var b:Point = new Point(kite_mc.dot2_mc.x, kite_mc.dot2_mc.y); var c:Point = new
[code].....
View 4 Replies
Apr 8, 2011
I'm new to Flash, but I understadn the basics. Unfortuently, I may have gotten in over my head with this project. I have four years if crime data for my school. I want to make an interactive graph where a user can click a crime, (check box) and that crime's change over four years will appear. (by change I mean how many crimes of that type occurred in the last four years.) I don't know how to do this, mainly because I'm not for sure how to layer the lines on the graph.
View 2 Replies
Apr 8, 2011
if I drew a line or something, it would just be the line and I could immediately edit the shape. Now, there is a blue box surrounding it. what purpose the blue box serves. However, when this started, my fill stopped working.
I can fill a shape I have hand-drawn, but not when I use the line tool. I have included a screen shot of the blue box surrounding a line. I have assured that all sections of a shape are touching before trying to fill.
View 2 Replies
Dec 12, 2011
I have a rectangle drawn on the screen. I exported the center of the rectangle for action script. I have an instance of the center exported rectangle overlaying my main rectangle. I do this so that I can change the back color with actionscript. I have the blending property of the overlaying rectangle set to overlay so that borders of my original rectangle are visible.
My problem is when I scale the flash window the borders of my rectangle sometimes dissappear.
View 6 Replies
Feb 28, 2012
This question was posted in response to the following article: [URL]..
View 6 Replies
Mar 23, 2010
I need to fill it all with one color and I need to keep all the lines. What the best way to get this object filled without losing the lines and shape?
View 5 Replies
Aug 26, 2011
[URL]I'm trying to make an animation of electricity going through power lines.. (and just drawing lines in general) and I like how it was done in this video. I'm just not sure how to go about doing it.
View 1 Replies
Feb 17, 2010
I'm editing a site which runs flash. I can click through the entire site without issues in Internet Explorer 5 and 6. In newer versions of IE, Firefox, Chrome and Opera, I have issues playing any video. The site is designed in a way that you click from page to page (topic to topic) and "click to enlarge" objects. PDF files and jpg's work fine. When you click on two FLV videos the enlarged window pops up but the player does not open and the video does not play. When I open this file in Flash Pro try opening these video I get a message stating "The DisplayObject's filtered dimensions are too large to be drawn." I know the site works, but I believe the flash file is calling something not compatible with current browsers.
View 1 Replies