Actionscript 3 :: Mask Changes The Color Of Masked Movieclip?

May 3, 2011

I'm trying to mask a movieclip using a mask created with AS3 but it changes the color of the movieclip being masked. I would like the mask to not change the color of the masked movieclip. Here is my code:

mask_mc.mask=masked_mc;
drawMask();
function drawMask():void {

[Code].....

The masked movieclip becomes the same color as the color defined in beginFill. In the example above, masked_mc turns black (as defined in beginFill). Removing beginFill masked everything and revealed nothing. masking with AS3 without changing the color of the movieclips being masked.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Relation Between The Layer Of The Masked Movie And The Mask Itself?

Apr 17, 2003

I want to mask a movie clip with another one, the mask is a dynamic square which expands to the whole scene.Anyway, I wanted to now what is the relation between the layer of the masked movie and the mask itself,(should they be at the same level or not?) I use the above script:

_root.createEmptyMovieClip("mask", 22);
_root.createEmptyMovieClip("masked", 21);
masked.attachMovie("home_btn", "masky", 0);
_root.masked.masky.setMask("mask");

[code].....

View 3 Replies

ActionScript 3.0 :: Scrollbar For Masked Movieclip?

May 11, 2011

I have a movieclip that I am masking dynamically. The reason for masking the movieclip is because it can be different heights depending on user feedback to some questions. I want to add a scrollbar if the movieclip exceeds the mask area that will allow the user to scroll to see the rest of the movieclip.

View 2 Replies

ActionScript 1/2 :: Print An Off-stage Or Masked Movieclip?

Nov 17, 2009

I need to print a movieclip that has a mask, the mask is there because the content will be larger than the screen, so the movieclip has a scrollThe thing is that when I print the movieclip, it only prints the visible area (the masked one), and if I remove the mask it only prints the visible area (up the the stage height).

View 1 Replies

ActionScript 2.0 :: Print An Off-stage Or Masked Movieclip?

Nov 17, 2009

I've printed movieclips before but now I stumped upon this.I need to print a movieclip that has a mask, the mask is there because the content will be larger than the screen, so the movieclip has a scroll.The thing is that when I print the movieclip, it only prints the visible area (the masked one), and if I remove the mask it only prints the visible area (up the the stage height).

View 2 Replies

ActionScript 3.0 :: Catch Events Under Masked Movieclip

Oct 29, 2010

I have a masked movieclip that has let's say a hole in it. It's called mc1. I also have another movieclip under it called mc2 that appear from under mc1 because of the hole in mc1. But when I write event handlers for them when i click mc2 from mc1's hole , just mc1 catches the event and mc2 doesn't catch any event. Here is my simple code :

[Code]...

View 14 Replies

ActionScript 3.0 :: Catch Events Under Masked Layer Movieclip?

Oct 31, 2010

I have two movie clip on the stage. The movieclip mc1 has a masked layer in it self that the movieclip seen like a ring ( like it has a hole in it ) and the movieclip2 is simple square movieclip that is under the movclip1 on the stage. So movieclip2 is seen from within the hole of the movieclip1 but it doesn't catch events when i click mc2 (the movieclip under) from within the hole of the mc1.[code]...

View 5 Replies

ActionScript 2.0 :: Mask Image From B/w To Color?

Feb 9, 2006

I want to use a b/w image as a preloader and as the content loads, the image gets colored the same percent. Just like a regular preloaderbar, just that the counter is the color.

View 1 Replies

ActionScript 2.0 :: SetMask - MovieClip Masked By Predefined Shape On Click

Apr 22, 2010

Is there anything to opposite of setMask. Actually I want that, when I click a button then a movieclip will be masked by some predefined shape (working as mask object). when I click another button he mask will be gone. That means the object under the mask will go out of the mask.

View 1 Replies

Actionscript 3 :: Convert Masked Movieclip Into Bitmap And Save It On Server?

Feb 3, 2011

i have a dsgnArea----> a movieclip

dsgnArea is masked by dsgnAreaMask, which inturn is a movieclip

dsgnArea.mask=dsgnAreaMask; the width,height and position of dsgnAreaMask and dsgnArea are same.

i dynamically added multiple movieclips and labels to dsgnArea;

[Code]...

View 3 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 :: Create Flash App Where A Single Jpeg (person Headshot) Is Loaded Into The Masked Movieclip?

Jan 31, 2007

I'm trying to create flash app where a single jpeg (person headshot) is loaded into the masked movieclip (same size as passport photo) (using loadMovie), then user can edit the image (drag inside mask, zoom, rotate) and then after pressing a button the app duplicates the EDITED image 4 times - to make sort of headshot sheet.

While I know how to load movie, drag single clip or scale it, I have no idea how to duplicate the movieclip once is edited, to make identical copies of it (scaled, rotated...)If I use duplicateMovieClip it won't work since it won't duplicate the loaded image.

View 3 Replies

ActionScript 2.0 :: Dynamic Changing Movieclip Color And Text Color?

Jul 28, 2009

I have a movie clip where it contains an instance of text

I able to change the movie clip and text color individually

but when i try to change both at once the text color is same as movie clip color

ActionScript Code:
myColor = new Color(myMovieClip);
myTextColor= new Color(myMovieClip.myText);

[Code].....

View 3 Replies

ActionScript 3.0 :: Cannot Mask Over MovieClip

Aug 27, 2009

I have problem in masking over a movie clip by using ActionScript 3. The masking do not work. Here's the codes:

effect_mc.cacheAsBitmap = true;
mask_mc.cacheAsBitmap = true;
// Apply Mask

[Code]....

View 6 Replies

Actionscript 3 :: MovieClip Higher Than Set Mask?

Apr 9, 2011

I have a movieclip with a prefilled content (some simple vector graphic in a movieclip), with the height of 40. I then apply a mask to it, with the height of 30. Now i would think that the MovieClip is 30 pixel high, but it turns out to be 40 pixel high. Is there some property im not setting or does the movieclip always assume the height of ALL the content within it? or what?

Actually in another clip, too, I have predefined 2 vector graphics (in two seperate movieclips), where the highest one is applied as a mask to the second graphic. The movieclip again assumes the height of the highest element. That might be logical, as it is the mask, BUT! when i then resize my mask (programatically) the height of the movieclip remains the same.Is there some way to recalculate the height of a movie clip? Or am I missing something?

View 1 Replies

AS3 :: Flash - Get Bitmap From Movieclip With Mask?

Feb 1, 2012

This work:

var a:BitmapData = new BitmapData(640,480);
var b:Bitmap = new Bitmap(a);
a.draw(movieClip);

[Code].....

How can I draw in my Bitmap just the visible part of a MovieClip that uses mask?

View 1 Replies

ActionScript 2.0 :: MASK Movieclip With Xml Content?

Jan 25, 2009

I have a movie clip that has imported xml in its text boxes, when i try to mask this MC with a rectangle, it doesnt show the xml loaded text boxes!! but it does show other elements like graphics in the MC.

View 3 Replies

ActionScript 3.0 :: Using Blurfilter On Movieclip Mask?

Jun 19, 2008

I have a movieclip, "clip1", that is being masked by "mask1". the mask starts as a small circle and grows into a big one, gradually showing the screen. However, the sharp corners on the mask are bugging me and I want it to have soft corners as it goes across the screen. I've read around, and it seems like a blurfilter may be able to do the trick. However, I can't seem to tell any difference; the corners are not softened whatsoever. I can't post the actual code, but here's what the important snippet of code looks like:

ActionScript Code:
var clip1:MovieClip=new MovieClip1();
var mask1:MovieClip=new MaskClip1();

[code].....

View 3 Replies

ActionScript 3.0 :: Remove Mask For Inner Movieclip?

Sep 2, 2009

I have 2 main movieclips (mask_mc, draw_mc)I have masked these movieclip..

draw_mc.mask = mask_mc;

inside draw_mc there is a movieclip called item_mc, the above mask must not be applied to this inner movieclip item_mc.

View 1 Replies

ActionScript 3.0 :: Mask A Blurred Movieclip?

Sep 9, 2009

Have you ever tried to mask a blurred movieclip? If the mask is made manually and set on stage it works ok, if we use:mc.mask = mask;it seems like the mask is also blurred and it doesn't work as expected! Do you have any idea on how to solve this?

View 8 Replies

ActionScript 3.0 :: Add A Mask Animation On A Movieclip?

Apr 28, 2010

I'm trying to add a mask animation on a movieclip that i have in the library. The problem is that my code add the image to the movieclip that i have created to contain the image but his mask doesn't animate.

So i have:

- the mask layer

-- a layer for the image

- a layer for the movielip background

in this order. With greensock i add a scale animation to the mask layer on the mouseover event but it doesn't animate.

Code:
import com.greensock.*;
import com.greensock.easing.*;
var columns:Number;
var my_x:Number;

[code]....

View 3 Replies

ActionScript 1/2 :: Attached MovieClip Under Mask Disappears

Jan 23, 2010

I posted this in Kirupa but unfortunately i did not receive any response from the community for 4 days now. I'm thinking perhaps somebody here can answer my long awaited explanation for this bug or phenomenon. I have a shape animation on the timeline from one keyframe to the next (3 keyframes). There is an orange movieclip under that mask with instance name "container". Now if i attempt to attach a movieclip to it at runtime, it will automatically get removed when it reaches the 2nd shape tween keyframe. All my code is in frame 1. Isn't that illogical? I know it works if i place it into a movieclip. I need an explanation to this (if its a bug) and a workaround other than repetitively attaching it from frame to frame.

View 2 Replies

Flash :: Using Actionscript 3 To Mask Text Thats In A Movieclip

Apr 5, 2011

I am dynamicly adding xml data into three text fields buy looping and then adding the text_info movieclip to a scroll_box movie clip then adding the scroll_box to the _myCanvas movieClip. I want to mask the data but am not getting the results I though I should.

[Code]....

View 2 Replies

ActionScript 2.0 :: Mask Changes Textfield And Movieclip Are Reset?

Dec 10, 2009

1. If you have a dynamic text field and movieclip under a mask layer.

2. through actionscript you set the text of the text field, and set the frame of the movieclip.

3. You want the mask to animate, so you create a new keyframe at frame 10 in the mask layer, and change the shape of the mask. The problem is that when you play the movie and it reaches the keyframe where the mask changes, it resets both the text field and movieclip to it's initial state. I've run into this issue in both AS2 and AS3, and also using an animated movieclip as a mask. Whatever is underneath the mask gets reset. I've created a very simple fla to demonstrate this (attached).

View 1 Replies

ActionScript 3.0 :: Firefox 3.6.6 / Chrome 5 Swf Movieclip Mask

Jul 13, 2010

check out [URL], click Gallery and click on one of the large buttons (have to explain like this because this thread will not let me post a link). In FF 3.6.6 and Chrome 5 with flash player 10.1 plugin, my mask is chopped off on the large photos. The gallery uses shadowbox. Im viewing from vista. Worked fine in previous versions of FF and still shows up correctly in IE.

View 0 Replies

ActionScript 2.0 :: Load Movieclip Outside A Mask Or Scroller?

Jun 1, 2007

I have a scrollbar which is using a mask to work, then i have image thumbnails as a movieclip to scroll. The thumbnails are buttons that loads swfs into an empty movieclip on the stage using the loadClip.

My problem is that i cant get the loaded swfs outside the mask and the scroller, they load inside the mask and starts to scroll - as my movieclip with the thumbs are inside the mask.

how to load the swfs outside the mask/scroller? Or how i can solve this in any other way?

View 5 Replies

ActionScript 2.0 :: Movieclip That Is Supposed To Mask The Background?

Mar 5, 2002

I'm very close to achieving the desired effect, however, i have been stopped dead in my tracks. I Used Pom's Real/Fake Mask Drag tutorial, so I have that set, however, my problem is getting the ripples to mask...

I have the background, and then I have the other movieclip that is supposed to mask the background (ripple).However, it either does not mask, or it only masks the first frame of the "ripple" mc...

(oh, btw...the ripple MC is dragged by the mouse, so the ripples follow the mouse. I saw an effect like this, a looooong time ago, probly in the days of Flash 3, and i was curious how to go about it, so I have been trying for the last few weeks...)

View 4 Replies

ActionScript 2.0 :: How To Mask Multiple Attached MovieClip

May 31, 2011

I am using Flash MX2004(AS 2.0), I need to mask the attached movieclip, totally I attached 3 movieclip (all are same one), I need to display first movieclip by using mask. One more thing is moving that mask by press button, when I press the button the mask will show the second movie clip and so on.

This is my code: I have to mask box1_mc
function cardcolor() {
var color:Color = new Color(_root["box_mc1"+i].box1_mc);
var t:Number = 0x00FF00;
_root["box_mc1"+i].onPress = function():Void {
[Code] .....

View 2 Replies

Flash8 :: Movieclip Mask Making Text Invisible?

Jul 14, 2010

I have a movie clip which has a dynamic mask applied to it to provide a scroll effect.

The mask is generated with the 'create blank movieclip' method.

So the mask is a movie clip over a movie clip.

I hunted for invisible text last night and found this link [URL]

which implies it's to do with the mask being on a layer, but from what I can gather from reading the AS, it's not it's on a new blank movie clip.

Also many other links I found all imply it's an issue with dynamic text and the font needs to be embeded, but the underlying text is not dynamic, it's static normal text which has been used in a movieclip to create animated rollover/out effects.

So why is the text missing when the content is scrolled into view?

If you hover over where the text is supose to be, the animation plays and the text becomes visible?

Also the arrow graphic next to the text which forms part of the animation does display; it's just the text portion which is invisible?

View 2 Replies

ActionScript 3.0 :: MovieClip HealthLibrary The Mask Effect Fails

Sep 15, 2009

When I run this with the movieClip "screens" tweening through the mask everything works as expected. As soon as I try to do the same with the movieClip healthLibrary the mask effect fails. One thing I just noticed is that all the assets in the healthLibrary mc are png files while all the assets in the screens mc are jpg. Could that be the problem?

[Code]...

View 3 Replies







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