ActionScript 3.0 :: Realize Mask Edge Transparence?
Nov 30, 2010I use Loader to load a picture,such as 1.jpg ,
_p1=new Pic("1.jpg");
Then I draw a circle as _p1 mask,such as _c
_c=new Sprite();
[code].....
I use Loader to load a picture,such as 1.jpg ,
_p1=new Pic("1.jpg");
Then I draw a circle as _p1 mask,such as _c
_c=new Sprite();
[code].....
how do i create a feathered edge on a mask?
View 13 RepliesI was wondering if it is possible to have a mask applied through the setMask(); and have 2 out of the 4 edges blurred. That way you can can get kind of a soft wipe transition.
View 9 RepliesI need to realize textbox autoresizing in actionscript3(IDE - adobe flash pro cs3). For example my textarea is in width 100 px, user has been wrote in it something, that is bigger than 100 px, then my textbox should become increasingly.Also I can't realize multiline option: when the text goes beyond the textbox, it starts to scroll. In line type I've chosen 'multiline'.
View 3 RepliesI would like to realize a animation of two pctures fading in and out with each other made with actionscript (not with motion tween)
View 5 RepliesI would like to realize a animation of two pctures fading in and out with eachother made with actionscript (not with motion tween)
View 5 RepliesI have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:
[Code]...
what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.
All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).
maybe point me towards a better way to mask. png file is way too big. I have been using the mask layer option to create my own mask around a jpg image by drawing around it on the mask layer. There has to be a fetter and faster way to do this. Is it possible to maybe have a specific color range have an alpha value of 0. Similar to green screening whereas If I put the item I want to clip on a green background flash will auto take out the green for me. and by auto I mean action script maybe. I think this can be done but im not finding it.
how are these guys clipping these images [URL] they have the movie clips set up where the black background on the 3 layers of shoes is getting masked out. When I go into the shoe movie clips I see there is a black background but it just disappears when I go back to main timeline.
ive gotten one movie clip to mask another in the actions frame but i cant seem to be able to mask the flames which are a shape with a movieclip in this as file. im not getting any errors but the mask isnt covering anything look near the bottom at s.mask=mask_mc; there are about 20 "s" shapes spawning per second if that has anything to do with it
Code:
//this package turns an mc into a flaming button that calls a javascript function
package
{
import flash.display.MovieClip;
[Code].....
I was wondering if its possible to mask multiple MC or Sprites under one mask, when using AS3.abc.mask = a;cba.mask = a;something like that
View 2 RepliesI'm trying to move movieclip Ball along the borders of movieclip Ground. You would move the Ball with the arrow keys which would increase and decrease its x value, but the y value will always be equal to the top edge of the Ground movieclip.
To do this I need to find the y value of the points on the edges of movieclip Ground. How is this possible?This is what the Ground MovieClip would look like. It is an irregular shape. What I want is for any x point a y point at the top edge of this shape.
I have written, based on some internet tutorials, a simple header for my website to display a slide show of images. I have set my animation dimensions to 845x295, the same as each of my images. The DIV tag I then embed this into is set to the same dimensions but when the animation runs I get a white border down the right and across the bottom.
View 1 RepliesUsing Voetsjoeba's golden formula, I've made some panels that ease into place. But why can't they start at 0,0? It seems I have to start the panels from the middle of the stage or else they drift off the edge, even with x and y specified in the code.
View 8 RepliesI am having problem with the text tool on flash version 8 the problem is that I am seen some blur letters when I preview my swf on explorer using dreamweaver version 8. I trying to find out what could cause the blurring the properties of the text is arial size 10 and verdana size 10. For example the period on the small i in some words look different.
View 3 Repliesmovieclips in flash have a Rectalge Zone . if we have a Circle shape and covert to movieclip , have a Rectagle Area.with empty area.
i want terminate this area when az drag any moveclip on my target movieclip. when i use hitTestObject do now work good.
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?
Or what if they draw it so the left edge is at 56px and the right edge at 583?
Essentially, I want to determine the center of my artwork, wherever it is relative to the center of the MC
I have a tooltip that follows the mouse, but i need to to figure out where the edges of the screen are and always keep the tootip on the screen. Its something to do with screen width and height.
View 3 RepliesIm working on a system that loads text from an external source and scrolls the information across the screen. I've figured that part out but what I need to know how to do is get the loaded elements(which are textboxes in movie clips) to align to the right of each other respectively when loaded since they all will have different widths based on how much text is in there.
Example: [Loaded movie clip with text here number 1][Loaded movie clip with text here number 2][Loaded movie clip with text here number 3]
I'm creating a navigation bar for a website, and the client wants a little car to roll back and forth as you mouse over the buttons. Ok, that's easy enough, I say to myself, but I've run into a hitch.
When the page loads, (before you mouse over anything) the little car is sitting half off the stage, that is, only half the car is visible. I fixed that by putting the car symbol's registration point along the left side, but then the car's left edge is whats following the mouse. I need the cars center to be whats following the mouse, but at the same time, not be able to slide off the screen.[code]...
I'm trying to draw a line from a point, in a direction to whichever edge of the window it hits first.
I've really only come up with the most brute force solutions to this problem (getting the vector, finding intersections with the all edges, choosing the shortest) but I can't help but feel that some much more elegant solution is JUST out of my vision.
A followup:
This one is a similar problem in that I know there's got to be a really nice solution hanging out on the web somewhere that I haven't found, yet.
If I have a series of points along multiple edges of the window (up to all four) how can I sequence them to be connected to each other, and any window corners along the way?
In other words, let's say I have a series of points (generated at runtime, so without any order) along 2 edges of the screen and I want to draw the triangle that they make up. How can I connect them in order (so as not to get any of that ugly intersecting polygon nonsense) AND include the corner?
This one I really have very little insight on. The best I've managed is picking a point at the center of the stage and comparing the angles formed when drawing lines to each point. It's ugly, and requires that one find the largest angle between two of those vectors, first (making two passes necessary). It even breaks when the points extend to three sides as the largest angle is not always between the two outside vectors.
I am having a multi user application running in FMS. I need to cluster them using Edge/Origin with Origin failover.I went thru, http:[url]......My questions are,1) which software load balancer can I use? Is there possiblitiy of configuring the fms server to be reverse proxy.http:[url].... in the below link its mentioned that we can configure edges in 4 ways.Client auto discovery proxyServer auto discover (reverse proxy)Explicit URIImplicit URI (recommended)what configs do I need to do.I was successfut only Explicit URI way by configuring the Vhost.xml. How would I do for others?
View 1 RepliesQuestion basically is that, on server side it needs to pull an RTMPE stream coming out of an origin server. tried a demo setup but could not get it working. is this feature supported in 3.5?
View 3 RepliesI'm having a very basic problem, im trying to do a slow zoom/scale of an image (jpg), in this case its a company logo. the problem im having, as you'll see is that this causes edge effects, they are shakey/aliased.almost looks like some sort of antialiasing is required.
View 3 RepliesWhat im seeing is an odd white outlining around the edge of my sprite:Its really odd, the outline only becomes visible after applying my ColorMatrixFilter. There is no outline on the asset itself.[code] I have uploaded a small sample project here: URL...
View 3 RepliesI would like to know when this feature will be available. As well as rtmpe between FMLE and Origin.
View 1 RepliesIs it possible to use origin/edge setup when streaming using HDS ? I have succesfully tested using RTMP but when I try the HDS string - get error "we are having problems with playback". I can view the stream directly if I connect to the origin server. I have 1x origin server and 1x edge server.
View 2 RepliesI have a Flex3 LineChart component using an CircleItemRenderer and the datapoints are being cut off because they are too close to the edge. Here's what it looks like: [URL] As you can see, the circles on the left and right sides are being cut off. How can I make the LineSeries area, plus the horizontal labels, narrower so it fits in the chart area?
View 6 RepliesI use CollabNet's Subversion Edge to manage a repository for a PHP/ActionScript based project I am building in the Eclipse IDE. In my project's root folder, Eclipse included several configuration files that aren't directly related to the project. How can I set up my repository to ignore these files/folders via CollabNet? Would it be through the "Repository Access Rules"?
View 1 Repliesmy stage is set at 500x400 in flash cs4. I created a rectangle for the background and set the same size as my stage that covers the whole stage but I noticed when I hit ctrl+enter to test the movie clip, it initially looks fine but when I expand the window large, you can see white area all around.
View 3 Replies