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
FlashKit > Flash Help > Flash MX
Posted on: 02-03-2003, 12:50 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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
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!
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?
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.
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
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.
A Straight Answer About E-cards
Hello!
I really need a straight-to-the-point answer about how to use a Flash e-card. I've been trying to send an e-card in the body of an email message and it's not happening. I've just been told that it's not possible.
I've tried to use the HTML format in the Rich text format of the email referencing the swf file on the server and it keeps coming up as a red x.
Do I need to simply link to the swf in order for it to be viewed elsewhere?
Untidy Rounded Corners
I am currently designing a flash demo where all the windows need to have rounded corners. I have noticed that when using the rounded corners tool in mx 2004 the results are quite poor. The corners are very untidy and jagged. Has anyone else had this problem and if so is there any way to overcome this problem? I've attached a screenshot to show what I mean.
Thanks in advance
Applying Round Corners
I would like to now if there is a way of applying round corners to an existing rectangle.
I need to be able to create the rectangle, then resize it and finally apply the round corners. If I do the corners while first drawing the rectangle, they are distorted when I resize it.
Is there a way?
Preloader Not Loading - Straight To 100%
Hello
I have finished a site.
http://www.changthai.org/test/inlingua.html which Im quite happy with
The problem is that with one loaded movie, the preloader is refusing to countdown, as in the page stalls when loading, you briefly see the preloader image at "100%", then the movie plays.
This is a minor irritation on fast connections. On slower ones, I get the complaint "I see no page - where is it ??"
To see the problem, click the button About Us.
Then, click inlingua Puerto Rico.
The preloader works fine when I test it alone here on my PC. I have double checked everything and still no joy. This problem is holding up the publishing of the site.
Please let me know if you have any ideas on this one. I have a feeling its navigational but baffled as to where.
Many thanks.
Why Cant I Click On A Movie Straight Away?
why is it that once i've placed a flash movie into a HTML page i have to select/activate it by clicking on it before i can start using it? is there any option so i can start using the movie straight away, without having selecting it first?
Any advice would be greatful!
Rounded Corners Annoy Me
My Flash movie contains a rectangle with rounded corners. Trouble is the stroke never lines up properly on the corners, no matter how careful I am. I've never seen this issue on professional Flash movies. How can I prevent this?
I attach a screenshot of the annoying rounded corner problem! If anyone can solve this problem, I would be extremely grateful!!
[MX] Collision With Straight Line
PHP Code:
player.speed = 0;
player.onEnterFrame = function() {
if (Key.isDown(Key.UP)) {
this.speed += 0.2;
this.gotoAndStop (3);
if (this.speed > 5) {
this.speed = 5;
}
this._x += this.speed * Math.cos(this._rotation * (Math.PI / 180));
this._y += this.speed * Math.sin(this._rotation * (Math.PI / 180));
} else {
this.speed *= 0.9;
this._x += this.speed * Math.cos(this._rotation * (Math.PI / 180));
this._y += this.speed * Math.sin(this._rotation * (Math.PI / 180));
this.gotoAndStop (1);
}
if (Key.isDown(Key.LEFT)) {
this._rotation -= 5;
}
if (Key.isDown(Key.RIGHT)) {
this._rotation += 5;
}
}
plaser._alpha = 0;
plaser.harm = false;
plaser.onEnterFrame = function() {
this._x = player._x;
this._y = player._y;
if (Key.isDown(Key.CONTROL)) {
this._rotation = player._rotation;
if (this._alpha > 30) {
this.harm = true;
} else {
this.harm = false;
}
if (this._alpha > 0) {
this._alpha--;
} else {
this._alpha = 100;
}
} else {
this._alpha = 0;
}
}
Instead of the usual dot shaped laser, I'm making a straight line as the laser for a game. The laser is just a very long line that is registered at one end point. So the _x and _y of the laser is the _x and _y of the player. I am doing some testing with the collision of the laser and a square named thing. As far as I know hitTest can never work because the laser rotates with the player and the bounding box will become huge. I need tips on a way to register a "collision" only when any part of the laser touches the square.
Straight Line Problems
how do i fix this so that it will make a constant straight line from dot1 to dot2 without making another new line every time ?
PHP Code:
createEmptyMovieClip("line",0);
line.lineStyle(10,0x000000);
onEnterFrame = function() {
line.moveTo(dot1._x,dot1._y);
line.lineTo(dot2._x,dot2._y);
}
dot1.onPress = function() {
startDrag(this,true);
}
dot1.onRelease = function() {
stopDrag();
}
dot2.onPress = function() {
startDrag(this,true);
}
dot2.onRelease = function() {
stopDrag();
}
Jagged Rounded Corners
Ok I know the topic of jagged rounded corners has been brought up before, but for the life of me I can't figure this out. If I make a rounded rectangle, circle, what have you the rounded parts come out jagged no matter how thick I make the stroke. If I zoom in it gets clear.
So what's the deal? I'm using MX 2004.
Any help would me great.
Thanks
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;
}
Travel In A Straight Line
I have a game that involves a movie clip travelling into a certain point on the screen, but the point varies. I already can make the movie clip get to that point, but it takes really unnatural routes, like moving horizontally and vertically but not diagonally. Is there a way to make it so the movie clip moves diagonally no matter where the point is? I admit my code already is pretty bad, but thats why I need to tweek it . targetx and targety are the coordinates of the point, while this.x and this.y are the movie clips coordinates.
Code:
if (this.x>targetx) {
this.x -= speed;
}
if (this.x<targetx) {
this.x += speed;
}
if (this.y>targety) {
this.y -= speed;
}
if (this.y<targety) {
this.y += speed;
}
|