ActionScript 3.0 :: Masking 2 Objects At Once?

Nov 6, 2009

I posted a message a while ago about creating a spotlight effect over a background and it was suggested that I use masks to create the desired effect. This worked fantastically.... until now lol. I need to mask both the background image AND some randomly generated on-screen objects. Whever I try to add the mask to the objects generated at run-time, it ceases to mask the background as well!
 
I should probably have expected this one... but was just wondering what was the best wat to get around this? Should I create 2 'spotlight' objects which directly overlap each other, but have one set to mask the background while the other masks everything else? Or is there an easier approach?

View 2 Replies


Similar Posts:


Professional :: Drawing The Objects/masking?

Nov 16, 2010

when drawing an object and using that objetc to mask another layer im having trouble making more than one object act as the mask. Eg I draw a circle and use the mask function to mask an image, works fine, then i draw some more geometry (in the same layer) and it will not mask as the first object did. Is there any way I can 'Join' them togeter to act as one big mask?

View 2 Replies

Professional :: Masking Unwanted Objects When Publishing A .swf?

Jul 23, 2010

I maybe missing the point or simply not ticking a tick box, I've created a web banner for one of my publications that I work on (please find at the following address [URL].. As you can see I have some aircraft flying away from the tree at the bottom, what I would like to happen that they dissappear  when they pass the keyline. I had thought that if I continued the animation onto the pasteboard that when it came to publishing, flash would ignore items this grey area and would act as a trim, am I correct in thinking this? How would I go about correct this so that only the animation within the set parameters appear?

Also is there a way of setting the scale of a flash banner? I have a feeling that this is so simple, but just can't find the panel to set it all.

View 1 Replies

ActionScript 3.0 :: Masking Dynamic Objects - Placing On The Timeline

Aug 3, 2009

In my current project I'm building a waterfall. Each drop in the waterfall is generated from the waterfall.as class and added to the stage via addchild. Now I have a mask that I want all of those drops to use however I can't seem to get this to work. I've tried placing the mask on the timeline and I couldn't seem to access the mask from the waterfall.as file. I've also given the mask it's own class and added it dynamically to no avail.

View 7 Replies

Have Two Makslayers That Is Masking One Layer Under?

Jan 13, 2010

I want to have two makslayers that is masking the one layer under.

View 1 Replies

Size Too Large Of Masking?

Jul 25, 2010

i made a masking anim using frame by frame animation on the mask layer...

when i exported the swf it was of 83 kb (too huge) and i checked it was all due to shapes in the mask layer....

i found "eltima swf optimizer" on internet but it gives only black and white output in the demo version ....

i opmitized all shapes one by one by using modify>shape>optimize using 100% optimization but when i exported swf this time was 114kb(even more) this sux!!!

my question is that is there any other "swf optimizer" that i can use for free.. (hey its my school project and i just need to mask a single jpeg)

View 1 Replies

Have Two Makslayers That Is Masking The One Layer Under?

Feb 23, 2012

I want to have two makslayers that is masking the one layer under.

View 1 Replies

ActionScript 2.0 :: Masking The XML Menu?

Jul 28, 2005

I'm trying to make a mask for this menu, I was trying in many different ways, but I still do not understand why it doesn't work.

menu = new XML();
menu.ignoreWhite = true;
menu.load("the destination That we are loadin xml from");
menu.onLoad = function() {

[code]....

That was the code of menu. This menu is inside the main movieclip. But I want to mask this menu incase making the shape of the last and first button.

View 3 Replies

ActionScript 3.0 :: Using BitmapData For Masking?

Jul 13, 2007

I have a PNG file with transparency imported into the library and converted to MovieClip.Now I want to use this PNG file for masking another sprite drawn dynamically using the drawing API. I know that you cant mask a runtime generated sprite with a author time movieclip. So i created another runtime sprite and copied the BitmapData of the PNG in the library to it. The masking happens, but not the way i want. The BitmapData is always a solid box and the masking apears across this box. I would like to have the transparent region of the PNG omitted from the mask data

View 7 Replies

IDE :: Advanced Masking With Flash?

Jan 14, 2009

Lets say I have 3 layers A, B and C. I want A to be the mask for B which is pretty easy, but at the same time I want B to be the mask for C. Is that possible?

View 2 Replies

IDE :: Masking In Flash Like In Photoshop?

Apr 7, 2009

Is there a way to make Flash work with masks in the same way as in Photoshop?In Flash, for a mask layer to work, it needs to be in shades of transparency.In Photoshop, you can use a fully opaque mask layer, and the mask is applied by using the different shades of black and white.

View 1 Replies

AS3 :: IDE - Masking The Image For A Transition

Apr 14, 2009

I'm extending a tutorial from Flashtuts by Michael Chen. My goal is to have the grid fill in random, masking the image for a transition, as the famed Mask Effect transition from Flash-filter. This is what i got so far: URL]

[Code]...

View 2 Replies

IDE :: Masking An Image Loader?

Jun 10, 2009

I'm coming from AS3 and I'm trying to mask a SWF file that's being imported in but it's doing something pretty funky. The SWF file is coming in fine, but when I'm masking it, it shows the shape I'm masking with, but it's also masking because nothing is going beyond its' edges.

{
var mask_mc:Shape = new Shape();
mask_mc.graphics.beginFill(0x000000);

[Code]....

View 6 Replies

IDE :: Masking The Special Text?

Jun 26, 2009

How do I add text effects such as a mask to text that has strokes, or decorated text? I would like to have a masked effect on special type that has a stroke to it.Currently the mask works on static Arial text and when I convert the static text to a movie clip. But the mask doesn't work when I convert the static text to dynamic text.

View 3 Replies

IDE :: Masking A Handwritten Word

Nov 10, 2009

I need to create the effect of something appearing dynamically. I have th�s script type font, that I want to have the effect of being written out. So I guess what I need is some tutorial on masking.

View 2 Replies

IDE :: Dynamic Masking Using The Drawing API?

Nov 15, 2009

I've been having some trouble with this code:

Code:
onClipEvent(load)
{
_root.stop();
dO = 3.6;
r = 75;

[code]....

I've created a movieclip with a donut graphic.Set the actionscript to the clip. Created a 2nd frame in the timeline with a photo.Nothing happens.

View 1 Replies

IDE :: Alpha Masking Insanity?

Jan 31, 2010

I have gimp. I have flash cs4.I have a picture of a dog that is 200 by 200 pixels with alpha transparency (you only see the dog no background, it's a png).Now I want to make only the dog listen for a mouseclick event. I saw some way of doing this by looking at the point where the mouse click event occured, and then stopping or continuing the event propogation based on if the pixel clicked was transparent or not. This seems sort of hackish. The "Clean" way I propose is by using a mask over the 200 by 200 image, but the mask should be shaped like everything that is NOT the dog. So it's a mask with a hole in the middle. the hole in the middle being nothing. not even alpha. Or the other way if this isn't possible, is to create a 200 by 200 image with just alpha value 0, and then stamp the dog on top as a mask... It appears there is nothing out there that describes how to do this.All I see are "bitmapfill" on squares and circles, which is utterly basic.

View 1 Replies

ActionScript 2.0 :: Masking Of A Duplicated MC

Mar 22, 2004

I am trying to mask a duplicated mc.

I am attaching my .fla so you can take a look. The code is a bit long, but I marked the setMask code line with dashes (it's right on top). I marked out the setMask line so you can see how it looks like, because when I do mask, you can see any of the MCs that are being masked.

View 3 Replies

ActionScript 2.0 :: Masking Of A Duplicated MC?

Mar 22, 2004

I search my problem in this forum prior to writing this. I got a thread that explains exactly what I needed to know; however, it doesn't work for me...I am trying to mask a duplicated mc.I am attaching my .fla so you can take a look. The code is a bit long, but I marked the setMask code line with dashes (it's right on top).I marked out the setMask line so you can see how it looks like, because when I do mask, you can see any of the MCs that are being masked.

View 3 Replies

ActionScript 3.0 :: Masking In Real Time?

May 30, 2009

I'm currently using the Graphics library to draw bands of color across an image (bitmap).So, I draw a square of colored bands, and mask it with the bitmap image. Unfortunately, when I use a mask (or even set the blend mode to .LAYER, OR use a shader filter) the FPS drops to un-usable levels.Is there some way that I can draw the bitmap shape I want without killing the FPS? I was thinking that I could like, draw the bitmap on top of the sqaure of Graphics, and then make a certain color transparent.

View 7 Replies

As :: Masking Attached Movi Clip

Jun 11, 2009

I need to put a mask on an action script 2 attached movie clip, is it possible? and if it is, how can I do it?

View 2 Replies

ActionScript 3.0 :: FP10 Perspective And Masking

Jul 29, 2009

So I am learning AS3 slowly.First project in it.I am having some troubles. (I know I need to learn to code class based, working on it, familiarizing myself with some of the basics before I change my style completely).I have set up my stage to have four instances of a movieclip named silverScreen0 - silverScreen3.Each of those has a content layer in it which I am dynamically loading an identical swf.I then have a mask I put over each clip so that it only show a specific area.

-First issue comes up that hte fourth mask seems to move/distort on load, as you'll see in the swf.

-Second issue comes up when the loaded swf comes in ... the mask seems to shift if the swf has a motion animation, click the second white circle above chapter1 to see this.

-Third issue comes up when I move the content layer inside of the silverScreen# clip ... the mask seems to move as well. No example of this but if you download the source files you can see it.[code]

View 1 Replies

Flash8 :: Simple Text Masking?

Aug 17, 2009

I am using this tutorial and when I hit the play button the masking tween looks perfect on the stage.When I publish or use test movie however the gradient underlay shows up on top of the text.

View 7 Replies

ActionScript 3.0 :: Masking A Nested Loader?

Feb 10, 2011

I'm trying to set a mask to a loader that is nested inside a dynamicly created movieclip. The images are loaded into the correct movieclips but they aren't masked. Here's (part of) my code:

PHP Code:

for (var i:int = 0; i <= total_days; i++) var var_name:String = "cell_"+i; this[var_name] = new Cell();this[var_name].name = "cell_"+i;container_mc.addChild(this[var_name]); for(var j:int=0; j<=observ_array.length; j++) var tmp_date:Date = new Date(observ_array[j]);if(tmp_date.time ==

[code]...

mask_mc is created at authoring time and sits somewhere of the stage.I've tried all kinds of variations to my_loader.mask = mask_mc; including mc.my_loader.mask = mask_mc; I can add other properties to my_loader eg my_loader.scaleX works fine...

View 1 Replies

ActionScript 3.0 :: Attaching Movie Then Masking

Dec 3, 2008

i have one movieclip in Library named 'Tshirt' and this shape is like Tshirt.Now i have 2 diffrent blank movieclips named 'blank_mc' and 'blank copy_mc'.I am adding 'Tshirt' by CS3 code in both movieclips diffrently.After that i am masking blank_mc with blankcopy_mc.Now when i add some thing in blank_mc, outside the tshirt area then it also visible, which should not happen because one tshirt is masking the other and i added some movieclip in only blank_mc.What the mistake i am doing?

View 7 Replies

ActionScript 3.0 :: Masking Image While Using Transitions

Jun 6, 2009

I've just created a sliding transition, see code below, which masks an image however when I run the swf it doesn't work and just displays the whole image without a mask.

[Code]...

View 3 Replies

Masking To Start When Mouse Rolls Over?

Jun 17, 2009

I also want the masking to start when mouse rolls over.the file id made out of 2 frames and has an external file named test.jpg...frame 1:

Stage.scaleMode = "noScale";_root.createEmptyMovieClip("foo",1);_root.foo.createEmptyMovieClip("img",2);_root.foo.onEnterFrame = function(){ if(this._width > 100 && this.img.getBytesLoaded() >=

[code].....

View 2 Replies

ActionScript 3.0 :: Masking Duplicated Movieclips?

Jul 22, 2009

I'm getting frustrated with a project I'm working on. The problem I'm having now is trying to make a breadcrumbing list that is masked within an area like below.

Each breadcrumb is a duplicated movieclip that adds new text and resizes to fit the text as needed then moved over so that it is spaced evenly. All is well until the next duplicate which is beyond the mask area. When a duplicate is found to be beyond the right edge of the mask area, everything moves to the left so that the new duplicate will fit in its entirety. The whole thing blows up and releases all of the previous movieclips from the mask layer like below. I am using CS3 Actionscript 3 Publishing to Player 9.

View 3 Replies

Stacking Several Masking Layers Do Not Work

Jul 31, 2009

The attachment contains two screen shots of a movie clip timeline. The images consist of a text mask symbol sliding diagonally other a text layer, and a picture button sliding to the left under an aqua blue mask. When I scrub the timeline -- things work great. But when I view the movie via the control menu, the dynamic text is not displayed. The images illustrate the masking layers in unlocked and locked mode.
I'm using CS4.
Attachments: masking.jpg (136.8 K)

View 17 Replies

Actionscript 3.0 :: Make A Masking Preloader In Cs5?

Mar 2, 2012

i have this  image of a tree and a single frame so i want to make it inside a nested movie clip so i make the symbol and make the mask, and i tween the mask to start off on the bottom and moves its way to overtop of the symbol i write the code to what i know works with a regualr preloader but when i go to test the movie nothing happens. How do i make a masking preloader with actionscript 3.0 giving the impression that the tree is the item that is loading on the screen?

View 1 Replies







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