ActionScript 3.0 :: Keep The Same Rounded Corner Even When Want To Shrink It's Width?
May 8, 2010How to keep the same rounded corner even when I want to shrink it's width?
View 2 RepliesHow to keep the same rounded corner even when I want to shrink it's width?
View 2 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 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 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 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.
I am creating one new empty movieclip like this,
[code]...
these lines are creating only the square corner, but i want rounded corner. How can i increase or decrease the radius size. If its possible please mention the problem.How to create the rounded corner through script. I want rounded corners not a square corner......
I'm working with Flex 3.4 SDK.
I'm trying to programmatically(yep, must be this way) style/skin a VBox so that its top right corner is rounded, and it gets a two colors gradient brackground.
Modifying examples I found around I was able to accomplish both effects(corner and background) but only separately:
VBox with not all rounded corners: [URL]
VBox with gradient background: [URL]
But what I need to do is to apply both at the same time. And all my coding attempts so far have failed silently.
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.
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]....
I am facing a wiered problem in Flex. I Have a canvas with a HBox and Label. Please find the code below.
<mx:VBox verticalAlign="top" horizontalAlign="center"
fontSize="12" fontWeight="normal" verticalGap="0">
<mx:Label text="Cover" />
<mx:Canvas width="120" styleName="pbcontainer">
<mx:HBox id="pb" height="35" />
[Code]...
I am facing a wiered problem in Flex. I Have a canvas with a HBox and Label. Please find the code below.
<mx:VBox verticalAlign="top" horizontalAlign="center"
fontSize="12" fontWeight="normal" verticalGap="0">
<mx:Label text="Cover" />
[code]......
I have a button that inserts an mc on the screen every time it is pushed. So say I push it 3 times, the 3rd mc will shrink to be like 1 pixel wide when I use a key press that is in another mc, and I don't have the key press shrinking it.
View 1 RepliesWhat code can I use to shrink a piece of text in a dynamic text field to fit within a certain height and width.
View 1 RepliesI am making something flash flip like: [URL] but i want to do it in my banner 1000 width and 299 height problem is that i have few banner images i think 5 to 8 and i want to start my flip from "bottom-left" corner till "top-right"
View 1 RepliesI am trying to shrink the size of my .swf. I have done all I can think of off the top of my head, but it is still too big.
Is there a way to tell what the size of library objects are and/or a way to identify which parts of your .fla are adding to the size of your .swf.
Is there a program that will shrink down my 6,500k Flash file? I created the movie frame to frame but there is a pause when you first enter the website. [URL]
View 3 RepliesTo size a rectangle I use the following actionscript:
Code:
function sizeRectangle() {
rectangle.onEnterFrame = function() {
with (rectangle) {[code]...
It all works fine.When a certain button is pressed it needs to size itself to zero again.This is easy to do by altering "w=(Stage.width);" to "w=0;". What happends is that it will shrink from right to left. But how do i code this when I want the rectangle to shrink from left to right?
I am trying to make an interactive slideshow. I have nine pictures thumbnail size and I want it so that when you click on one of them they will grow, then when you click again it will shrink.
View 3 RepliesI am trying to create a zoom effect on my buttons "home - about - contact" so that when you rollver "home" that button gets bigger and the "about & contact" buttons move to compensate the size increase and the same for the other two buttons.
View 1 RepliesI have a grid of many 10x10 pixel squares separated only by a pixel line. When the user rolls over the sprite, it grows, animating to about 4 times its size--to around 40x40 pixels. The sprite stays large while the mouse is over the sprite, but if the user wants to rollover the neighboring sprite it is obscured by this sprite and its larger size.
Is it possible to shrink the size of the hit area so that even though the sprite grows in size the mouse can still access or trigger the neighboring sprites underneath--to the right, left, top, bottom? I thought about using Mouse_move, but wasn't sure if that would fire off too many events.
I read the following posts. However, my hitArea needs to be the same size or just slightly larger than the original 10x10 pixel sprite. I've had little success. [code]...
In AS2 I have a full browser flash setup with some centered movieClips.I only want them to shrink (proportionally) IF the browser window is 1024x768 or less.How do I code that into my listener?
View 4 RepliesI have a final published movie of 1024x768 it is pretty much all set.BUT when I look at it on some laptops it is just too big and looks awful.I would love to "SHRINK" it and all of its contents proportionally with out going in and reducing each and every MC and asset within the Source file.Is this easily achievable?I am using SWFobject to embed the swf.
View 2 RepliesI'm going to have a row of images all of which will need to enlarge when you mouse over. the images surrounding the enlarged image will need to shirk when it enlarges. So I have multiple images that need to shrink and grow depending one which image is moused over.
View 7 RepliesHow can i shrink the following code, so that I dont need to write a function for each single button?
Code:
_root.project1.onPress = function()
{
projects_counter = 0;
move();
[code]...
When i am calling the url [URL] in my Android app webview.
Whenever i tap on textbox the layout get shrink while it didn't shrink on default browser. and keyboard popup on top of browser.
How can i message to keyboard to popup on top of browser or browser should not shrink itself?
I have Flash 8. I created a Flash movie a number of years ago, probably in an early version of Flash. I use it on my website. I want to redesign my site and make the movie smaller from the standpoint of making the canvas/stage size smaller. I don't mean just compressing the flash movie to a smaller swf. Is there some quick way to do this without having to recreate the movie and put in smaller elements?
View 3 RepliesI've been trying to have all of the movieclips on stage grow bigger when the mouse rolls over them, then shrink back to normal size on roll out. I have that working, but it seems that my mouse detection is sometimes too sensitive.I say that because sometimes my movieclip will alternate rapidly between rollout and rollover, usually when I place my cursor near the edge of a movie clip.I've tried only adding the rollout event after the tween finishes, but by then the user could have moved their mouse off the movieclip, and no rollout event fires. I was wondering if anyone knows of another way to manage a rollover grow effect without the stutter.[code]
View 2 RepliesI'm trying to make a circle grow and then shrink back to it's original size, it will grow if I remove all of the shrink function
Code: Select allimport flash.display.MovieClip;
import fl.transitions.Tween;
import fl.motion.Tweenables;
import fl.transitions.easing.Strong;
import fl.transitions.easing.None;
import fl.transitions.TweenEvent;
[Code] .....
i'm an AS2 novice but I wanted to write a class that when you rollover a button it would grow and the others would shrink! At this point it's only missing the other buttons to shrink cause I have no Idea on how to refer them in the code!
[Code]...
I'm using the "loadMovie" method and according to the using flash manual.. it's supposed to import a swf and resize it to the size of the movieclip it's replacing... only here's the problem.. I cant get it to shrink the incoming swf to the size of the clip calling the method... it keeps importing the swf at full size..
View 1 Replies