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
Similar Posts:
May 18, 2011
I'm trying to mask multiple shape tweens for a slideshow animation I'm working on. (the transition would look just like the main animation on this page url...)
Everything works fine when I'm only masking/tweening one shape. But as soon as I add a few more dquares to the mix everything goes to hell. Can someone tell me the most efficient way to have multiple shapes tweening, while masking an image underneath them?
View 2 Replies
Jun 2, 2009
I'm making some banner ads. They work great on my staging site seen here:But they do not work great on my client's staging site. You can see that the masks are shown and there is flickering throughout:on how to solve this?I'm an expert-level user when it comes to creating artwork and doing timeline animation in Flash CS3.
View 2 Replies
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
Mar 28, 2010
why my key frames are disappearing when i turn my shape tween into a mask. I have shape tweened a mask ontop of a tree branch and all the frames are there as a plain shape tween, but when i turn that layer on as a mask the key frames go blank..
View 3 Replies
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
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
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
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
Jul 19, 2011
I have a site that is fairly complex, but was using a massive amount of CPU power, even when sitting idle on a page with no animations. I went through everything with a fine toothed comb, and couldn't find the culprit.So I just started removing layers one by one, until I found the one causing the problem.
Turns out it was a layer with an animated mask. I have a large black recatangle, that I converted to a mask, and then used a shape tween on it. Once that was triggered. The CPU usage went up 65-75%. Even when the movie was stopped on a frame that that mask didn't exist on. Once it was triggered, the rest of the time you are on the site the CPU usage is through the roof. I can do to fix that. Is there some other way I should build an animated mask?
View 9 Replies
Jun 3, 2011
I've managed to draw a custom shape onto a canvas and use that shape as a mask over an image. Is there anyway possible to crop the image and save it out in the custom shape?making whatever is outside the shape transparent? The only image cropping i can find is using rectangles, whereas i need a polygon shape.
View 1 Replies
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
Sep 16, 2009
I'm having issues with something I used to do all the time in previous version of Flash.On my Main Timeline I have a "looping" MovieClip (myArrows_mc). This MovieClip's timeline just has some simple animation,for instance some arrows that run across screen.There are no stop() actions, so once the playhead reaches the end of the MovieClip's timeline, it just goes back frame 1 and plays again.
Now I want to animate a simple shape Mask over top of the MovieClip. However, everytime the playhead gets to a keyframe in the Mask Layer, the MovieClip getting masked goes back to frame 1 and plays.
In other words, let's say myArrows_mc has 100 frames of arrow animation. On the Mask layer, I have tweened a simple oval shape from 1 side of the stage to the other. The shape tween has keyframes at frame 1, 50, and 64.
When I test the movie, everything looks fine (the arrows are looping) until the playhead reaches frame 50. Then the myArrows_mc, even though it hasn't reached the end of the arrows animation (frame 100), goes back to frame 1 and plays. Then when the main playhead reaches 64, myArrows_mc again resets to frame 1 and plays.
How can I animate a Mask over a MovieClip (not a Graphic) at authortime?Also, I need the Mask to be either a shape/motion tween or a graphic... it can't be it's own MovieClip, because I need to keep it "tied" to the Main Timeline.
View 4 Replies
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
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
Apr 6, 2010
I am trying to do some text effects by using a text mask but I can't get the mask to work. I can successfully mask a circle over a rectangle, and even mask a rectangle over text, but text over a gradient rectangle just doesn't work - I end up with the rectangle moving across the stage, but no text mask.
View 2 Replies
Aug 19, 2009
I've tried to make an alpha mask using a photo and a mask containing a alpha gradient. Using this code:
ActionScript Code:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
maskee.setMask("maskMC");
But it's not working? The 'blob' mask in the center should motion tween bigger. I can see the alpha mask in action, but the motion tween doesn't do anything. The image is freezing.
View 6 Replies
Nov 8, 2005
I have a mask with a MC with 9ss and for some reason when I resize that MC it doesnt use the 9ss. Does anyone have a fix for this?
View 12 Replies
Dec 22, 2010
I've hit a wall trying to get this to work: - I've created a movie clip that contains 14 layers, each layer is a 3D Y-rotation using a motion tween on a movieclip object (just a solid rectangle) - Trying to emulate a venetian blind transition effect When I put this "mask" movie clip on my timeline, it won't allow me to use this as a mask!! - I tried setting up the mask in AS3 as well, using imgMC.mask = maskMC; Does Flash allow this? Can I use 3D motion tweens as masks? it doesn't seem to allow it. I was hoping maybe I missed something.
View 2 Replies
Jul 27, 2010
I am creating a very simple mask using motion tweening. I created some text on a layer and made it a masked layer. Then I created a mask layer which consists of a circle that will span across the text. When I play the movie the circle does not show up at all in the frames the mask layer spans (it's purple on a black background) and the circle does not move across the text like I told it to with the motion tweening. I don't know why it's not working. For some reason the circle isn't showing on the stage at all and it's not moving across the text. I don't know if I have it set up wrong on the timeline or what. Here's the steps I followed to create the mask:
1.insert a new layer in which I named it mask and click frame 1 on this layer
2. select the oval tools on the tools panel and set the stroke to none
3. set the fill color to purple
4. draw a circle and click the selection tool and drag a marquee around the circle to select it.
5. click insert on the menu bar, click motion tween then click ok in dialog box about converting it to a symbol to be tweened
6. click the last frame in the mask layer and drag the circle to the end of the line of text
7.click mask on the timeline to select the mask layer, click modify on the menu bar, point to timeline then click layer properties
8. verify the show check box is selected in the name section, click the lock check box to select it, click the mask option button in he type section, then click ok.
9. play the movie in which the circle object covers the text on the masked layer as it moves across the stage.
View 1 Replies
Feb 16, 2009
i have the AS setting the mask, and my fonts are embedded.. but the dynamic text doesnt mask my other movieclip.my dynamic text is "fly_in" MC with the text field inside. the MC label is: "headerTxt_mask" the sheen is labeled "sheenMC" and put in a layer below "headerTxt_mask" in the same "fly_in" MC then on the first frame of my scene i have:
ActionScript Code:
fly_in.sheenMC.setMask(fly_in.headerTxt_mask);
The dynamic txt field is supposed to be the mask for the sheen, so all you see is the sheen...
View 2 Replies
Dec 21, 2011
So I've made a circular preloader made with some shapes and masks. Everything like this works. What I want to do now is add a movieclip of animations to the stage and make it look like this movie clip is in the progress circle of the preloader. So what I did is create a movieclip container to hold all of the shapes that animate on loading. I then used that movieclip container to mask the movieclip of animations.What happens when published is the movieclip of animations (the particles) loads over the shapes, but all of their masks are gone. So it's as if when I applied the mask to the container, all of it's children and their masks stopped working. Is there a way to correctly do this?
View 2 Replies
Jun 24, 2006
Why the following doesnt work:
Code:
for (var i = 1; i < 6; i++) {
var mc = "mc"+i;
var mask = "mask"+i;
mc.mask._xscale = 50;
}
But, if I change the line mc.mask._xscale to mc1.mask1._xscale, it will work. I also put a trace(mc) and trace(mask) and it spits out mc1, mc2..mc5 and mask1 to mask5.
View 3 Replies
Oct 22, 2009
i have an object that that I would like to apply a mask to like:
myObject.mask = theMask
this works fine but when I alter the rotationX property like so
myObject.rotationX = 10;
the mask no longer works, any ideas
View 10 Replies
Nov 11, 2011
I will have three seperate pages for the motion tween, mask effect and shape tween... would you make the seperately, in a different scene, as a symbol or on the same scene with the website.
View 2 Replies
Feb 16, 2010
flash mask working - transparency (wmode) is not
[Code].....
View 1 Replies
Jun 9, 2006
I've got some code that reveals a mask in that swooshy/wavy style, which starts of nice and smooth at the top of the reveal but as it gets further down the page it speeds up and doesn't look smooth.Here is the code. I've also attached the example of what it is doing.I've been looking at this code blankly for a couple days now and I'm still no furher forward.
Code:
//Global vars
mWidth = 600;
[code].....
View 1 Replies
Oct 26, 2003
I have a jpg that I load dynamically into my swf. When I try to set a mask to it doesn't work?
[AS]mymovieclip.setMask(mymask);[/AS]
View 5 Replies
Dec 22, 2003
I have a movie clip that is a motion tween with a shape with fade... Now I want to put this mc as a mask .. and showing a part of an image with lot of this mc's I know that I have to use duplicate movie clip, but the mc as mask isn't working
View 2 Replies
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