Flash :: Draw A Rectangle Is Automatically Applying A Corner Radius?

Apr 23, 2010

Im probably overlooking something simple, but when I try to draw a rectangle Flash is automatically applying a corner radius.  I've tried resetting the options in the Properties Inspector, which resets to the default, but soon as a draw a shape it goes right back to a random radius. 

View 4 Replies


Similar Posts:


Flex - Corner Radius For Hover Rectangle?

Nov 8, 2011

How can I set something like corner radius for the default rectangle which appears when an item is hovered?

View 2 Replies

Flash :: Keep Round Rectangle's Radius When Scaling?

Mar 25, 2012

I want to scale my round rectangle and keep it's radius from been changed. How can I do that?

I am exporting SWF to flex and drawing it there. Do not scaling it in run time, just need few sets of scales.

View 1 Replies

Lines With Corner Radius

Mar 10, 2012

I am wondering about making lines with a corner radius. It seems that the smaller the scale, the corners sort of distort, and end up looking jaggy. Maybe its just the way it is, but is there any remedy? I tried shifting the registration points, etc, but still the only way it looks smooth is when enlarged.

View 2 Replies

Css :: Corner Radius Applied Only To Specific Corners?

Oct 5, 2010

I've this tabs that I wanted to make rounded only on top-right and top-left corners. But it ended up rounding all 4 corners.

What I did:

<mx:TabNavigator id="myTabNav" x="58" y="61" width="584" height="200" creationComplete="setColors(event)" styleName="myTabStyle">
<pages:One label="ThisOne" id="one" name="One"/>

[Code].....

As you can see I have the "focusRoundedCorners" to point to top-right and top-left but no luck. What I got is:

View 2 Replies

Flex :: Apply Gradient And Corner Radius?

Jun 8, 2009

I would like to know how to apply gradient and corner radius in flex. Is css the only way? I mean I want to use more of flex properties to make this happen give a sample class or code for it?

View 1 Replies

ActionScript 3.0 :: Set Corner Radius In Programmatic Skin

Jun 10, 2010

I created a skin to show on Button mousedown.I want to give corner raduis and border thickness also as skin attributes because I gave them to the button in the normal way but they are not working on mousedown when I chose to give skin on it.[code]

View 1 Replies

Css :: Properly Set Corner-radius Of A MX List And Get Rounded Corners?

Apr 8, 2011

I have a mx.components.List component with a bunch of custom styles:

<mx:Style>
.dropDownListStyle
{

[code]....

I'm creating the list in AS:

_dropDown = new List();
...
_dropDown.styleName = "dropDownListStyle";

The List is then added as a popup with PopUpManager:

PopUpManager.addPopUp( _dropDown, this );

The problem is that the corners of the newly created popup are not rounded. I found that border-style is needed in order to get the effect, but adding this property didn't help. I'm building the project with Flex 4.1, but the List and its parent are MX components and it's a lot of work to migrate them to Spark.

View 2 Replies

Set A Corner Radius On A Spark List Flex 4 Air Mobile?

Jun 1, 2011

I'm creating a spark list in my flex mobile application and i want to do like a list on the iphone with a corner radius Unfortunately there is no cornerRadius or simply radius in list styles.

[Code]...

View 1 Replies

Flex :: How To Have Corner Radius On Text Input Component

Jun 1, 2011

How do I get corner radius on my TextInput component in Flex 4.
<s:TextInput prompt="username" width="150" maxChars="100" id="txt_username" color="#000000"/>

View 1 Replies

ActionScript 1/2 :: Increase The Radius Of The Circle By Applying Tween Class?

Aug 18, 2009

I am created a circle using the following script,

[CODE]...

Now what i want to know is that can I increase the radius of the circle by applying tween class?

View 5 Replies

As3 :: Flash - Draw A Only Bottom Rounded Corner?

Feb 16, 2011

how 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);

View 3 Replies

Draw Rectangle Should See Little Bold Circle To Indicate A Perfect Rectangle

May 20, 2009

I draw a rectangle i should see a little bold circle to indicate a perfect rectangle, I seemed to lost mine, can somebody please tell me how to get it back!

View 2 Replies

ActionScript 3.0 :: Draw A Line That Is A Radius Of A Circle?

Apr 23, 2010

I want to draw a circle on the scrren of a random x,y position and a random radius. Then, I would like to draw a line that starts at the center of the circle and ends at the spot where the circle ends, at its perimeter. All I have been capable of doing by myself was creating that circle and set the drawing position with the moveTo function to its center, but I don't know how to calculate the length of the radius, so I have the coordinates for the lineTo function.

View 7 Replies

ActionScript 2.0 :: When Draw Boxes In Flash The Bottom Right Hand Corner Pixel Is Missing

Dec 5, 2003

sometimes when I draw boxes in flash the bottom right hand corner pixel is missing.

View 3 Replies

ActionScript 3.0 :: Rounded Rectangle With Conditional Corner Rounding?

Aug 28, 2009

create a method for drawing rectangle with rounded corners, but while being able to specify which of the four corners (any, all, none,etc.) you wanted to round.The method below does the trick, but for some reason my corners don't match the same curves that I get using the same radius with drawRoundRect().

In other words, if I call my method (and set all four corners to be rounded) and compare that with the same call to drawRoundRect() the actual curves of the corners are slightly different.

HTML Code:
public function drawComplexRoundedRect(startX:int,startY:int,rectWidth:int,rectHeight:int,radius:int,canvas:Sprite,roundTopLeft:Boolean=false,roundTopRight:Boolean=false,roundBottomLeft:Boolean=false,roundBottomRight:Boolean=false):void{

[code]....

View 3 Replies

Cannot Draw A Transparent Rectangle In Flash CS4

Sep 18, 2009

In Flash CS4, when I draw a rectangle (or circle, or anything) with a color that has 0 alpha, nothing is drawn. Also, if I select a piece of drawing and change the color to 0 alpha, the drawing (e.g. rectangle) disappears!I know I can draw a non-transparent rectangle, convert it to movie clip and set the movie clip's alpha to 0, but I'd like to avoid this.

View 5 Replies

ActionScript 2.0 :: Draw Rectangle Within Flash Movie By Clicking

Oct 10, 2005

I want to be able to draw a rectangle within my flash movie by clicking one point and dragging the cursor to another.

View 3 Replies

Actionscript 3 :: Applying Rotation Of Sprite To StartDrag()'s Rectangle Bounds

Apr 13, 2010

from my main class i call to create a sprite and add it to the stage

private function addSwatch(evt:MouseEvent):void
{
if (stage.getObjectsUnderPoint(mousePoint()).length == 0)
{

[Code]....

View 1 Replies

Actionscript :: Draw A Line From One Corner Of Stage To Other?

Apr 14, 2010

I want is to draw a line from one corner to the other.[code]...

View 2 Replies

Actionscript 3 :: Draw Boxes At Each Corner Of MovieClip?

Oct 15, 2010

I am trying to draw 4 boxes at each corner of the MovieClips but can not figure out how to detect the top right corner, bottom left and bottom right corner.[code]....

View 2 Replies

ActionScript 2.0 :: Draw A Triangle With Angle Arc At Corner?

Sep 2, 2009

I'm new to actionscript 2.0.I want to draw a triangle with an arc showing the angle of the triangle at each corners.I need this in actionscript 2.0.

View 3 Replies

Actionscript :: Draw Rectangle In Flex 4.5.1?

Sep 20, 2011

[code]...

Basically this is not working. I used this question to improve - still nothing.Why doesn't this Flex App draw a simple rectangle?

View 1 Replies

ActionScript 2.0 :: Auto-draw A Rectangle [FMX]?

Aug 26, 2005

i don't know if i'm posting at the right topic but i would like to know if anyone can tell me how to auto draw a rectangle around an image? for example, the image loads and is static then a rectangle is drawn around the image starting from the top left corner and goes around the rectangle back to the start of the image.

View 14 Replies

ActionScript 3.0 :: Draw Rectangle With Mouse Drag?

Jul 27, 2008

I Created an action script code when the mouse Down and Drag I taks the X,Y postion in the first and when the mouse is Up it take the Final X, Final Y and Draw Rectangle

I need to Show the User the Rectangle with the mouse Motion (like when you draw in photoshop ) But in my Code the the Rectangle appears when the mouse up

I attached The Code to the msg

View 3 Replies

Flex :: Why Doesn't App Draw A Simple Rectangle

May 6, 2011

the code is straightforward and my Intention should be clear. Still i can get this to work:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

ActionScript 2.0 :: Draw A Filled Rectangle With No Border?

Mar 25, 2006

I'm trying to draw a filled rectangle with no border. Here's the code for my test project:

ActionScript Code:
myMC = this.createEmptyMovieClip("", this.getNexthighestDepth()-1);
myMC._x = 0;

[Code].....

If you take a look at the coordinates, this was suppose to draw a 180x22. Well, it looks lika it draws a 180x22 rectangle, but only if the zoom is at 100%. If I zoom in on the flash player, there are two problems:

1) the line, as it is scaled, goes over the shape edge. Basically, as the border line has 1 pixel, Flash starts do draw it half pixel up and half pixel left; 2) the rectangle is in fact a 179x21 pixels, instead of the 180x22.

I'm sending an example project on an attachment. In this example I have 2 vertical rectangles which act as buttons:

1) the first button draws the rectangle step-by-step;
2) the second button cycles through 3 different styles:
2.1) line with 1 pixel, normal border rescale. This is the style at start;
2.2) no line;
2.3) line with 1 pixel, no border rescale.

The background is a checker texture, with 1 pixel per square. This gives you a perfect look on how the line is drawn.

The drawing instructions are executed on the yellow movieclip, which serves as reference, considering that it has the desired dimensions (180x22). *

If you zoom a couple of times you'll be able to see the problems I'm experiencing.

All you have to do is to click the first vertical button several times to draw the lines, to press the second vertical button to reset the draw and to change the border style, and finally to look at the draw with some zoom in, in order to see it in detail.

So, what can I do in order to draw a perfect rectangle, meaning that the border will not go outside the shape (it would be nice that when the border is rescaled, it does it inside the boundaries of the shape) and the rectangle has right dimensions (why am I missing one pixel in each direction?).

* By the way, is there a way to draw in a movieclip using the lineTo in such a way that the drawing is on the topside instead of the bottomside? I had to make the yellow rectangle partially transparent in order to see my drawing.

View 9 Replies

ActionScript 3.0 :: Draw A Rectangle On The Stage With 40% Alpha?

Oct 5, 2009

How would I draw a rectangle on the stage with 40% alpha? using bitmaps, bitmapdata, and copypixels?

View 2 Replies

ActionScript 3.0 :: Application To Draw Rectangle On Stage?

Dec 8, 2009

I'm learning ActionScript 3.0 and I made a small app to draw rectangles on stage. Now I want to drag&drop them around. I want to be able to click on an object, without triggering the stage.addEventListener(MouseEvent.MOUSE_DOWN, clickEvent); but when I click on an object, it also triggers that event. How can I save the click on object from triggering that event on stage?

Here's the code:
Main.as
package {
import flash.display.Sprite;
import flash.events.*;
public class main extends Sprite {
var startX, startY, endX, endY: Number;
function main() {
[Code] .....

View 0 Replies

ActionScript 3.0 :: Draw A Rectangle With Dotted Line With It?

Jun 21, 2011

Is there a way to apply styling to the line of a rectangle that is drawn using AS3? So instead of the solid stroke, can I apply a dotted or a dashed one?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved