ActionScript 3.0 :: Cube With Round Edges?
Sep 24, 2009I 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 3 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 3 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 1 RepliesI 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 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 RepliesI have been trying to figure out a good strategy to perform a bitmap crop using Actionscript3. For example: I have a picture of a car and I want to crop out the car from the image alone and feather the edges so that they do not look jagged.
I am a flash noob and have only been using it for a couple of weeks. I've tried a couple of options and here is the last one that I have come up with it: I place red dots on stage that are draggable so that you can outline the object you want to crop and the dots are the bounds for a gradientFill that is used as the bitmap's mask. (I am using a radial gradient ... so the results are far from what I want, since the car is not an oval).
[Code]...
1) How can I fade just the edges of this custom-shaped fill outlined by the red dots?
2) I want to save the image out to a file once it's cropped. What strategy would be better for doing this using a BitmapFill or a GradientFill as a Mask (If it's possible with both)?
3) I may be using this strategy to crop faces later on.. anyone know of any good face detection APIs for as3? (also edge detection APIs)
Recently a client of mine decides he wanted rounded edges for his page vs. the typical square edges. This was after the initial design and at the point where it is almost complete.I told the client that in order to do this we would have to go to a full Flash web page meaning a full browser Flash page (everything is already flash).Now I told him that we could do this but because it was a new design and as you know that there is much involved in doing something like this i.e. all the paths will have to be changed because it will have to reside inside a mc etc.if there is an actual way to make the stage rounded only for future knowledge.I know I can make a round edge square or rectangle but it still has square edges at outer edge of the stage.
View 5 Replieshow do you round a number to 4 digits... so 3.45356345345 is 3.456 and 1 is 1.000
View 5 RepliesI didnt see a place in preferences to keep edges hidden. I have some text that has a dotted line around it. I can hide it with hide edges, but as soon as I select them and let go, the edges come back. maybe their not edges since theyre dotted. maybe its flash telling me somethings not set up correctly? anyone?
View 2 RepliesIs it possible to blur the edges of a movieClip, and only the edges? If I use the blur filter, It blurs the entire image, not just the edges.
Basically, I have a flv file within a movieClip, and I need the edges of the video to look feathered.
My file is going great but I would like it to only pan right or left when the mouse reaches close to the edge and stop while I am working within the middle area. Here is my panning code and the file can be viewed at [URL].
[Code]....
The transitions between sections is a bit harsh, I'd like to smooth it out some by fading from 1 color to the next or something.The captions don't sync up with the pictures the first time around until the pics are cached.When you click on the button of the section you are in, the slideshow stops.
View 5 RepliesI don't seem to be able to find the right wording to find my answer anywhere.How do I determine where an MC's center is relative to its edges?I'm developing a tool that a variety of noobs (as if I'm not still a noob) will be using, and I don't trust them to keep art with 0,0 being the top left corner.How do I figure out that the left edge is now at -111px, and the top at -52, and the right at 12, and the bottom at 334?
View 3 RepliesI've found using the 3D rotation tool to give rough/jaggy/pixelated edges to my vector clips, even after using:cache as bitmap"stage.quality = StageQuality.BEST;" in Document classIs there a way around this?
View 5 RepliesFlash has some serious problems with jagged edges on curved shapes. When adjusting a curve on a shape, flash shows that it is curved and then on releasing the mouse it turns into a sharp edge
View 1 RepliesI'm creating a shape in code based on some random points and then using it as a mask for an image. What I'm hoping to do is have the mask fade the image to transparent around the edges. I know I can do this using a gradient mask, the issue is how do I create a gradient on a shape that just fades out around the edges? The shape is not regular, so a radial or linear fill just won't cut it.
View 2 Replies[code]...
I want the map's movement to be constrained to the edges of the stage. Or in other words, if you move your mouse from the left edge of the stage to the right, you only just see the right edge map, whereas now, it dissappears off the other side of the stage.
I have recently started Learning Actionscript 3.0 out of my own interest. I was trying on making a ball bounce off the edges of the stage using the Actionscript 3.0. But the code not working. The Ball happens to move on X and Y, till it hits the end of the stage, and then it just does not reverse its direction to give the effect of bounce, it gets stuck to the X axis and moves out of the stage. I tried to make changes, but failed.
Code:
function bounceBall(evt:Event):void {
var vx:Number=Math.random()*10+5;
var vy:Number=Math.random()*10+5;
var radius:Number=mcBall.height/2;
var top:Number=0;
[Code] .....
way programmically in flash to detect the edges of imported artwork (artwork that has transparent background)? I am hoping to build something that detects the edges (or boundaries) of artwork and then place other objects around those boundaries. (so they dont touch too much or overlap).
View 4 RepliesLong time lurker who can't find an answer thatfits this specific problem. I apologize if it has been answered. In the pic below,notice the edges. They look great on the stage, but I can't get the rendered .swfto look the same.
View 1 RepliesIn my application i am having one input field and the text fields edges are connected,that means with in one ellipse[movie clip] the input field will appear,if i increase the width and height of the field then ellipse should be increase as per the size of input field.
View 1 RepliesI am making a slideshow background which adjusts to the width of the browser. However, whenever I resize the browser, the background color is visible for a moment along the edges. How can I get rid of this. I know that it is possible. If you look at the following site, the images resize perfectly:
[URL]
Can I put a blur on a dynamic mask to get faded edges like this:
Code:
var square:Sprite = new Sprite();
square.graphics.beginFill(0xFF0000);
square.graphics.drawRect(target.x, target.y, target.width+5,
[Code].....
I have a scrollbar that I want faded edges on the content mask. The content is all dynamic loaded from xml.
When I draw a perfectly rectangular sprite, where all the corners land on perfect integer locations, then there is no problem. However when my sprite as an irregular shape ( with diagonal lines ), or it does not land on perfect integer locations, then Flash does some kind of blending / smoothing around the edges. This is bad.
Here is an example:
ActionScript Code:
var s:Shape;
s= new Shape();
s.graphics.beginFill(0x0000ff, 1);
s.graphics.moveTo(0, 0);
[Code] .....
And here is an image of what the above produces:
From the code, I drew a green rectangle and blue one, both with a slight skew. So the only 2 colors I want to see are blue and green. But you can see from the image, that along the diagonal of the shapes, there is some kind of blending going on. Flash is using a light green, and a light blue in certain places. Presumably this makes things look better, but I need to prevent this. I need each pixel to be either green or blue or nothing (white). How can I stop Flash from blending the pixels like its doing?
Is there a way that during a browser resize and my symbol gets repositioned, it wont become blurry? As in perhaps a way so that it doesn't include the decimals in the new position/rounds up or down?
View 3 RepliesDoes anyone know how to make a random character (preferably easily defined as alpha or numeric or both) "code" effect in AS3? Here's some examples of what I'm looking for. roughly... [URL] (both of these examples are AS 1.0) I'm making a sort of "futuristic terminal interface" and want some random numbers / characters generated on the edges. I used to know how to do this before I switched to AS3.
View 2 RepliesIs it possible to get a 'feathered' mask in Flash CS4 where the edges of the mask gradually transition to 0 alpha? I tried to set this up by creating drawing a shape with the pen tool, turning into a movieclip, then filling the original outline with a white (or lime green) center to black on outside, with the outside fading to an alpha value of zero. When I apply this as a mask, however, the borders are completely sharp rather than the layer below being 'partially' masked.
View 2 RepliesI'm working on a project where I need to make a picture of a building fade darker on mouse over, while sections of the building get brighter. The sections rise up when you hover over them and will load a pdf when you click.
Everything works fine so far except that when the mouse goes over the edges of the buttons the background and the buttons fade back in and out again.
I only want them to fade out when the mouse leaves the stage.
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.MouseEvent;
[Code]....
I created an animation using the 3D rotation tool, but the quality, the rendering is very bad, rough jaggy pixelated edges. Is there any way to improve the quality.
View 3 RepliesI've dynamically drawn a gradient background on a little widget I've built (pulls in EPA/National Allergy Bureau climate data from a vendor, if you're curious), and I have applied an AS 2.0 drop shadow filter to the background. Standard stuff...except...
...I embedded the SWF using SWFObject and matching the dimensions of the widget stage exactly. And the left/right edges are cutting off. Are there any guidelines for using a background AS 2.0 drop shadow filter and accommodating the filter with the embed? It's a 10px (5px depth, 5px blur) 90-degree filter, and I left room on the stage for the 10px below the background. But the "edge" I expect to see on the embed isn't showing up.
Here's the filter code, BTW:
Code:
outlineShadow = new DropShadowFilter(5,90,0x000000,0.33,5,5,1,2,false,false,false);
In the guidelines I noticed the following requirement:
give unit the ability to detect browser edges, and to expand in the opposite direction if expanded portion will disappear off browser window.