ActionScript 2.0 :: Make 8 Pixel Rounded Stroke?
Apr 15, 2008I need to make 8 pixel rounded stroke with action script.
View 1 RepliesI need to make 8 pixel rounded stroke with action script.
View 1 RepliesHow can I make my buttons (pic 1 and 2) more rounded ? (pic 3)
View 6 RepliesHow do I make a rounded corner box in Photoshop CS? I don't want to "feather" it because that makes it blurry. I just want rounded corners.
View 9 RepliesI'm trying to achieve a roundedRectangle in gradient by using just code but i'm getting stuck.I was able to achieve the gradient part but adding the rounded piece its difficult, please see me code,
Code:
package com.callwave.web.fuze.view.skinLibrary
{
import mx.core.UIComponent;
import flash.filters.DropShadowFilter;
import mx.graphics.LinearGradient;
[code]....
I am currently working on a game and I am stuck. I do not know how to make a rounded surface that will act as a wall/barrier. It is pretty much a semi-circle. I know you can make a circle act as a barrier but I would need to use the perimeter of the circle. Also is there a way you can make an actual image a barrier? I am new at this but I know from reading up that making a rounded wall is pretty tough. I am going to use this wall to make a ball bounce or "roll" around it. Below is a picture of what I am trying to do. The black dot is the ball.
View 3 RepliesIn my application,showFlexChrome is set as true in WindowedApplication,and the *-app.xml is setted as follows
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<visible>true</visible>
I know how to make the top border rounded corners with follow codes:
borderStyle="solid" cornerRadius="8"
But I cannot find a method to make the bottom border of my app window rounded-corner.
how can i make TextField rounded or attached to circle?
View 0 RepliesI want to make a rotating cube with rounded edges. I already saw lots of cube sources, but i need one with rounded edges. My maths actionscript is not so good.
View 0 RepliesPretty much said it in the title. I have drawn a cartoon in flash (cs4) and because of zooming in and out my lines are different widths (thicknesses?)
Is there any way I can select the entire image (just lines) and somehow "uniform" them?
I am trying to make a panorama presentation (running across 5 screens of 1360x768 pixels each) and therefore I would like to make a stage resolution in 6800x768.
Flash CS4 Pro says no: max resolution 2880x2880 pixels. Is it in any kind of way possible to make a work around so I will be able to get the requested resolution for my panorama animation/presentatrion.
I am looking for a fairly simple image comparison method in AS3. I have taken an image from a web cam (with no subject) passed it in to bitmap data, then a second image is taken (this time with a subject) to compare this data, from these two images I would like to create a mask from the pixels that match on both bitmaps. I have been scratching my head for a while, and I am not really making any progress. Could any one point me in the right direction for pixel comparison method, something like getPixel32()
View 2 RepliesI have a 100x100px image. I want to get 1 pixel vertical line from x- 1 to 100. How can I do that?
View 7 RepliesHow can I round number to up down or to the 0.5 using action script 3.0. For example
4.9 will be rounded to 5
4.7 will be rounded to 4.5
2.4 will be rounded to 2.5
2.3 will be rounded to 2
It's easy to draw a round cornered rectangle/square but how do you draw a triangle with rounded corners?
View 4 RepliesI would like to tween between a short rounded rectangle and a tall rounded rectangle. (I only want deal with the height - no other parameters). I am programming with ActionScript 3. My tweening engine is TweenLite.I have been tweening a sprite that contains a rounded rectangle. The tweened sprite produces distortion. I suppose that I have been scaling the original image, rather than the height of the rounded rectangle?Here is a simple example of my code:
Draw the rounded rectangle:
roundRect = new Sprite();roundRect.graphics.beginFill(0x000000);roundRect.graphics.drawRoundRect(0,0,50,15,4,4); //Original Height: 15roundRect.graphics.endFill();addChild(roundRect);
Then I listen for a mouse click event on the rounded rectangle.The mouse event triggers a function with the following code:
TweenLite.to(this.roundRect, 1, {height:120}); //Final Height: 120
I would like to tween the height of the rounded rectangle itself. I would hope that this would not produce the unwanted distortion.
So I have a PopupButton and when I click on the button I want the Menu that pops up to have rounded corners. How would I go about doing this?UPDATE:I found an update similar to what I want to do, it can be found on the following page:The only difference is that I'm showing the Menu with a PopUpButton. So far this is what I have for my custom Menu:
package {
import flash.display.Sprite;
import mx.controls.Menu;
[code].....
When I use <s:Rect> to create a rectangle, I use radiusX to get rounded corners. Problem is all are the same roundedness. Is there something similar to Rect that lets me control the radius for each corner separately? If not, what's the best way to create this from scratch? graphics library or what?
View 3 RepliesWhen multiplying a floating point number that is very close to 1 with an int > 0, can it ever be interpreted as 1.
That is, if Math.random() returns its highest possible result (which is 1 step below 1.0), will
(int)(Math.random() * 8)
be 8 or 7?
For a practical example, can this often-used construct give an index out of bounds error:
someArray[(int)(Math.random() * someArray.length)];
I'm specifically interested in answers for Java and ActionScript 3, but I suppose they all use the same rules for floating point arithmetic, and answers for any platform would be useful.
Update: Though I already accepted an answer, I'd still appreciate confirmation that this can't go wrong in ActionScript 3 either, since a colleague reporting that he saw it go wrong once is what partly prompted me to ask this question.
I'm trying to get plain straight corners on a rectangel. I have been drawing a rectangle or even before drawing one, selecting the little tool in the lower left and I put in a value of 0, but as soon as I draw anything it rounds up again. How do I get rid of this problem??
View 2 RepliesI need to draw a box with rounded corners. I can't get a hang of it. I want to draw it from the following variables:
boxwidth = 200;
boxheight = 200;
radius = 5;
How do I draw this? You should see the artwork I have (by mistake) created while trying to get it right.
As you can see on the attached image I have a rounded border round an image. The problem is that the border only is rounded on the outside and not on the inside (marked with a arrow). The code I use for the border is:
Code:
border.graphics.lineStyle(10,0xFFFFFF,1,true);
border.graphics.drawRoundRect(0, 0, content.width,content.height,15,15);
container.addChild(border);
I am creating one new empty movieclip like this,this.createEmptyMovieClip("vjn", this.getNextHighestDepth());
vjn.beginFill(0x000066);
vjn.moveTo(150, 50);
vjn.lineTo(50, 250);
vjn.lineTo(250, 250);
vjn.lineTo(150, 50);
vjn.endFill();
these lines are creating only the square corner, but i want rounded corner. How can i increase or decrease the radius size. How to create the rounded corner through script.
How to keep the same rounded corner even when I want to shrink it's width?
View 2 RepliesI've created a rectangle in catalyst and under the "properties" panel, all I can see is Corners 10 for the rectangle. Is there a way to individually define each corner similar to CSS. I can't see any source code view in catalyst to enable me to fine tune it for each of the 4 corners. How do I specify the roundedness of each corner separately?
View 1 Replieshow can i get a title window with all rounded corners, so that i may make it whole round or circular shape ?
View 2 RepliesI'm making a flex 3.5a/air2 application and I've made a popup window but I can't seem to get its bottom corners rounded. Setting cornerRadius seems to only affect the top corners. There doesn't seem to be a roundedBottomCorners property like there is for panels, and adding a controlbar with a cornerRadius also has no effect.
View 2 Replieshow can i draw a shape, that is only rounded at it's bottom ?
var _myShape:Shape = new Shape();
_myShape.graphics.lineStyle(4,0x000000,1,true,....);
_myShape.graphics.drawRoundRect(0,0,50,50,10);
I am new at flex and i have discovered spark method of button skin changing. I have not solve the problem of button corners. I just want that left and right side of buttons to be rounded like a half ellipse. Also I want that when I change the size of button the style of the button stayed as it is (left and right side of buttons are rounded like a circle at any size).
View 2 RepliesI have a bookmarklet that has rounded corners. When using the bookmarklet over the top of a flash website and even a pdf document (I think) etc. Rounded corners appear as transparent squares.
View 1 RepliesI am creating one new empty movieclip like this,this.createEmptyMovieClip("vjn", this.getNextHighestDepth());
vjn.beginFill(0x000066);
vjn.moveTo(150, 50);
vjn.lineTo(50, 250);
vjn.lineTo(250, 250);
vjn.lineTo(150, 50);
vjn.endFill();
these lines are creating only the square corner, but i want rounded corner. How can i increase or decrease the radius size. How to create the rounded corner through script.