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


Similar Posts:


ActionScript 3.0 :: Masking MovieClip And Keep Alpha Transparency?

Jan 9, 2010

mc1.mask = mc2
mc2 is a movie clip that is 50% alpha. How can I mask mc1 and keep the alpha transparency? That's about it.

View 3 Replies

ActionScript 2.0 :: Interactive Image Panning & Alpha Channel Masking

Sep 15, 2007

i have a problem with Interactive Image Panning & Alpha Channel Masking. without panning codes masking is working but with panning i can't see my masked area. code is below and icant find where i am wrong or what i am missing

[Code]...

View 2 Replies

ActionScript 3.0 :: Mask Gradient Blend Timeline Insanity?

Jan 14, 2012

Layer 1: Linear gradient with transparency on each side.

Layer 2: Graphic symbol of an animation that runs across the entire screen.

The edges of the gradient should mask the animation on either side so it looks like it's fading in from one side while fading out on the other.Is it possible, using just the timeline, to achieve this effect? It's been awhile since I've done timeline animations but I know I've done this before I just can't, for the life of me, figure out the magic combination.I've tried changing the gradient from graphic to movieclip, I've adjusted blend mode, and bitmap caching, yet each time I run the animation the gradient is ignored completely.I read that using masks for gradients are ignored so I changing the layer back to it's original and specify the symbol as movieclip with blend alpha did nothing as well...

View 0 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

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

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

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

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

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







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