Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




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?



FlashKit > Flash Help > Flash MX
Posted on: 09-19-2003, 06:10 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Squared Spotlighteffect / How To Make An Area Highlighted ?
I have a Movie with scrolling symbols (16 of them in a horiz row) and stage size is 500 pixl. The middle is therefore at 250. Now my pics/symbols are 120 pixl wide. Now, my symbols scrolls right or left and I want just the one in the middle to be 100% visible whilst the other around it to be darker/toned down.

This will mean that , according from stagesize, that area 190 - 310 should be normal visible while 0-190 and 310-500 should be darker if you follow my thoughts. How to solve that.. I tried some mask layers - 2 of them 1 area with 100% alpha and 2 other areas with alpha 60%. Disdnt work so PLEASE PLEASE tell me how to do m8:s !!

How To Add Strokes?
Hi,
I deleted my strokes around rectangle and after I test the movie I realized that colors were better with strokes but I can't find a way to put them back.Is there any way to put strokes back other then undo method?

Key Strokes
Wondering if there was a key stroke palette or special flash keyboard, or just a key stroke hot sheet,
I'm trying to discover a way to switch between the different tools faster, I'd love for there to be a bluetooth PDA program that displayed the toolbar or a custom pallette on my PDA so I could hold that in my left hand and mouse in my right. I have two displays, I'm considering a touch screen for the tools and stuff, what kind of graphics tablets can I configure and put icons on? The Cintiq by wacom is perfect though price is out of reach for the moment. any ideas welcomed to me!

Strokes
When I create a simple shape with a stroke, and then decide to delete the stroke, i'm unable to add the stroke back in. I've tried every maneuver I can think of, but still can't get it to work. I can change the "no stroke" symbol to a stroke color in both the tool box and the properties panel but can't get a new stroke to appear. I've tried using both selection tools and working on stage and in symbol mode, but nothing works.

Sandy

Keyboard Strokes
Does anyone know how to trigger a button with a key stroke?

I would like to be able to hit the "B" key for example and have a button light up(or something) and play a sound when you press the "B" key.

Is this possible through actionscript?

Thanks. Jeff.

How Do U Add Strokes To Text?
How do u add Strokes to text?

Cool Pen Strokes?
I am just curious, anyone know how to replicate or how the people at the following site made the amazingly cool looking pen strokes? click here

[F8] Dynamic Strokes
I asked something similar to this with no responses, and few views. If someone could just direct me towards a tutorial, a component, or even just tell me it's impossible..
I need to draw a Stipple line dynamically. I have a box with a custom Stipple stroke that scales to fill part of the stage, based on the size of the stage. (I use an onResize listener) My problem is, I can't get the line to draw dynamically. No matter what method I try, the stroke scales and is distorted. I have tried 9-slice on and off. There is a scaling option for the stroke in the drawing tool, but it's only available for the hairline and solid strokes.
Please help... Thanks..

Strokes In ._width?
So if I recall correctly, it used to be that Flash did not account for strokes when measuring the ._width or ._height of something.

Now, in Flash 8 it does measure those strokes, and it seems to do a pretty ****ty job of it. Especially if you have the stroke's scale set to 'none' and scale your MC up a bunch, it wont align things proper like.

Is there a way to tell ._width not to think about strokes?

Can't Get Key Strokes To Work?
I am having no luck. The code below is straight out of the Help docs. I can't get any thing to happen with handling an event with the key down:

if (key.isDown(key.CONTROL)){ ....ect

Any suggestions would be appreciated?





var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
// compare return value of getCode() to constant
if (Key.getCode() == Key.ENTER) {
trace ("Virtual key code: "+Key.getCode()+" (ENTER key)");
textBox.text="Virtual key code: "+Key.getCode()+" (ENTER key)";

}
else {
trace("Virtual key code: "+Key.getCode());
}
};
Key.addListener(keyListener);

Drawing Strokes
i need to figure out how to dynamically draw a stroke around a movieclip already on the stage at runtime.

i have lots of different jpegs and vector images in movie clips on the stage. well, i put differnet sizes of these images on the stage all the time. How would i go about dynamically drawing a stroke (to serve as a border) around these movieclips. i have flash cs3 and I'm publishing to flash player 7 and will publish to 9 in the next couple months. if maybe i should load the images differnetly let me know, or any kind of help would be appreciated.

Programming Key Strokes
Is it possible to command a key stroke using scripts?
Meaning: you don't have to actually press those keys on your keyboard, you program the computer to key them in automatically for you.


ie. ctrl+enter or any other hotkeys

Not Scaling Strokes...
I'm almost sure I've done this before, but I can't remember how...

...when scaling shapes/objects, how can you scale it without adjusting the size of the strokes?

Right now, when I am trying to scale this shape down, the strokes get really big and fat. So, maybe I'm asking this wrong. Maybe it ISN'T scaling the strokes, and I DO want it to. Either way, how do I change that option? Thanks!...































Edited: 04/11/2007 at 11:39:28 AM by DIY_Lobotomy

Lock Out Key Strokes
I am working a game where I want all the keys that are not a letter or backspace locked out, or that they dont do anything when pressed, does anyone know how I can do this?

Fills And Strokes
If I place any shape onto the stage all I see is a green outline with no fill.

E.g.

I place a rectangle onto the stage and use the colour mixer in linear mode, I cannot see the changes I have made. If I run the test movie the rectangle is correct with the linear attributes.

This is the same even if it is just filled with a single colour or I change the stroke. It is fine in preview (test movie) but all I see on the stage is an unfilled rectangle with a green line.

It is driving me nuts and I would be grateful for any help.

Thank you in advance

skjc

Fills And Strokes
If I place any shape onto the stage all I see is a green outline with no fill.

E.g.

I place a rectangle onto the stage and use the colour mixer in linear mode, I cannot see the changes I have made. If I run the test movie the rectangle is correct with the linear attributes.

This is the same even if it is just filled with a single colour or I change the stroke. It is fine in preview (test movie) but all I see on the stage is an unfilled rectangle with a green line.

It is driving me nuts and I would be grateful for any help.

Thank you in advance

skjc

Flash 8 Strokes Around MC
I have a rectangle within a movie clip that will have actionscript to change it's color. I want a white border around this rectangle, but the rectangel needs to scale as well and I need the stroke to stay consitant without scaling up with the rectangle.

I'm running into problems because the storke and the rectangle can't be part of the same element because the stroke gets changed with teh color change of the rectangle.

Is there any way to draw a border around a rectangle that already exists?

Missing Strokes On .bmp In Flash 5
Ok folks, this is driving me loony.

Using Photoshop6 I created a 1-pixel black stroke around my .bmp images which I then import into Flash 5.

When I import the images into Flash, only the top and left edges of the photos have borders and on the bottom and right edges of the image, the stroke is non-existent.

Whenever I view the images outside of Flash, they look perfect, with a uniform stroke around the entire photo.

What did I do in Flash to cause this? It has to be Flash because when I import those same photos into a Dreamweaver 4 page, the photos have the perfect 1-pixel black stroke around them that I put on the photo in Photoshop.

What gives?

Thanks
Steve Dallas
McKinney, TX

Detecting Variable Changes And Key Strokes...
Hi, hope somebody can help.

Is there a simple method to envoke an action if ANY key is pressed, and also a similar method if an input variable changes?

Thanks for any help.

Applying Gradient To Strokes ?
Hey peeps,

Does anyone know if it's possible to apply a gradient to a stroke rather than to a fill in Flash 5 ? i.e. to apply a gradient to a squiggle with the pencil tool.

Love,

Osca xxx

Recording Multiple Key Strokes - Help
Hi,

I'm creating a presentation where the client wants to jump between slides by keying in the numbers. The problem is that the numbers go up to about 40 - is there any way the user can press a number key then another number shortly after to jump to pages in double figures?

I'm using Flash MX

Thanks!

Catching Key Strokes Problem In MAC IE
I was having issues with a movie but they only occured in MAC IE (tested on 5.0 and 5.1). I removed an empty movie clip that had this script attached to it:

onClipEvent (keyDown) {
if (Key.getCode() == Key.UP) {
getURL("javascript:scrollUp()")
}
else {
getURL("javascript:scrollDown()")
}

}

Which I know if a little sloppy since any key other than the up arrow scrolls down. This is the javascript on the html page that loaded the flash movie:

function scrollUp() {
window.scrollBy(0,-100);
}

function scrollDown() {
window.scrollBy(0,100);
}

Any ideas with this. Basically, the page would load fine the first time, and then if you hit refresh, the movie would not load and and a right click would give you "Movie not loaded..." on the context menu. It would repeat this action every other time. Thanks.

Capturing ALPANUMERIC Key Strokes Only
Hi guys

I made this little multi field notepad application.. experimenting..

i need a way to flag for "SAVE" whenever something has changed in the document.. like when you use a word processor, you get an asterisk at the end of the document title whenever you need to save your document..


i can use a regular Listener object, and check for keystrokes.. but i'd hate to do a condition for each keyCode..

if i just simply tested for keyListener.onKeyDown then it'll flag to save the document even if shift, numlock, control keys, or one of them kind of keys are pressed..

any more efficient way for this?

Strokes Un-antialiasing In Movieclip
Hi guys -
In a flash website I am creating, I have an odd antialiasing problem that I am hoping someone here will be able to help me with.

When the opening animation for the website plays, about 2/3 of the way through, the strokes on all the objects un-antialias for about a second, then antialias again. This happens to different degrees on different computers, and I think it may have something to do with the number of things all happening at the same time?

This document has a number of tweens which go right at the beginning, so I have tried modifying them so that their starts and finishes are staggered and there aren't too many happening at once, which seems to mitigate the problem, but it is still happening on some computers.

Has anyone seen anything like this before? Any ideas on things I can do to fix this? Would a preloader help?

I have attached screenshots of both states so you can see what I'm talking about.

[CS3] Whats Wrong With Strokes?
I have been trying to figure out why it is, that when I have a peice of art with a set of strokes on it, I cant just select all and convert strokes to fills.
when I do this almost All of my stokes disapere. I have been selecting one stoke at a time and it seems to work. but the amount of time it takes to do this is SOOOOOOO!!!!! counter productive. I'm wondering if any one has figuerd out a better way to do this that doesn't creat a ton of points. or are we all just waiting for adobe to fix this bug......
HELP ME!!!!!!

Trouble Recording Key Strokes
Hi all

I have a movie clip with five frames. On a layer that spans all five frames is a dynamic text field. I want to tell the movie which frame to advance to based on what is typed in the text field.

I played around with this and thought I had it working, but now it's all gone funny for some reason. When I change the text field it's jumping to a strange frame.

I've attached a zipped folder, but basically each frame has a variation of this code:


Code:
keyListener = new Object();
keyListener.onKeyUp = function () {
if (this.CodeNo.text="2") {
gotoAndStop(2);
}
}
Key.addListener(keyListener);
Any idea what I've done wrong? I'd appreciate any help.

Thanks
MMH

Is There A Plug In For Natural Looking Strokes
Is there a plug in that gives those cold vector lines some nice, human weight?

Converting Strokes To Fills
I'm creating some mobile phone content and I need to convert the stroked lines I brought in from Illustrator into fills (to increase playback speeds). What is the best way to make that conversion?

Thanks

Trying To Save Key Strokes With A For Loop
I have been trying to action script for years with no success. I to some time off and learned javascript and some oop (ruby) so I thought I would take another stab at it. I am still having problems. Here goes...

I have several movieclips on the stage that will be set up as buttons. They all have the same effects associated with mouseover and mouseout so I thought I could save some key strokes with a for loop. But I can't get it working right. Could someone tell me what I am doing wrong please?


If anyone can help it would be appreciated.








Attach Code

for(var i=0; i<4; i++) {
trace(i)
var mc_ItemText[i]:MovieClip;
var inter[i]:Number;
var mc[i]:MovieClip = mc_ItemText[i]
//functions
grow = function(mc:MovieClip):Void {
if (mc._width<=55) {
mc._width += 1;
mc._height += 1;
} else {
clearInterval(int1);
}
}
shrink = function(mc:MovieClip):Void {
if (mc._width>=45) {
mc._width -= 1;
mc._height -= 1;
} else {
clearInterval(int1);
}
}

//events
mc[i].onRollOver = function():Void {
clearInterval(int1);
int1 = setInterval(grow,10,mc[i]);
}
mc[i].onRollOut = function():Void {
clearInterval(int1);
int1 = setInterval(shrink,10,mc[i]);
}
}

Prevent Scaling Strokes?
Is there any way to prevent the scaling of strokes in Flash? So that if I dynamically resize an MC, the strokes inside it will stay at their original size?

--v/D

Browser Capturing Key Strokes
I've tested IE and Firefox so far, both of them capture certain keystrokes.

For example, in IE I can't use "Escape" because it's being captured by IE as the Stop Page command. Similarily, F1 is bringing up the browser help. Alt+ almost anything is being ignored. CTRL+R activates the page refresh command.

FireFox is a bit more friendly; I can use Escape, but CTRL+R still refreshes the page.


Is there a way (either through javascript, actionscript, or the HTML embedding options) to allow my flash movie to capture these keypresses away from the browser?

Square Endcaps On Strokes?
Does anyone know if it is possible to have square end-caps on strokes in Flash? It seems to even be rounding my squared imported Illustrator files. I want sharp corners, not rounded ones!
:P

Merging Strokes Lines?
This has me comletely frustrated. I'm almost positive this was automatic in all previous versions of Flash. But with 8, when i seperate two strokes/lines then move them over each other, they no longer merge. Does anyone know how to get them to be one line again?

Additionally, i'm trying to find a good QUICK way to make complex, custom rectangular shapes (multiple strokes/fills etc) So that i can resize them, without the edges becoming warped and disproportionate.

I think this would be a good use of Flash's dynamic drawing capabilities and/or a component of some kind, but i'm not that versed in either. Any suggestions?

This might be the wrong place to post this, but it just seems like such a simple thing. I just must be missing something that's right in front of me.

Thanx.

Wish I Could Explain This Better...deals With Strokes And Resizing
im working on a content box. so i made a small box with a 1 px border as my symbol. then in a mc i resize the box horizontally. only problem is the stroke is magnified and becomes huge. any way around this? besides using groups instead of symbols?

Actions Followd By Keyboard Strokes
hi,
i have a button that do some action...
i want to add a key down functionality that will do the same action so the user will have 2 options to get this action play.
how can i do this?
keyDown()? how do i use it?

Convert Key Strokes Into Mouse Clicks
I'm designing a training tool to teach students how to use text messages.
Is there a way to convert key strokes into mouse clicks so the numbers will be placed into a text feild?
I have a number pad and a text box. Each button needs to have three letters and a number, so when its pressed it put the letter or number into the text field.
How do I convert key strokes into mouse clicks?

Creating Calligraphy Brush Strokes?
Hi

I have a bunch of graphics that are made from paint brush strokes that I want to show as if it's being painted on the stage, sort of like watching calligraphy being painted.

I tried doing a mask with a shape tween and then a motion tween, and I thought I could painstakingly do zillions of keyframes and do it by hand, but it either doesn't look right or is just way too much work if I do it key frame by frame.

Is there an widely used approach for creating brush strokes that I might use in Flash 8?

Any help appreciated.

Adding Vectors To Shapes Or Strokes
I don't know why I can't figure this one out, but how can you add a vector point to an existing stroke or shape to make a new joint?

Please help!!!

d

Stroke Tool And Curving Strokes.
Um im trying to do this

http://www.kirupa.com/developer/mx/lineart.htm

just for someting to do. I have imported my own image....

Now i want to get somethings straight.

Is the stroke tool the line tool?

How do i curve the strokes/lines

How do i turn snap to objects off..


Please help..thanks in advance this is one of my first times with flash.

Collecting Stray Fills And Strokes With AS
Hi, its my first post, just wanna say thanks to all you guys at kirupa, your site is an invaluable resource.

well, lemme shoot with my question:
Is it possible to 'move' or 'collect' fills and stroke designs that are not symbols and that sit on the _root/stage, into a "container" Movieclip, using runtime AS?

Generally, if they were made MC's at authoring time, one could use a simple for ...in loop.

Unfortunately, I don't have the luxury of that approach.

At all Possible?

Changing Shape (already Drawn) Strokes?
The stroke property of a shape is clearly different from the fill property and I see that on the stage and can change each property via the properties panel when the shape is on the stage. But how do I do this via actionscript?

I've got a map with states and each state is SHAPE with a fill and a 1pt stroke. Depending on data I want to change the fill color of the states but NOT the stroke. Right now, the whole thing changes. Any ideas?

Adding Vectors To Shapes Or Strokes
I don't know why I can't figure this one out, but how can you add a vector point to an existing stroke or shape to make a new joint?

Please help!!!

d

Illustrator To Flash - Strokes Instead Of Fills?
I have an Illustrator (CS3) file that I'm importing in Flash (CS3).

The graphics have strokes in AI, but when I import in Flash, they are converted into fills.

Any idea how I can get it to import as a Stroke?

Playing Sound Clips Through Keyboard Strokes.
Hi all,

I am working on a new project. I am trying to use the keyboard as a music maker.
Are there any tutorials that can help me out with this idea or can any of you fine people help point me in the right direction.
I also would like to record want the option to record the music so that the user can play it back again.

Thanks to all in advance.

Fergal.

Allowing The User To Only Enter Single Key Strokes?
Hi there - I've created a game for my company that requires the player to hit certain keys on the keyboard at specific times (in this case, the cursor keys). How can I make it so that pressing a key allows one single character, rather than a continuous feed of them?

i.e.: 'e', rather than 'eeeeeee'


Hope this makes some sense! Any help greatly appreciated, thankyou :)

Jim

[F8] Brush/Pencil Strokes Creating Blue Outline
hey guys, this is probably a very simple fix, but since im a noobie, i really dont know anything about how i might be able to fix this. so whenever i use the brush tool, or the pencil and draw a line for example, it creates this blue box outline around the line, and when i double click the line it takes me into the editing area of it. how do i remove this? it wasnt doing this a week ago, im not sure how to fix this, thx again guys. oh heres a pic so you know what i mean.

Back From Flash 8 To 7 - Issue With Enhanced Strokes Feature
Hi all,
Thanks to this marvelous site, I did my flash web site.

Unfortunately, people under Linux can't browse it as the only available Flash player under this OS is the version 7.

From Flash 8, when I re-target the Flash 7, I get some warnings saying the "enhanced strokes feature" is not supported, but I didn't found how to fix this.

Any idea ?

Thanks for your help.

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

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.

Copyright © 2005-08 www.BigResource.com, All rights reserved