ActionScript 2.0 :: Flash Satay .swf Rounded Corners?
Jun 12, 2010I was wondering how to use the container .swf required by Flash Satay to also display rounded corners of a fixed size.
View 1 RepliesI was wondering how to use the container .swf required by Flash Satay to also display rounded corners of a fixed size.
View 1 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 RepliesIt's easy to draw a round cornered rectangle/square but how do you draw a triangle with rounded corners?
View 4 RepliesWhen 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'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 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 have been tasked to create a rollover state that has dynamic irregular shapes that surround the movieclip target. The target is always a rectangle and the shapes will look roughly like:I think i will have to draw this old school without using the easy predfined shape classes. I first thought about doing two rounded rectangles to fake it, but the line cross over (pointing green arrow) will overlap. Anyone have ideas on how to approach this? If i go with the drawing api, is there a formula to working out the rounded curveTo angles on the corners to always be the same radius?
View 2 RepliesI'm trying to create an HBox in flex that has only the top corners rounded. HBox (and all the other flex containers) have a cornerRadius style, but it applies to all corners. I'm not seeing a way to specify the style of individual corners.
Is there any built-in way to do this, or will I need to write my own custom drawing code to draw the background with rounded corners?
In 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.
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.
I wanted to change the background color of my Panel title area and I discovered that I needed to create custom skin or skin extender to accomplish this. So I created a skin called myPanelSkin based upon the Spark.PanelSkin. My background color works fine but it will no longer show the cornerRadius defined either on the component or in a styleI then tried another approach and simply created a new skin as an exact copy of the Spark.PanelSkin. It also looses the cornerRadius.
View 2 RepliesI am trying to scale9grid a button to preserve its rounded corners when resizing but I have run into trouble.The button is an ordinary Button symbol and it has 4 layered states (Up, Down, Over, Hit).In each layer there are some shapes (the outer button border, two background shapes inside the button for shading and then some extra outer border shapes to create the pressed down effect). The button contains no other elements,not even a textfield (the textfield is on the same level as the button).
The button is inside a movieclip (which also carries the textfield) that is of the same size as the button and is resized as by Adobe design when the button is resized (i.e. I am never manipulating its size).The Button is 35 high and the textfield is 25 high. They have their registration points both centered and placed at the the same coordinate.I use the follow code to resize and scale9grid the button:
popup.btnLoginButton.width = popup.btnLoginText.width + 20;
popup.btnLoginButton.scale9Grid = new Rectangle(10, 5, popup.btnLoginText.width, 15);
The above scale9Grid throws a Error #2004: One of the parameters is invalid.The same error occurs unless the Rectangle parameters are very small - for example Rectangle(5, 5, 5, 5) even though the textfield is much longer. But when the Rectangle is that small of course no scale9grid scaling is taking place.
I have a photo in a Flex project[code]...
But now I'm wondering if I can make this image as the image below, in Flex (4 / 4.5 / 4.6) (in MXML and/or ActionScript 3)
i have to embed my flash file in my html using satay code since my html has to be xhtml compliant. my problem is when i try to embed 2 different movies on the same page, the first movie loads in both containers. does anyone know how to fix this or if there is another xhtml compliant way to embedding flash?
View 3 RepliesI have a strange dilemn and the 3D feature in Flash CS4 seem to be the most obvious connection to the problem. I have a page with 2 different swf files ( both under 50KB), which use the satay method. One works perfectly, and the other struggles to work. The pixels are magnified, the 3D animation scales incorrectly, and moves very slowly. Eventually the browser crashes and the whole operation goes down.
[Code]...
How 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
how this site: [URL] :was able to have the four corner elements know to always bounce themselves to the corners of the browser window or full screen. I've been able to do something similar on load, but not dynamically, resizing in real time. I have a client site I'm designing in which this functionality would be quite excellent, but can't seem to figure it out. I'm assuming this is being done in AS2, not AS3, because the html code is only calling the Flash 8 plug-in.
View 8 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 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 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 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]...
Using 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.