Lines With Straight Corners
is it possible to create lines in flash with straigth corners instead of rounded shapes? each end of a line is rounded now, I need a straight end.
any ideas?
thanks
FlashKit > Flash Help > Flash General Help
Posted on: 03-07-2005, 06:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Boxes With Straight Corners?
How is it possible to get boxes with straight corners in Flash MX? How does Macromedia do this in their web site's current Flash animation? (This one: http://www.macromedia.com/home_movies/home_fma.swf)
If you look at the top right corner, at the square right of "Navigation", when you zoom in, you can see that the box has straight corners. How did they do this? How would you do it?
I have tried to convert lines to fills, however this does not fix the "smooth corner" problem (when I zoom in, the corners are still not straight).
I thank you for any suggestions.
RCarlton
Bad Images - Straight Lines Are Jagged Lines - Why?
Hello -
Wondering if anyone had a solution --- I have some images for a portfolio - almost all of them have a diagonal line that's supposed to look straight, and in flash it's looking jagged and wiggly.
I began with 300 dpi images - saved them to the proper size, no compression, saved PNG's, then imported to Flash with lossless (jpg,png) setting, created Graphic Symbol with all graphic information in the upper left quadrant, and it is in an even space on the stage (no 113.4, but 113.0)....
I did a lot of research to make sure I got the best quality images & have taken all of these steps and it's still coming out crappy....
Any ideas? Much appreciated...
Straight Lines
I need a motion guide to be curved except for either end where it needs to run off into a straight line so I can line the objects that are moving up at the right angle and spacing. I tried just joining a straight line and a curve but they're treated as separate lines and refuse to be used in the same motion guide. Is there any way of joining the two lines without resorting to stretching the end of the curve until it's straight?
Drawing Straight Lines
Hi all,
First post here. I'm familiar with php/mysql and just now starting with Flash MX.
Question: To create lines that appear to self-draw themselves, is it better to use an animated mask layer or through ActionScripting?
Also, does anyone feel strongly that the upgrade to MX 2004 is justified ?
TIA
Drawing Straight Lines
I am trying to make a line drawing tool which will draw straight lines in a new movie clips. I have the following code sitting on a blank movie clip. At the moment the movie clip is attaching onMouseDown but I am not getting any lines drawn. I want to make the lines straight from the point where the user clicks to where they release (as in power point line tool). Thanks in advance.
PHP Code:
onClipEvent (load) {
line_active = 0;
i = 0;
}
onClipEvent (mouseDown) {
i++;
xStart = _xmouse;
yStart = _ymouse;
tempMcHolder = ("line"+i);
_parent.attachMovie("myBlankClip", tempMcHolder, 50+i);
_parent.tempMcHolder.moveTo(xStart, yStart);
_parent.tempMcHolder.lineStyle(1, 0x000000, 100);
if (!line_active) {
line_active = 1;
}
}
onClipEvent (mouseMove) {
if (line_active) {
_parent.tempMcHolder.lineTo(_xmouse, _ymouse);
updateAfterEvent();
}
}
onClipEvent (mouseUp) {
line_active = 0;
}
Whiteboard - Straight Lines
Hello,
I have developed a whiteboard, and one of the tools is a straight line where you click on one point and drag the mouse to the location you want the other point to end up. While this is happening the line will be visible, moving wiht your mouse until you release.
Currently, each time the mouse is moved..it draws a line to that new location, thus the old lines must be removed inorder to provide the illusion that it is actually only one line being drawn. I am wondering if there is a way to remove those previous lines so that only one line is showing up.
I tried jsut re-drawing the old lines in white, and that worked...until i drew a line over top of another line and it started painting the other line white.
If someone could help and perhaps mention a method or tool that remedies this problem, it will be much appreciated!
Curbing Straight Lines
how can i make a straight line move like a snake? or have a box outlines curb as well?
::::First time asking::::
thank you in advance to all of you
Gleyder
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!?!?!
AS Blues, How To Draw Straight Lines?
Hello everybody. I'm new to AS (and programming in general) so I'm a newbie. With that said I've decided to jump in over my head and start on a project which will end up being a tool for drawing network schematics. It will have a tool bar for placing icons (router, firewall etc) via the duplicateMovieClip and startDrag and storing all the locations for these clips via PHP and mySQL. What I have currently are buttons that dupe the MCs and allows you to drag them arround. What I need ideas for is a way to select two icons and have a "draw line" tool that connects the two with a line so if you drag the icons around they remain connected. Also any hints on how to capture the _x/_y for the duplicate clips for inserting in a mySQL table would be very helpful too (I was thinking something like:
btn_save.onPress=function() {
myarr_X[i]=getProperty("dupMC"+i, _x);.
loadVariablesNum("savepos.php", 0, post);
}
Thanks for any suggestions as I'm quite lost.
CurveTo Drawing Straight Lines
Hi, I'm making a program for work which is supposed to draw a curve based on the information the user inputs. I have used curveTo , but it seems to be just drawing a straight line. I've posted the .fla for you to see what I mean - click in one of the text boxes, press enter, and it only draws it straight. Why is this happening?
P.S. I'm using MX.
How Annoying Is This -cant Add Anchor Points To Straight Lines
Many people in the forums have had this problem but I could not find anyone who could answer the question.
When you draw a square say then use the pen tool to add anchor points it comes up with a circle next to the pen (not a plus) and wont add an anchor point. Adding to curves appear to be no problem and removing points no problem.
Hmm frustrated!
Tip: Using Convert Lines To Fill For Rounded Corners
I would like to share a tip that I recently discovered from hours of head banging on the wall.
Download File: Using_Convert_Lines_to_Fills.fla
The Problem:
When using the corner radius feature to draw rounded corner squares, lets say to make a rounded corner web 2.0 button, you begin to have aliasing issues when you publish your file! The problem is more noticeable when you use a dark thin line and a lite fill color to make your square. (Refer to my example flash file). The result is small, ugly pixels around the corners of the square, that makes the rounded corner not look so round. It looks ugly and unprofessional.
The Reason:
This is an educated guess. When flash compresses the fla to a swf, the jpeg compression creates those ugly aliases. uck.
The Solution:
You could crank up your publish settings were your jpeg compression quality is 100%, but this is flash you want to have small, fast, and good looking swf files....right?! Well, select your square and then from the menu select Modify > Shape > Convert Lines to Fills. This converts all the selected lines into a fill. The result should clean up your square corners when you publish your file.
Problem solved.
Note: Since fills are harder to edit and move around this should be done towards the end of your project.
If you have any questions/comments I'd love to hear them. I would also love to make this into a tutorial. I think this would save a few head aches.
Getting The Line Tool To Draw Lines With Sharp Corners
When using the “Line Tool” is there any way to get Flash to give the line drawn a square start/end rather than the rounded ones that it appears to give by default.
I have tried the “Sharp Corners” option in the “Custom” dialogue box, but this appears to have no effect.
Thank you for any help.
Getting The Line Tool To Draw Lines With Sharp Corners
When using the “Line Tool” is there any way to get Flash to give the line drawn a square start/end rather than the rounded ones that it appears to give by default.
I have tried the “Sharp Corners” option in the “Custom” dialogue box, but this appears to have no effect.
Thank you for any help.
How To Find Number Of Lines Of Dynamic Text...and How Many Lines In Textfield
is there any way of finding out how many characters will fit in a dynamic textfield?
I have a textfield that is dynamically loaded with text. Sometimes the text is long and i need scroll buttons, but when the text is short i would like not display the scroll buttons.
How can i figure out if text is short enough not to display the scroll buttons?
oh..to make it even more complicated; the font of the text is not always the same. I use textformatting to display header-like lines in the textfield.
Let Me Get This Straight...
If I build a fully functional .swf (animation, website, application, whatever...) by using the "loadMovie(proper parameters);" I can have it played right in my main .swf? This is the way I read the docs, but this sounds WAY too easy.
Corners
Hey,
I've made a small thing in fireworx, a little arrow in a box. Now i imported that in flash mx, and put it on the scene, but i don't see the botom line of the box
So i thought, maybe i can draw this in flash itself, i started ... but i don't know how to get the corners right. They never are in 90° angle. You gotta really zoom in to see it ... cuz it's kinda small.
If you use the hairline, it's fine, but the line is to small.
I added the fla file so you could see for yourself ...
Hope you understand what i mean and somebody can help me
Greetz,
DiGiTi
Straight Linking ...what The ?
are there any known problems on linking to sites outside of your own in flash? i'm trying to link from one site to another in a new window and it's not happening. i don't get it?
Who Wants To Help Me? - Join Tha Four Corners
1.Help me Rebuild and Layout My Site i have a host already.
a)help me make and intro if you want read B
b)help me and my friend GoGo Anime -Brian make movies
2.Join Tha Four Corners theres already 2 me and brian
a)if you do u get Yourname@frozenflash.com E-mail Fowarding to you.
Please Tell Me which one you can help with i hope u can help with everything.
Rounded Corners
why is it that when u have used rounded corners on illustrator when you go to import it into flash mx it becomes straight edges?? Can anyone help????
Straight Edges
How can I make a line with straight edges in Flash? And how to import a Illustrator file to Flash without Flash turn the paths edges from straight to rounded?
Thanks!
Sroll Bar Thats Not Straight?
any body know how to make a scroll bar that isnt in a straight line? Ie the bit that shows where you are in the page follows the contours of the page? I have tried to do it using a basic script and a motion path but it doesnt work properly.
Any ideas?
Square With Corners
When you draw a square ouline using rectangle tool (using stroke only/no fill) then increase the line thickness the corners become rounded.
How do you draw square corners at this thickness?
How do you make the line thicker than '10'?
+
A Straight Answer....yes Or No?
Can Flash MX (not Flash MX 2004) load FLVs? Can they control them (play, pause, stop, rewind)? I've ransacked this entire board and I keep seeing "use the media component in Flash MX 2004" and I would normally do that but I need to be able to export for Flash MX b/c this is a national audience that the project is geared toward.
anyone have a straight answer?
thanks!
Furpants
LoadVars Help, Can't Get Anything Straight
Hello, i read the posts on the topic "target prob? loadVariables works when testing each swf, but not when loaded in main??" so don't redirect me there! Anyways, my problem is that I have an external text file named "testtext.txt" and I need help loading it into a text box in my flash movie. I am doing tests over and over. LoadVars is a new thing to me and I can't get it right, this type of trial and error I think is bad, because I can't get it all of the time. I need someone that understands LoadVars or someone that could point me in the right direction?
Thanks for reading,
-Brent
Radius Corners
Hello Peoples, I am new to this forum and flash in general. My site is http://www.mosaictilecreations.com/. I recently built this site and a friend in Calgary did the animation. The one thing I would like to do is place radius corners on the Mosaic Sea Animation. I dunno, somehow the sharp corners just seem a little harsh. Anyway, if anyone can help me accomplish this I'd be grateful. Cheers, scubes
Progress Bar Goes From 1% Straight To 100%
Hi
I have a swf that loads another swf and I wanted to display a progress bar whilst the external swf was loading. This seems to work fine however the Progress Bar doesnt move up from 1% gradually to 100%. It always goes from 1% and jumps to 100% after a a wait and when it has loaded.
The code I have used it below, im probably missing some code for this.
myProgressBar.source = myLoader;
myLoader.contentPath = "loadCMS.swf";
Please help, thanks.
[F8] Rounding The Corners
i have this quick function to make a box with a green-ish background:
Code:
function makeBox(){
newsBox = imageBox.createEmptyMovieClip("newsBox"+X, imageBox.getNextHighestDepth());
newsBox.init();
//news bg******************************
newsBg = newsBox.createEmptyMovieClip("newsBg", newsBox.getNextHighestDepth());
var newsBm:BitmapData= new BitmapData(300,12,false,0xbcff39);
newsBg.attachBitmap(newsBm, 1);
}
works fine, but is there a way to make the corners rounded, rather than "right angles". Thanks
[F8] Steer Me Straight
This is your chance to get a newbee to do this stuff "the right way"...
I'm creating a page with multiple FLV's to play using the same video placeholder/loader. When I click button one, I want that FLV to load and play, ... button two to make FLV two load and play in same video placeholder, etc.
Before, and after each video there is a still image to display, and when you click a button to play a video, the still image fades out, and after the video plays, the still image fades back in.
What is the best way to set up this project, keeping in mind I understand a little action script, so I can usually follow along with guidence?
Any help with the actions script would also be very much appriciated!
In advance, thank you very much!
Rounder Corners
I can draw a rounded rectangle but how do i draw a rounder rectangle with say only 2 corners rounded and a border around the shape?
Rounded Corners
I can draw a rounded rectangle but how do i draw a rounder rectangle with say only 2 corners rounded and a border around the shape?
Straight Edges
How can I make a line with straight edges in Flash? And how import a Illustrator file to Flash without Flash turn the paths edges from straight to rounded?
Thanks!
Sharp Corners
Hi there,
I have a pretty old version of Flash, MX I think and I'm simply trying to draw a box with a 5px outline that has sharp corners. I've checked the 'sharp corners' check box in the custom settings for the outline but I keep ending up with a box that has slightly rounded corners! It's driving me mad, can anyone tell me where I'm going wrong???
Thanks.
Darkened Corners
how can i achieve darkened corners on my flash site, like in http://www.artofdavesilva.com ? i've been playing with the color fill but i don't think thats how to get the BEST looking dark corner. thanks
Why Does It Round My Corners?
Okay...I am just trying to import single vector graphics in MX from Illustrator 10 by exporting them as swf files in Illustrator. My problem is that when import them in flash, the export/import rounds all of my corners on my graphic. For example, in Illustrator, I have a series of small 2x2 pixel squares...in Flash the corners are all rounded. Any ideas???
Stretch To Both Corners, How?
Hi,
Im working on my portfolio.
How can i get it stretched all the way on the right side?
Have a look
http://privat.bluezone.no/stein.sebergsen/issue04.htm
Regards,
Simon
Extending A Straight Line
I've a straight line connecting two points A and B in my movie. Now how do i extend the line beyond A or B using actionscripts?
suggestions appreciated!
david
Bending A Straight Line W/ AS
Hi:
I've seen a lot of great animations on the web that involve bending a straight line with AS. Can anyone offer such a script or point me in the directions of a good tute containing one.
As an example, I have an animation in which I want to move the butterfly's antennae in a nautural, curved path:
http://www.ekigroup.com/resurrection.html
Also, if anyone knows how to do the wing animation with AS, that would be great too. The above tweened animation [just the wings] is only 7 frames long, but is 24k. The butterfly is a vector drawing, so it is only 6k of that. I think that 18k for a 7 frame animation is a bit much, and would like to convert it to AS, if at all possible.
Thanks, for any help.
James
He is risen!!!
Box Corners Not Rendering Completely...
Howdy.
I create streaming media modules for various clients using Flash (version doesn't really matter, but I am usually using v5). I create a .fla and then I drop the tuned .swf files into RealPlayer as backgrounds creating an "environment" for the presentation. Frequently I use a box as an outline for the video region, slide region, or whatever region happens to be needed. I have a client complaining that the corners of the boxes are missing the connecting pixel. The boxes use a 1pixel line, and the lines are connected. When I zoom in on the box corner in the .fla file, all is good, but when I publish it out to a .swf, it loses the corner pixel...only at the BOTTOM of the box. Odd eh? Anyone have a way to fix this? My client is driving me nuts about it.
On a related note, how do I make the corners of the box a right angle and not a smooth, rounded corner? Am I missing something? Like my brain. Seems like it should be an easy fix. Thanks a lot. I appreciate any input at all. I am desperate.
Curving A Straight Line
Really simple question...Im new to the program, and came across this problem. I have a character in my cartoon, and I want to make him smile. Ive started him with a straight mouth, I just need to know how, if possible, to curve that straight line for the purpose of a little smile tween
Thanks!
Loading Straight To A Certain Scene.
is there something I can add to the object/embed tag to make my Flash file load straight into the second scene? or is there another way to do this?
basically I want to load to a different scene depending on what html link you choose from the splash page.
Squared Corners On Strokes
Even if I check the "Sharp Corners" check box to create a stroke on a rectangle, I still get rounded corners. Is there a way to do it to get sharp corners?
My Hittest Goes Straight Through, Doesn't Hit
on the thing i want to get hit (remote), i put this:
onClipEvent (enterFrame) {
if (this.hitTest(_root.nate)) {
true;
gotoAndPlay("cutscene1", 1);
}
}
if nate were my player, why won't this work?
Thanks for the help, i'm going to sleep for now.
Can You Add A Point To A Straight Line?
I can't seem to be able to do this, and it's extremely frustrating. Can you just add a vector point to a straight line that you've created in Flash? I can't get a + indicator using the pen tool on the line, I only get a O indicator.
Drawing Square Corners
I'm having problems trying to draw anything without rounded corners. For instance if I use the square tool to draw a square the outside corners of the stroke are rounded. I made sure that corner radius is 0 on the tool preferences and under the custom for the stroke Square corners is checked. The inside of the stroke is square but the outside is rounded. Any suggestions?
Thanks.
|