ActionScript 3.0 :: Creating Alpha Mask MC?

Jan 28, 2009

I am running into trouble getting an alpha mask to work correctly in AS3. The mask itself seems to be working on the pixelated movieclip, but the alpha channel isn't appearing at all.

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Alpha Mask - Area Of The Loader Outside Of The Mask Will Visible When The Mouse Is Down

Sep 10, 2010

I 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]...

View 2 Replies

Alpha Mask Doesn't Work

Aug 19, 2009

I've used this code to apply a gradient alpha mask: bg_mc.cacheAsBitmap=true;mask_mc.cacheAsBitmap=true;bg_mc.setMask(mask_mc); Then I applied a motion tween to the mask_mc clip. But the motion tween doesn't happen? It only shows the first frame of the motion tween. It does apply the alpha mask though. Why doesn't it show the rest of the motion tween.

View 9 Replies

ActionScript 2.0 :: Alpha Mask Not Working?

Aug 19, 2009

I've tried to make an alpha mask using a photo and a mask containing a alpha gradient. Using this code:

ActionScript Code:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
maskee.setMask("maskMC");

But it's not working? The 'blob' mask in the center should motion tween bigger. I can see the alpha mask in action, but the motion tween doesn't do anything. The image is freezing.

View 6 Replies

Actionscript :: Flash - Grayscale And Alpha Mask?

Jul 9, 2011

I would like to make a mask that both converts any colors to grayscale and then reduces their alpha value. The intended purpose is for the masked region to be in grayscale and lighter so that the unmasked region is more prominent. Most tutorials I've seen for alpha value masks are far too complicated and use the Flash GUI. How do you accomplish the same thing in ActionScript?

If the following is my image:

Then a traditional mask over some selection would produce the following:Instead, those parts that are masked out completely, I would like for those to be converted to grayscale:And their alpha value decreased, so they're lightened:

View 1 Replies

ActionScript 2.0 :: Gray Scale To Alpha Mask?

Jul 18, 2006

Is there anyway to create an alpha mask out of a grayscale image in flash?i am using the color adjust filter to create a bleached out kind of image. I would like to make the white transparent.

View 1 Replies

ActionScript 3.0 :: Moment Of Brainfreeze - BitmapData With A Alpha Mask?

Mar 15, 2011

If my title ain't clear enough, I've got two bitmapData sheets with an image, one being the actual image, and the other image having the same structure, but all areas being visible are black, and all transparent areas being completely white. So far I've been playing around with:

[Code]....

View 5 Replies

Creating An Effect Using A Mask?

Sep 18, 2009

im trying to create a flash effect using a mask layer.i want to have a text box which is invisible, and throu the timeline small peices of a mask layer will move over the text box, revealing the text. My problem is this, if i create a mask layer with more than 1 object, when i try to move the objects (for example in different directions so the text will reveal from both sides) then i get a weird movement from the objects (like the sum of both movements i wanted) so i was think maybe a layer can contain only one moving object.So i just cant figure how can i get the effect i want.

View 4 Replies

ActionScript 3.0 :: Creating A Border Around Mask?

Feb 11, 2010

I want to create a border around my mask. When I try to add a lineStyle to my code I get an error:1061: Call to a possibly undefined method lineStyle through a reference with static type flash.display:Sprite What am I doing wrong?

ActionScript Code:
//create a mask to cover the room container
var roomMask:Sprite = new Sprite;

[code].....

View 2 Replies

ActionScript 3.0 :: Creating The Preloader Mask?

Jun 21, 2010

how to create a mask like this with ActionSript.It looks like a curtain opener and i would like to do this completely programmaticly if its possible.I am using TweenLite as my Tweening Framework.[URL]

View 0 Replies

ActionScript 2.0 :: Creating Mask Over Duplicates

Feb 10, 2007

I am having trouble creating duplicates of a movieclip that stay behind a mask. They keep overriding the layering/masking and end up on top of the mask. The script is below, where "sman" is the mask and "sf1" is the movieclip that's being duplicated.

[Code]....

View 2 Replies

ActionScript 3.0 :: Creating A Trash Bin Mask To Removechild?

May 21, 2010

I'm learning AS3 and I'm doing pretty well at the moment but I've got stuck at a point I can't seem to get past or work out a way to do it. After a few hours of googling I've decided to pick the brains of KIRUPA forumBasically I dynamically create a dozen movieclips. Now I have drag and drop events on these clips and I want to be able to drag a movieclip, drop it onto a trashbin movieclip that i've named 'trash' which would then removeChild the movieclip i've just dropped it ontop of.How would I go about doing this?

View 4 Replies

ActionScript 3.0 :: Dynamically Creating Movieclip And Mask For It, Then Using Addchild Renders White Bg?

Sep 12, 2009

I am dynamically creating a movieclip,

[Code].....

Then when I add something else as a child in this class, the mask is still applied to the gallery and it crops it accordingly, however the background in it turns white and hides whatever was behind it. For instance, there is space between the rectangles in the gallery movieclip and then a backdrop from the main class's movieclip shows behind it. When I called "addChild", the space between the rectangles becomes white. The background of gallery renders totally white.

View 2 Replies

Professional :: Creating Mask Layer Causes 1067 - Coercion Of Boolean To Flash.geom:Rectangle

Feb 10, 2011

I am attempting to use a "magnifying glass" effect to view a larger layer (e.g., 600x300 ) through a smaller layer (e.g., 200x75 ) by use of a mask layer. I have 4 layers to my code:

[Code]....

View 5 Replies

ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

Oct 23, 2010

[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?

[Code]....

View 2 Replies

ActionScript 3.0 :: Curious Tip: Flipping Sprite.alpha=0 To Alpha=1 Back And Forth With No Logic?

Dec 15, 2011

just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:

create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;

[code]....

View 9 Replies

ActionScript 2.0 :: Loading A Movie A Solid Shape Is There With Alpha At 100% Then Over A Period Of 5 Secs Its Alpha Is Reduced To 0?

Jun 27, 2003

using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.

i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...

View 14 Replies

ActionScript 2.0 :: Scriptable Mask - Large Mask Behind The Whole Of Flash Site?

Aug 19, 2003

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).

View 4 Replies

Create Own Mask Around A Jpg Image By Drawing Around It On The Mask Layer

Dec 4, 2009

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.

View 3 Replies

ActionScript 3.0 :: Shape.mask=mc.mask In As File Not Working

Apr 8, 2010

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].....

View 3 Replies

ActionScript 3.0 :: Possible To Mask Multiple MC Or Sprites Under One Mask?

Nov 26, 2009

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 Replies

Set Alpha For Whole Stage Down But Have 1 Mc Full Alpha?

Aug 2, 2011

I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?

View 6 Replies

ActionScript 2.0 :: Dynamic Text Alpha - Find A Component That Allows Alpha Control With A Dynamic Text Box?

Feb 26, 2005

As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.

View 5 Replies

ActionScript 3.0 :: Blur Everything Under A Mask (Blur Mask)?

Jan 12, 2009

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?

View 0 Replies

AS3 :: Set A Mask On Movie Clip A Using Movie Clip B With .mask Parameter?

Jan 22, 2010

AS3 Movie clip does not have .setMask() method, but it has .mask property. What is the syntax to set a mask on movie clip A (mcA) using movie clip B (mcB) mith .mask parameter in AS3?

mcA.setMask(mcB);  // does not work in AS3 (no setMask() method any more)
mcA.mask = mcB;  //does not do the job either

View 6 Replies

Mask With Several Shapes?

Mar 19, 2009

Is this possible? Cause it "masks" just one shape within the mask layer.

View 7 Replies

Mask Background Of SWF?

Oct 28, 2009

I received an swf movie of a rotating brick with a blue background. I converted to fla but the blue bg and the brick are considered a single object. Is there a way to mask the bg without having to export it as single frames and masking in ps?

View 1 Replies

Using A Transparant PNG As A Mask?

Jul 1, 2009

I'm trying to use an irregularly shaped PNG as a mask but the mask is just coming out as a straight rectangle, not taking into account the transperancy of the image.
I've found many people complainng about this across the internet, and it is apperantly solvable, I just haven't been able to figure it out.
 
I've tried Trace Bitmap to vectorize the shape, since it's a single solid shape, but I'm getting weird results: [URL] I cant figure out why those lines are appearing across my mask. There's nothing there in the actual traced image, I've even ran the eraser over the affected sections to make sure.

View 2 Replies

Professional :: Get Url And Mask?

Mar 23, 2010

1- is there a way to make use of any universal URL in flash ? i mean. not needing to have the full path of the target in the button since the target is in the same folder than the page where is the flash ?
 
2- now, thats a funny one, i can make mask to make thing appear in an animation fashion style, no probleme as with any Adobe program... however unlike all other Adobe programs, it seem i am unable to find HOW make the exact reversed result... I want to make thing disappear without using the alpha channel, because i want to make it in an animation style way. It is to use for a sub-menu, where when you click the button to open the sub-menu, you see it appear nicely and in an animated way. But when you click again the button to close it, or once you picked your choice, it close the sub-menu in the exact reverse way it was open...

View 5 Replies

ActionScript 2.0 :: Mask Come In But Then Goes Out

Jul 18, 2009

I'm trying to make the image just scroll in with the current mask effect and not scroll out. You can download the source file here: [URL]. The layer to look at is "FlashAICB" there is 2 portions of code, one on the movie clip on this time line, and other on the mask inside the movie clip.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved