I 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)
I have designed a cylinder shape in flash. The edges of cylinders are coming out and also they are looking blur. But the interesting thing is when I see the cylinder on 300% it is clear and lines are not blurred.
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.
I am looking for some help on a specific effect. I was pretty good in the old days in flash but I have fallen behind badly and the new action script and such is making my head spin a bit. The effect I am looking to do is like the FETblur,first one on the page, [URL]...
I want to apply a motion blur to the rotation of a movie clip. I am currently rotating the movie clip 540 degrees via actionscript using the tween class below: Code: import mx.transitions.Tween; import mx.transitions.easing.*; var targetRotate:Tween = new Tween(_root.target_mc, "_rotation", Regular.easeInOut, 0, 540, 3, true); [Code] ..... This seems to be a good start, but I need to change it to apply to the _rotation of my movie clip. Lets say for the sake of argument, my movie clip has an instance name of target_mc as well.
I am creating one movieclip function to use filter inside it. Scenario is I have alert_win (movieClip to show alerts). By default I disable its visibility and then call on some function. Now everything works fine except one thing. I want to draw blur effect on loaded background under that movie clip "alert_win". How can I blur the whole stage except loaded movieclip? Also "alert_win" movieClip is dragable. And on close button of that movie clip I am removing its visibility off.
Here is my code. _root.alert_win._visible = false; if(System.capabilities.screenResolutionX > 1024){ import flash.filters.*; var dropShadowropShadowFilter = new DropShadowFilter(2, 45, 0x000000, 0.3, 3, 3, 1, 10); _root.alert_win.filters = [dropShadow]; [Code] .....
I am trying to animate a navigation menu so that when you roll over an item (say "Contact Us"), it moves up a bit, and the rest of the items blur.
I allllmost have it working but there is one piece of code that is no longer working (blurTween.onMotionChanged) since I put it into a for each loop in order to go through the array and apply the blur filter to each item.
I 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?
I 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.
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].
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.
I 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.
I've searched every possible actionscript forum for this and i cant seem to find it. How can i create an "area" of blur which blurs everything beneath it?Like some kind of masked blur effekt?
I 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?
I'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?
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?
Flash 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
I'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.
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).
Long 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.
In 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.
I 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.
I 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:
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?