ActionScript 3.0 :: Add The Mask To The Stage?

Apr 18, 2008

I spent about 3 hours trying to debug a really weird bug where, I have a masked clip that holds onto the right wall of the stage, so on stage resize it moves. The problem was once I resized the stage smaller than the width of the mask, the mask would jump up to (stage) 0, 0, and not move anymore. Needless to say, the results were extremely confusing and hard to debug.

After looking and looking, it turned out to be a highly noobish mistake, but raised an interesting issue.

I had forgotten to add the mask to the stage, but it was still working completely as intended until it became to big for the stage, which was blowing my mind (before i figured it out, that is).

Anyhow, I just thought I would share. Having ridiculous-to-solve mask problems? Make sure they are on the stage.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Mask The Entire Stage?

Oct 8, 2007

I have a fullscreen flash project.Basically what I need to know how to do is resize the stage height and mask everything to the new height (I have a full page scrollbar, and it scroll to over 2x the height I want. And the height will change with each section)

View 1 Replies

ActionScript 3.0 :: Using Mask On Object Added To Stage

Dec 29, 2009

I want to be able to mask an object that has been added to the stage using 'addChild'. This is what I have so far, but it does not seem to work.

Code:
var skyMask:mcSkyMask = new mcSkyMask();
skyMask.x = 0;
skyMask.y = 0;
addChild(skyMask);
var cloud1:mcCloud1 = new mcCloud1();
cloud1.mask = skyMask;
cloud1.x = 7.5;
cloud1.y = 57.7;
addChild(cloud1);

Basically, the cloud is going to move across the sky then get hidden by the mask so it does not appear on the background stage.

View 2 Replies

Flash :: Selectively Mask Parts Of The Stage?

Jan 24, 2011

I'm making flash game, and I have the staged masked so your character can only see part of it. However, I don't want the entire stage masked, I only want the "Game Area" masked. Imagine my stage is 800x800. However, the "Game" only takes up the area at the top, 800 by 600. There are 200px at the bottom where I can use for chatting, or displaying information, as your character walks around the game area.

The issue is, I setup my mask, and it masks /everything/ on stage. Even if I have something outside the "game area", it is still hidden behind the mask. So my question is, in my flash application, how can I use my mask in the "game area", and not have other parts of my application affected? Can I selectively put items above the mask?

Edit: Clarifying. My game starts by initialzing the GameScreen object:
game = new GameScreen(); //800 x 600. Declared as class variable
game.y = 40;
addChild(game);

[Code]....

So now, we have my game setup, with a circular hole in the mask and the player can see his character. However, also when the Game Screen object initializes, it places an infomation bar on the screen. This information bar also gets hidden by the mask. The player cannot see it. The issue is, I want this bar (and other components to be added later) to be visible to the player at all times. I can't simply change the shape of the "hole" through the mask, because it moves with the player. So how can I allow that information bar to be seen by the player, while still hiding the game area?

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

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 Multiple Images Adding To Stage From The Library

Nov 23, 2009

I have a series of images I'm adding to stage from the library. I need them in separate movie clips for tweening. If I create a new layer... add a shape to the layer... mask the layer... finally, add a layer below that layer (with nothing on it) then all of the images I've added from the library are masked. No matter what I try with code however, I can only get one image to be masked. must you create a new mask for each image you would like to mask? I thought maybe if I could do it all in one go on a layer, there must be some code that allows one shape/mc/object to mask several clips.

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

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

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

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

ActionScript 3.0 :: Blur Everything Under A Mask (Blur Mask)?

Jan 12, 2009

I've searched every possible actionscript forum for this and i cant seem to find it. How can i create an "area" of blur which blurs everything beneath it?Like some kind of masked blur effekt?

View 0 Replies

AS3 :: Set A Mask On Movie Clip A Using Movie Clip B With .mask Parameter?

Jan 22, 2010

AS3 Movie clip does not have .setMask() method, but it has .mask property. What is the syntax to set a mask on movie clip A (mcA) using movie clip B (mcB) mith .mask parameter in AS3?

mcA.setMask(mcB);  // does not work in AS3 (no setMask() method any more)
mcA.mask = mcB;  //does not do the job either

View 6 Replies

Mask With Several Shapes?

Mar 19, 2009

Is this possible? Cause it "masks" just one shape within the mask layer.

View 7 Replies

Mask Background Of SWF?

Oct 28, 2009

I received an swf movie of a rotating brick with a blue background. I converted to fla but the blue bg and the brick are considered a single object. Is there a way to mask the bg without having to export it as single frames and masking in ps?

View 1 Replies

Using A Transparant PNG As A Mask?

Jul 1, 2009

I'm trying to use an irregularly shaped PNG as a mask but the mask is just coming out as a straight rectangle, not taking into account the transperancy of the image.
I've found many people complainng about this across the internet, and it is apperantly solvable, I just haven't been able to figure it out.
 
I've tried Trace Bitmap to vectorize the shape, since it's a single solid shape, but I'm getting weird results: [URL] I cant figure out why those lines are appearing across my mask. There's nothing there in the actual traced image, I've even ran the eraser over the affected sections to make sure.

View 2 Replies

Professional :: Get Url And Mask?

Mar 23, 2010

1- is there a way to make use of any universal URL in flash ? i mean. not needing to have the full path of the target in the button since the target is in the same folder than the page where is the flash ?
 
2- now, thats a funny one, i can make mask to make thing appear in an animation fashion style, no probleme as with any Adobe program... however unlike all other Adobe programs, it seem i am unable to find HOW make the exact reversed result... I want to make thing disappear without using the alpha channel, because i want to make it in an animation style way. It is to use for a sub-menu, where when you click the button to open the sub-menu, you see it appear nicely and in an animated way. But when you click again the button to close it, or once you picked your choice, it close the sub-menu in the exact reverse way it was open...

View 5 Replies

ActionScript 2.0 :: Mask Come In But Then Goes Out

Jul 18, 2009

I'm trying to make the image just scroll in with the current mask effect and not scroll out. You can download the source file here: [URL]. The layer to look at is "FlashAICB" there is 2 portions of code, one on the movie clip on this time line, and other on the mask inside the movie clip.

View 3 Replies

IDE :: Mask Not Working?

Apr 3, 2007

why my masking effect is not working,i mean on Library display is displaying correctly[Type:Movie],i just did draged into main pannel the movie clip,and when i run it,it just show static text,why?

View 13 Replies

IDE :: Gradient Mask In CS5?

Nov 13, 2010

Is there a way to create a gradient mask in Flash Pro CS5? I am able to get it to work in FPCS4 but apparantly the process was changed or the functionality eliminated in CS5.

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

Put A Mask Over A Snow Animation?

Nov 10, 2011

I'd like to put a mask over a snow animation like the one found here: [URL]

However, if I place a simple shape mask above the "snow" layer, it doesn't mask the snow below.

how I might be able to mask the "snow" layer?

View 2 Replies

ActionScript 1/2 :: External Png As Mask?

Apr 7, 2009

I have several pngs I need to load as masks. The user will be making different selections that requires these to be external images. I've managed to get the png working as a mask just fine when I physically place it on the timeline and assign cacheAsBitmap=true to both it and the mc to be masked. But when I try to load the png using loadMovie... it no longer behaves as a mask...

View 7 Replies

Can't Motion Tween In Mask CS4?

Jun 1, 2009

I'm building a drop down menu in flash CS4. I have followed the directions meticulously...3 times... and still I can't get a mask to accept a motion tween.

View 1 Replies

Creating An Effect Using A Mask?

Sep 18, 2009

im trying to create a flash effect using a mask layer.i want to have a text box which is invisible, and throu the timeline small peices of a mask layer will move over the text box, revealing the text. My problem is this, if i create a mask layer with more than 1 object, when i try to move the objects (for example in different directions so the text will reveal from both sides) then i get a weird movement from the objects (like the sum of both movements i wanted) so i was think maybe a layer can contain only one moving object.So i just cant figure how can i get the effect i want.

View 4 Replies

Opacity Mask In Flash?

Oct 15, 2009

is there such a thing as an opacity mask in flash?  (like the one in illustrator--or something similar?)

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 3.0 :: How To Mask A Tween

Jun 24, 2010

I have a mask:[code]Obviously the Maks moves along with the tween. How can i fix it for the mask to stay in place? Should i consider nesting?

View 2 Replies

Professional :: Mask Is Not Working

Jan 31, 2011

[code]The problem is that the mask isn't applied. Now, if I just add mask_container it adds to the stage just fine. If I mask mask_container with square, it masks just fine. They're both Sprites so both are on the display list.

View 3 Replies







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