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


Similar Posts:


ActionScript 3.0 :: Drawing Rectangle Behind Mask Layer

Jun 28, 2010

I have a button that when clicked is supposed to draw a rectangle behind my mask layer but when I try to run it I get this error:
1067: Implicit coercion of a value of type Class to an unrelated type flash.display:BitmapData.

Here is the related ActionScript Code:
fabric_mc.phoenixFab.addEvenetListener(MouseEvent.CLICK, changeFabric);
function changeFabric(event:MouseEvent):void{
this.graphics.beginBitmapFill(phoenixFabric);
this.graphics.drawRect(181, 46, 319, 319);
this.graphics.endFill
}

View 9 Replies

ActionScript 2.0 :: Sweeping Mask - Using Image To Move Over Layer And Reveal Another

May 25, 2011

I have a question, and I find it hard to find resources on it. I have two layers, and another layer with an image of a broom on it. I want to use the broom to move over layer2, and reveal the layer beneath it. Kind of making a sweeping game. Frankly my search efforts on google have only come up with alot of masking, but I am sure you need actionscript to make the broom move with the mouse.

View 1 Replies

ActionScript 2.0 :: Create A Draggable Mask With An Image Around It?

Feb 13, 2010

I am trying to create a draggable mask with an image around it. More specifically an iPhone that looks as if it has X Ray cappability. I know how to make a draggable mask but can't seem to figure out how this situation might work.

View 1 Replies

Can't Mask Layer On A Jukebox

Dec 9, 2010

I've been making a jukebox that plays mp3s via an xml file and the playlist is doing strange things (I think it's due to using a flash decomplier, as I lost the original fla file!) I want it to be completely masked by the player body and just show in the lower window, but somehow it's coming out over the top of it.

View 2 Replies

Professional :: Mask One Layer Which Is Enough For Other Layers?

Dec 4, 2010

I want to know how can I mask an image on one layer which should enogh for other movie clips. Like the following ...
 
1) First layer ........................ Actionscript

2) Mask layer ....................... Rounded rectange with some design

2) Image layer ...................... Best image (as a background for all other movie clips)

3) Movie Clips layer .............. 10 Movie clips (which are like slides and will be act like one webpage each)   
 
What I want is the mask layer (Layer 2) should be enogh for all the movie clips in layer 3. No need to mask in each movie. I tried in the same sequence but it did not work for me.

View 1 Replies

Professional :: Flash CS3 Bug In Mask Layer?

Apr 10, 2008

I have created mask layer with single MC cosisting of couple of instaces of another MC. This is a set of growing squares. The problem is that only first instance gives mask effect. Rest of instances are not used to. Does anybody knows what is wrong and how to workaround this (most likely)bug ? I would like to avoid creating one masking MC consisting of e.g. 100 layers - with teened growing sqare on each layer but in different position. Wiser is just to create one MC consisting of many instances of another single MC.Second example describing issue.Mask layer contains shape tween which consist of 3 keyframes.Masked layer contains single keyframe at first frame with one MC. This MCrestarts when middle keyframe in the mask is played. It seems that masked MC (on different layer obviously) is recreated when playhead meets keyframe in mask layer in tweened shape. In the same moment our MC stopped beeing visible for AS3 under given name as well.It seems that if mask layer contains more complex animation then basic shape move/scale then masking stops working properly. Is it bug in Flash palaer or am I doing mistake?

View 3 Replies

ActionScript 3.0 :: Actually Coding A Layer Mask?

Mar 26, 2007

Is it possible to import two images to the stage using the required actionscript, and then CODE a layer mask to "cut" into the higher level image to display the other image beneath

View 4 Replies

ActionScript 2.0 :: Using Drawing API To Mask?

Jun 15, 2006

I'm trying to get a better handle on creating dynamic content, so I made a little experimental Flash file to test out programming with more robust and portable code to accomplish it (). I have two functions, one creates rounded rectangles and the other regular rectangles. I'm planning on using the regular rectangle to hold an image (which it does), and the rounded rectangle as a mask to give the appearance of a rectangle with uh, rounded corners. I've run into a couple problems with this:

1. The mask doesn't apply to the image. The regular rectangle (pictureHolder_mc) will appear and the picture (a .JPG file) will load into it; the rounded rectangle (pictureHolderMask_mc) will even appear on top of the picture. But as soon as I use the setMask() method, the mask disappears and not in the cool applying-to-the-movie way.

2. Both the rounded rectangle function and regular rectangle function have parameters for X and Y coordinates that worked fine when I was testing without trying to load an image. As soon as I did, it'd put the image at (0,0) for some reason, even with 300 passed for X and 50 for Y.

3. I've set up an onRelease() function for the image-holding movieclip that calls a tweening function, just to test out functionality. It doesn't work so hot; the mouse doesn't even turn into the clicky button cursor when the movieclip's rolled over.

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
stop();

[code]....

View 14 Replies

Flash :: Apply Layer Mask To All Layers?

Feb 7, 2011

How do I apply a layer mask to every layer in my movie? After I highlight all of the layers and put them in the layer mask, the layers that are in folders will not go in the layer mask.

View 2 Replies

ActionScript 3.0 :: Falling Snow - How Or Where To Put Mask Layer

Dec 10, 2009

I found a actionscript for falling snow. Problem is, I have some art that I want in front of the falling snow and can't figure out how or where to put the mask layer. Also, the more the test scene runs, the more snow gradually starts falling until I have a blizzard and can't see anything.

View 3 Replies

IDE :: Dynamic Text Not Showing When Under Layer Mask?

Jun 11, 2009

why a dynamic text I create is not appearing or showing when being mask or when it is under by a mask layer?

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

Professional :: Mask Layer Not Working In Cropping To Stage Flash

Apr 1, 2010

I've read through umpteen Flash threads of frustrated users who export SWF and anything visible outside the stage appears in the SWF when opened in a browser.None of the solutions have worked for me.My file is called statement_onlineheader.fla.URL...I have my mask layer above a folder containing all other layers.I have also tried moving the mask layer above individual layers.Stuff outside the stage appears in the exported SWF.

View 5 Replies

ActionScript 3.0 :: Mask Layer That Shows/loads An Imported Flv Inside?

Aug 22, 2011

I have a mask layer that shows/loads an imported flv inside of it. the masked layer has a blank keyframe with the following code in it..

[Code]...

View 3 Replies

ActionScript 2.0 :: Duplicated Movie Clip And That Layer Is Inside A Mask

Mar 17, 2004

I have a duplicated movie clip and that layer is inside a mask. I would like to mask that but it doesn't work. I have uploaded the fla so you can take a look.

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

Professional :: Mask Revealing Oval Line Drawing?

Aug 16, 2010

I have a drawing thats made up of (closed) ovals, which i have imported into flash from Illustrator. The ovals are simple "drawing objects", 0.1 thick with no fill. I need to find a way to animate these ovals "drawing" themselves.

View 1 Replies

Professional :: Drawing Artifacts With Motion Under A Gradient Mask

Feb 9, 2011

I have a transparent png bubble in movie clips that are being randomly sized and animation started using code. The design has a reflection and I am using a gradient mask for the effect. The issue is when the bubbles animate they are causing drawing artifacts. Please see the attached screen shot or you can see the swf here - Code: bottomMask.cacheAsBitmap = true;beaker_bottom.cacheAsBitmap = true;beaker_bottom.mask = bottomMask;

View 2 Replies

ActionScript 3.0 :: Drawing Artifacts With Motion Under A Gradient Mask

Feb 8, 2011

I am having an issue with using a motion under a gradient mask. I have a transparent png bubble in movie clips that are being randomly sized and animation started using code. The design has a reflection and I am using a gradient mask for the effect. The issue is when the bubbles animate they are causing drawing artifacts. Please see the attached screen shot. Below is the code I am using to set the mask.

[Code]...

View 2 Replies

ActionScript 2.0 :: Using Drawing API Shape To Mask Another Movie Clip?

Nov 16, 2006

I have a movieclip that contains code for an API drawing shape. I can use it to mask a movieclip containing an image but not a moviclip that contains a dynamic gradient.

Code:
// CREATE MASK SHAPE WITH DRAWING API
// create empty movieclip

[code].....

View 3 Replies

ActionScript 3.0 :: Flash 8 : Text Layer Mask Is Not Working When Test The Movie

Apr 4, 2012

I download "scrollbar_vfinal_2004 from this site and use it my own movie but when I test the movie, the text is not showing. Without text lay mask, the scrollbar works.

View 2 Replies

ActionScript 3.0 :: Drawing Pill Shape Mask - Cannot Adjust Linestyle

Aug 31, 2011

I'm trying to draw a mask that's a pill shape but I can't seem to adjust the linestyle properly.
Code:
import flash.display.Sprite;
var pill:Sprite = new Sprite();
pill.graphics.beginFill(0xFF0000,1);
pill.graphics.lineStyle(1,0x000000,1,false,"normal","round","round");
pill.graphics.moveTo(0,6);
[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

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 :: Create Mask Using It Only?

Jan 4, 2010

I have been doing a search to find out how to create a simple mask using only AS3 but I am not having any luck. Would you be willing to to give me a quick example of how to create a mask with AS3?

View 4 Replies

ActionScript 2.0 :: Using An Image As Mask

Jan 14, 2011

I'm wondering if I can use a image as a mask. For example, a shape of a dog as a mask. I want to achieve that load in the mask as a jpg or png from disk and apply it to a image. I tried it doesn't work. I don't know if there is something I did wrong.

[Code]...

View 0 Replies

ActionScript 3.0 :: Using A Png Image As A Mask?

Nov 18, 2011

I recently tried using a png image from the library as a mask for a movieclip on stage. Much to my surprise, the mask is just a rectangle. I expected it to ignore the 0-alpha pixels in the image and just mask out the visible shape. I managed to come up with a work around, but I just wanted to know if it was possible to use a png image as a mask and get the shape of the visible image as the mask as opposed to the whole, rectangular image area. I totally thought it was.

View 5 Replies







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