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


Similar Posts:


ActionScript 2.0 :: Dynamic Masks - Trail Doesn't Resize And The Mask Still Doesn't Work

Oct 16, 2009

I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:

Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....

in the function, but now the trail doesn't resize and the mask still doesn't work.

View 1 Replies

ActionScript 3.0 :: All The Mask After Frame 1 Doesn't Work?

Feb 11, 2009

I have an animation that has mask in it. I'm using actionscript to set the mask.The problem I am having is all the mask after frame 1 doesn't work. When I trace the movie clip name it says null. I know it's because flash can't access movie clip's name because hasn't loaded yet.I have the AS in a .as. I have tried putting the as on the first frame, same thing.

View 1 Replies

IDE :: Gradient Color Doesn't Work As Mask?

Mar 16, 2009

why do my gradient color doesn't work as mask?

I thought I can use the gradient color to assign a different opacity level to my mask. isn't correct ?

It just works as a normal mask...

View 1 Replies

ActionScript 2.0 :: Mask In Attached Linkage Doesn't Work?

Mar 2, 2009

I'm dynamically attaching a movieclip linkage to my root timeline. The linkage has two layers inside -- a graphic shape mask and an empty movieclip for loading images. The empty movieclip is masked by the graphic shape mask.I'm using a MovieClipLoader object to load and manage the preloader for the empty movieclip when it loads images.Why does the mask sometimes work and sometimes not? Would the image type have anything to do with it? Or is it something to do with the act of attaching the linkage and then loading images into the empty movieclip contained therein?

View 5 Replies

ActionScript 3.0 :: Animator Doesn't Work - Animating TextField's Alpha?

Aug 22, 2011

I have a problem with animation of TextField. I prepared an animation of MovieClip (containing TextField), that in 0.5sec gets 50% alpha. Then I used "Copy movement as ActionScript 3.0..." option.When I copied it into a class and wanted to animate TextField, nothing matters, excepting weird TF movement.Here my button class code - class works alone:

package UI {
import flash.display.*;
import flash.text.*;[code]...........

View 4 Replies

ActionScript 2.0 :: Scrolled Text Form With Mask Doesn't Seems To Work

Apr 12, 2005

I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask. It still scroll's but nothing shows inside the input boxes when I type on it. Is this "normal" procedure for flash or It's a bug of some kind?

View 3 Replies

ActionScript 2.0 :: Scrolled Text Form With Mask Doesn't Seems To Work?

Apr 12, 2005

I wonder if you could help me with this:I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask. It still scroll's but nothing shows inside the input boxes when I type on it. Is this "normal" procedure for flash or It's a bug of some kind?

View 3 Replies

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

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

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

IDE :: Mask Doesn't Preview Properly

Mar 10, 2009

I�m in the process of creating a flash intro to my website. The problem is, whenever I preview one of my Mask layers by pressing Ctrl+Enter, the mask effect doesn�t work � it merely shows the masking object.

The puzzling thing for me, which leads me to suggest that the mask should work is that in the normal timeline view, when I lock both the mask and masked layers and press Enter or slide through the frames � the effect works perfectly. On Ctrl+Enter all of my other Masks work fine as well - the one in question has text as the mask content.

It only stops working when I view it as an .swf file or play the movie with Ctrl+Enter. Does anyone know why this is happening, how I can get around it, or whether it will be a problem when published?

View 1 Replies

ActionScript 3.0 :: Width Doesn't Work - How To Make It Work

Apr 21, 2010

I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.

I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.

Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410

View 4 Replies

My Text Mask Doesn't Preview Properly

Mar 14, 2009

I'm relatively new to Flash, and I�m in the process of creating a flash intro to my website. The problem is, whenever I preview one of my Mask layers by pressing Ctrl+Enter, the mask effect doesn�t work � it merely shows the masking object. The puzzling thing for me, which leads me to suggest that the mask should work is that in the normal timeline view, when I lock both the mask and masked layers and press Enter or slide through the frames � the effect works perfectly. On Ctrl+Enter all of my other Masks work fine as well - the one in question has text as the mask content.

It only stops working when I view it as an .swf file or play the movie with Ctrl+Enter. Does anyone know why this is happening, how I can get around it, or whether it will be a problem when published?

View 1 Replies

ActionScript 3.0 :: Mouse Cursor Mask Doesn't Like Buttons

Aug 20, 2011

Having a problem with part of a project that I know is something small that I omitted someplace relating to mouseEnabled or mouseChildren, but I think I have tried everything and nothing seems to work.I set up a demo FLA that replicates the issue somewhat here (remove spaces)- t i n y u r l . com/4429vbx

Basically, I have a little game that involves finding things in an image with a custom mouse cursor that is a magnifying glass. One large image over a smaller version of the same image, the cursor masks the large image. There's a bunch of Math figuring out the movement/positioning of the large image on MOUSE_MOVE to match up with what you are mousing over in the smaller one, and I have a Rollover/Rollout on the smaller image to swap the cursor in/out. The problem started when I put 5 invisible buttons down inside the large image. You get cursor flicker when rolling over the invisible buttons, because smallImage.rollOut is being triggered, then smallImage.rollOver, then out, then over, etc... and I have no idea why.

I can't use startDrag() because of the large image movement needed on MouseMove, and I tried it with EnterFrame and it's worse.Like I said, the demo isn't exactly what I have in my project, but it's close. There's no parallax math, and the project I have is class-based, but the demo is on the timeline. There are 3 levels - A is the root child, B inside of A, and 3 buttons AA, BB, CC inside of B. I have a simple circle Sprite as the mouse cursor.

View 2 Replies

ActionScript 3.0 :: Masking Doesn't Change When The Mask Movieclip Changes?

Sep 13, 2009

I have a movieclip Planet which consists out of a backround (BG) and a mask (PMask). The mask will be changed during gameplay (I add shapes, then draw this to a bitmap and replace the shapes with the bitmap).But for some reason the mask doesnt change along with the mask movieclip(as if it makes a copie of PMask and uses that as the mask instead, so that every change to PMask isnt applied to the mask of BG)This is basically my Planet.as file (I removed the stuff that isn't related):

Code:
package
{
import flash.display.MovieClip;[code]....

I don't know why I would need the "cacheAsBitmap", but it doesn't seem to mask at all when I don't use it.

View 0 Replies

ActionScript 2.0 :: For In Loop Isn't Working - Doesn't Change The Alpha Of Anything

Apr 15, 2008

I have a class file that contains a for in loop. basically there are 50 states (movieclips) on the stage and here is what I have:

[Code]...

I don't think I understand enough about arrays or for in loops to understand why this isn't working... it traces the array, but not statesArray[states], and it doesn't change the alpha of anything.

View 1 Replies

ActionScript 3.0 :: Mask Doesn't Move On Stage Resize?

Aug 11, 2010

I have tried everything I can think of but I just can't get my mask to move with my content when my stage is resized.

I am using flex and I embed symbols/assets in an assets class then instantiate them in my main class and call addChild on them.

I have a Sprite (maskSprite) that is the same size as the content, and I use this as a mask, calling

Code:
this.mask = maskSprite in my main.

This works fine but when I resize the swf it stays at the top left of the window when my content moves (I am using stage.scaleMode = StageScaleMode.NO_SCALE). I have used maskSprite as a non-mask and it moves with the content fine, but when it is a mask it doesn't.

View 1 Replies

Actionscript 3 :: Alpha Does Not Work On Text?

Oct 12, 2011

i'd like to make an effect with "alpha", but when i'm using a particular class to set the scrollbar on my text, the text does not respond to my alpha. You'll see that the text does not respond to the alpha 0 at the beginning of the tween.

Here's my code in the fla that imports another class, which imports the scrollbar class ;-) :

import com.greensock.*;
import com.greensock.easing.*;
var loader:Loader = new Loader;
var url:URLRequest = new URLRequest("Rhizo.swf");

[Code].....

View 1 Replies

ActionScript 3.0 :: Getting Buttons To Work Under A Mask

Sep 13, 2010

I have a little experience with flash so if this is a silly questions I apologize. I have a scrolling panel of thumbnails for a photo gallery that I am putting together. The panel has a mask which doesn't allow the thumbnail buttons to function. When I remove the mask, then the entire page scrolls with the thumbnails -- I do not want this.

View 5 Replies

ActionScript 2.0 :: Buttons Don't Work With Mask

Jan 17, 2012

when press on buttons dosent open links but when i delete the mask links work but scroll has problem

View 1 Replies

ActionScript 2.0 :: Allows The Last Function To Work In Alpha?

Aug 30, 2004

I tried using this code because I need some mc to scale, others to fade, and others to move; but it won't work. It only allows the last function to work (in this case alpha).

[code]...

View 5 Replies

ActionScript 3.0 :: Stop (); Command Won't Work On Mask

Nov 15, 2009

I checked out a lot of sites but can't figure out how to do this. without the mask my animation of a button growing bigger works well, the stop command is respected. But i want an image inside the form of the button that grows larger, so i took a picture on a layer below it, and made the button into a mask. visually, it works fine, but it loops, since the layer in mask mode doesn't respect the stop ();

View 1 Replies

ActionScript 3.0 :: Get A Custom Mask To Work On A Project?

Jan 12, 2010

I'm having a hell of a time trying to get a custom mask to work on a project I'm creating.

The mask I'm trying to use is applied as a pixel mask on a layer in the photoshop doc I'm working off, but I can't seem to figure out the proper way to get that layer mask imported into flash, to then compile into my .swc and be called from actionscript. (I'm coding in Flex)

Whats the proper workflow for getting a pixel mask imported from photoshop so that when I call:

container.mask = myMask;

It'll show up as the shape I want, and not just a square box the size of my shape?

View 1 Replies

ActionScript 3.0 :: Papervision Alpha Property Does Not Work

Apr 7, 2011

I have a papervision project and this problem has kept me from going for days. I have Text3D object in my project and I have to reduce and increase the alpha property of this object , and I do it by changing the alpha property of the ViewportLayer that contains this Object. everything works fine but when I change it's text property due to some circumstances I can't work with it's alpha property anymore.

I change it's text like this:
var text1:String = "second string";
mytext3D.text = text1;

I don't (and I can't) use "useOwnContainer" and I use a defined ViewportLayer for this Text3D which I've defined like this:
var textLayer1:ViewportLayer = viewport.getChildLayer(mytext3D);
And I change the alpha property of this "textLayer1" in order to change the alpha of my Text3D object. Everything works fine till I change the text property and after that when I change the alpha of my "textLayer1" nothing happens!

View 2 Replies

ActionScript 3.0 :: Can't Get Any Alpha Other Than Full Opaque To Work?

Nov 5, 2009

This is really stupid.. But I can't get any DisplayObjects to take an alpha setting.. They remain full opaque no matter what- if I set alpha=.5, 0.0, etc. I'm using Sprites, but I've tried with TextFields and a couple other things.. Is there any setting, or anything about the containing object that would prevent me from setting alpha? I am really confused on this.

Code:
subItemHolder=new Sprite( );
subItemHolder.alpha=.50; //Remains fully opaque

[code]....

View 4 Replies

Professional :: Flash CS4 To Fade A Photo And Can't Get Alpha To Work?

Oct 31, 2010

I installed Flash CS4 and the alpha doesn't seem to work. I follow all the instructions to the letter but get no results. I had no problems working in Flash MX

View 6 Replies







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