Professional :: Round Corners Of The Stage?
Mar 11, 2011Is it possible to round the corners of a flash stage, so that when I insert the SWF into dreamweaver, it inserts more of an oval instead of a rectangle?
View 2 RepliesIs it possible to round the corners of a flash stage, so that when I insert the SWF into dreamweaver, it inserts more of an oval instead of a rectangle?
View 2 RepliesI'm using Flash builder, with flex 4 sdk, I'm trying to create a DateField in which the TextInput component has rounded corners, this is my code, for some reason it doesn't work, anyone knows why?
[Code]...
I want to keep DataGrid and AdvancedDataGrid corners round by some px amount, like other components. What is the proper way to achieve it?
View 1 RepliesI want to round specific corners of buttons to create something like mx.controls.ButtonBar. But I cannot figure out how ButtonBar does this even after looking at its source. I thought the focusRoundedCorners css property was the answer but that applies only to drawing the button's focus box.
View 1 RepliesMy idea was to 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{
if(roundTopLeft){
canvas.graphics.moveTo(startX,(startY+radius));
[Code] .....
Then compare
HTML Code:
var canvas:Sprite = new Sprite;
drawComplexRoundedRect(0,0,200,200,25,canvas,true,true,true,true);
with
HTML Code:
var canvas:Sprite = new Sprite;
canvas.drawRoundRect(0,0,200,200,25);
and you will see the two rectangles are not identical.
i im using the text input component in flash as2,but i need text input with round corners, is there a script that can do it? or somthing?
View 1 Repliesi have a big set for a new animation im doing but i only want to view one part of it at once and have some sort of camera panning effect going round my stage. is there a plug in or somthing for this. i have looked everywere. I know it can be done as i have seen it before
View 1 RepliesI created a square using the rectangle tool, there are a few options on how to change it in the properties panel, however I don't see anything allowing to to round the corners of it. How do I do that? (I'm using Adobe Flash CS4 by the way.
View 2 Replieshow do you round a number to 4 digits... so 3.45356345345 is 3.456 and 1 is 1.000
View 5 RepliesI am trying to add an eventlistener to the stage to respond to a resizing. When doing so i want to keep the relative position of a movieclip-object constant to the upper and leftmost edges, without changing the alignmode of the stage to top left. This can be achieved as shown below - examplified with two classes and reference to fla implied. The problem is now: When supplying the crucial statements with a Math.round, the movieclip-object gets displaced pixelwise with each new resizing:
myMovieClip.x -= Math.round((deltaX / 2));
myMovieClip.y -= Math.round((deltaY / 2));
Whereas the solution without Math.round is rock stable so it doesn't move at all, as it is not supposed to either! Can anyone figure out why? I know it's a luxury-problem, as my use case is solved. The problem is that i don't know why? Shouldn't the use of Math.round just assure the int-value? Such a small issue could easily spoil the whole app! And i fear that i have misunderstood something fundamental in as3, and suddenly become unpleasantly surprised.
[Code]...
I have seen people complain about this, but no work arounds. The blurry eddges I see on the rounded portion of round rectangles is awful. IS there a workaround?
View 5 RepliesI want to make a simple animation with some photos. But I'd like to create this in a circle shaped workspace (stage), so when I export the movie as a .swf it will be shown as a round document, instead of the basic rectangle.
View 1 Repliesim following some suggestions to cut my flash website into a few sections to make preloading a bit easier.
so all i want is to make a small round ring rotate as long as the file is loading. so i looked and followed a lot tutorials but all the preloaders tutorials are much more compliceted then i need. they all have persentige sowing, and a bar that is filling according to how much the file has loaded, and colors changing etc. so i tried to take from the tutorials wat i need for my simple preloader to work but i get stuck.i built the animation of the rotating ring, but i get stuck with the actions i need to make the animation work as long as the file is working. i called my ring animation "circularloader". here is a image of the page with the ring:
It's easy to draw a round cornered rectangle/square but how do you draw a triangle with rounded corners?
View 4 RepliesUsing CSS, I can set the corner radius of the top corners of a tab in a tabnavigator:
<mx:Style>
.tabstyle {
corner-radius: 10;
} </mx:Style>
<mx:TabNavigator tabStyleName="tabstyle" />
However, I also want the bottom corners to have a radius.
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 RepliesI'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.
I am working on a draggable triangle in AS3 and the corners must be interactive. To each corner a bitmap will be attached (in my example for now it's just a name of a city). When dragging a specific corner, the bitmap/cityname (attached to it) should fade in from 0 to 100 alpha. If the bitmap/cityname won't reach 100 of alpha, when Mouse Up, then it should fade back out to 0 opacity. If it does reach 100 alpha when Mouse Up, then it should stay that way. However, if another corner is dragged, then the cityname which is currently at 100 opacity should fade out again. Well I've got the draggable triangle figured, I've got the corners citynames appearing and disappearing when they don't reach 100 alpha. What I can't get to figure out is the last bit - the cityname currently at 100 opacity fading back out to 0 when a different corner is dragged. Hope it's at least a little understandable. I'm not sure my code is perfect (this is my first time in AS3) so don't mind if something is not the way.[code]
View 3 Repliesi'm in the middle of attempting to write my own collision detection algorithm because the built in 'hitTestObject' function seems to be incredibly inaccurate (it's registering 'hits' when the objects are still a considerable distance from each other).I need to be able to calculate the position of each of the 4 corners of a rectangle, based on its rotation. Obviously one of the corners will simply be the rectangle's x and y coordinates. I have made a little test program to make sure I am calculating the positions of the corners accurately - it works when the rectangle is rotated to 0, 90, 180 and 270 degrees, but produces strange results for any other angles.[code]
View 7 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 RepliesI'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:
I rotating some bitmap data in AS3. When ever I start rotating the bitmap the corners get cut off. I'm trying figure out what size the bitmap should be to fit the newly rotated bitmap.
[Code]...
I 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 RepliesIs there a simple way to draw a triangle with rounded corners in AS3?
View 1 RepliesDraw a Triangle with rounded corners?
View 2 Repliesis it possible to draw a rectangle specifying which corners should be rounded and which not in a simple manner?
View 3 RepliesI was wondering how to use the container .swf required by Flash Satay to also display rounded corners of a fixed size.
View 1 Replies