ActionScript 2.0 :: Masking Duplicated Movie Clips?
Oct 12, 2007
I used a tutorial from here, that creates snow, and changed it up a bit so that it now creates fizz in a soda. however I'm running into a snag.Is there any way to mask duplicated movieClips so that they only show up in a certain area? Or some way to set parameters to accomplish the same effect? (i.e. I want the bubbles to only appear in the area of the cup, and not all over the place).Right now I have just set X and Y values to do this, but the cup is angled and not square, so it doesn't looks quite right.I have tried setting a mask on a layer above which the duplicated movie clip sits, and also have tried setting the depth of a mask_mc so that it is well above any of the layers that the bubbles are generated on (by use of a for() loop), but nothing works.
View 2 Replies
Similar Posts:
Jul 14, 2003
How would one go about masking movie clips that are nested within other movie clips?
I have a photo gallery slider type of thingy that loads jpegs with loadMovie into containers. I can mask the entire movie clip but as for the containers,...well I just dont know whats going on here.
View 7 Replies
Jan 29, 2010
how to duplicate movie clips which allow me to drag every movie clip duplicated.
View 4 Replies
Feb 25, 2009
I always wanted Flash to emulate After Effects' animation environment after Adobe acquired it from Macromedia,After a bit of struggling and plenty of cussing, I'm finally starting to get used to the new interface and the behavior of the motion editor/new motion tween protocols. That said, I'm still having trouble with a few concepts, namely viewing animated masks inside "3D" movieclips. why you can't preview animation happening inside a movie clip on the stage. Is there any technical reason I'm too blind and/or stupid to notice? Otherwise it seem like something they'd allow to do in all this time!
View 8 Replies
Nov 22, 2003
Im working on a rock climbing game, and used duplicateMovieClip() to make all the snow. When the character gets to the top of the mountain, the movie goes to the next scene, but the duplicated snow is still there. Look through the .fla at [URL]
View 5 Replies
Apr 21, 2004
i am currently making a game , and for some reason the hittest on my duplicated movie clips isnt working i know how to do them , and know it should be working , because it works on one of the movie clips but none of the others so im guessing it something to do with depth?
View 2 Replies
May 6, 2005
How do I change the y position for the duplicated movie clips I have created?This is the code I have used to create the movie clips. [code]
View 14 Replies
Apr 25, 2007
I am trying to create a hitTest between two duplicated objects. The code below is on a bullet. Bullets hit "bad" MCs that are called bad + x (X being a number from 22 - 40). I can't get it to work. I belive that I am not referencing the duplicated MCs correctly
Code:
for (x=22; x<42; x++) {
if (this.hitTest("_root.bad" + x)) {
[code].....
View 2 Replies
Nov 27, 2007
I've created a tsunami menu made up of duplicated menu items. Each menu item should have a rollover and selected state of 240% which works fine. When a menu item has been selected it jumps to another frame but until the user interacts with it it should loop through the different categories.My problem is that I can't get the menu items to scale big while it is looping through the different categories on the matching category frames.
View 1 Replies
May 6, 2005
How do I change the y position for the duplicated movie clips I have created?
This is the code I have used to create the movie clips.
var i = 1;
while (i <= 5){
duplicateMovieClip("bar", "bar" + i, 0);
i++;
}
View 14 Replies
Oct 30, 2011
On my stage I have generated a series of Movie Clips at runtime. They drift around in a semi-random motion, causing them to occasionally overlap each other - is there any way of preventing them from doing this?
View 3 Replies
Feb 4, 2005
I have the code tucked under a layer of some text, but the hearts end up covering up the text.
View 9 Replies
Mar 21, 2007
I am making a small game in which you are a little shooty spaceship type thing, and there are duplicated mines falling around you. When you press space, the shooty spaceship type thing fires duplicated bullets. How do I check a hittest between any bullet
View 3 Replies
Jul 26, 2007
I have a problem in loading pictures to duplicated movie clips. I have a dynamic sliding menu and I wanna load images to submenus. However I havent succeeded yet.
Here is the code:
setProperty("Rub", _visible, false);
setProperty("subrub", _visible, 0);
bas._visible=false
[Code].....
View 3 Replies
Apr 21, 2004
i am currently making a game, and for some reason the hittest on my duplicated movie clips isnt working i know how to do them , and know it should be working , because it works on one of the movie clips but none of the others so im guessing it something to do with depth? i will give the code if any1 replys
View 2 Replies
Apr 14, 2005
I have a fire animation that i want to freeze (ha!) on the last frame of my swf. So basically the fire is buring and i want all the tweened flames inside duplicated MC to stop so it looks like a snapshot of whereever all the flames currrently are.Everything else in the movie is stopped too, so i was wondering if there was a global stop all motion command or the best way to freeze my fire
View 2 Replies
Feb 4, 2005
I have some code that has hearts falling from top to bottom and randomly float off the screen. The problem is the layer order. I have the code tucked under a layer of some text, but the hearts end up covering up the text. So would this be a depth problem? What would be some code to tell the newly duplicated movie clips what layer to appear on(as in appear below the text layer in the timeline).
View 9 Replies
Jul 9, 2010
wat i want to make.. is a graph plotter.. i add movie clips on the stage and a line should connect them all.. but im having a fkload of problems in solving that..here is the code for adding the movie clips.
function makeABox(e:Event):void {
var newBox:myMC = new myMC();
addChild(newBox);
[Code].....
View 1 Replies
Nov 27, 2002
I'm trying to make duplicated movie clips scroll down the screen (asteroids) for an experimental game but I just can't get it working. :-
I'm using this to duplicate the movieclip:
i=i+1;
duplicateMovieClip ("m0", "m", i);
and trying to get the movieclips to scroll down with this:
p=eval("m" add i);
p._y+=2;
make renamed duplications scroll down the screen?
View 14 Replies
Sep 21, 2006
What (if any) is the actual differance between removeMovieClip() and unloadMovie() for use in erasing duplicated movie clips (using duplicateMovieClip() )? I was looking over some of my code and noticed I used both without much rhyme or reason as to why one over the other.
View 4 Replies
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
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
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
Dec 12, 2006
I'm working with a holiday card and can't figure out how to mask the snow that I've generated.
View 1 Replies
Dec 23, 2006
I'm making a snowglobe for the holidays and as such, I'm looking to have it snow INSIDE the globe only. What I've done is make a mask for the globe so that the "snow" movie clip will only be visible within the globe. I also have a duplicate movie action in my main movie to create a lot of snow.
The problem, though, is that the duplicates do not get masked like the main snow clip. Is there a way to fix this?
[Code]...
View 5 Replies
Nov 22, 2005
I have a clip, duplicated to realize the titles of a menu. How can i use these duplicated clips to load the submenus? (The submenu is another clip, duplicated using the numbers contained in the same array)
My script (or, i'd better say, Stringy's!) is:
/*
array: its lenght gives me the number of titles, each number inside the quantity of submenu for each title
*/
[Code]....
View 1 Replies
Dec 27, 2005
is there a posibility to target al of the clips (at once) i duplicated below?[code]
View 5 Replies
Mar 15, 2009
There r two function which I compare for effectiveness, createFlake uses a symbol in the library to duplicate and createFlake2 uses programming drawing to create the same looking shape.When I run this file with createFlake calls it consumes about 70% of my CPU and when I use createFlake2 my CPU is 100% busy.I would prefer to use pure programming here so my question is: Is it a "normal" result because of Flash implementation or am I doing something in a not optimal fashion?
Code:
// copying from Library FAST
function createFlake(i) {
[code]....
View 2 Replies
Jul 2, 2009
I have a dynamic menu using actionscript. All buttons and texts are created by ctionscript, not on the stage.After the script I create a movieclip on the highest depth, draw a filled rectangle on it and make it the mask to all like this:menu.swf:
this.createEmptyMovieClip("mmask",1000)
...
mmask.lineTo.....
[code]....
View 1 Replies
Oct 2, 2003
I duplicate a MC 6 times,
for(i=1;i<=6;i++){
this.MovieClip.square.duplicateMovieClip( "square"+i,i*1000);
//
[code]......
View 5 Replies