Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




SetMask



I'm doing a very simple snow animation:

i = 100;
this.onEnterFrame = function() {
i++;
duplicateMovieClip("flake", "flake"+i, i);
clipScale = Math.round(Math.random()*100);
clipPos = Math.round(Math.random()*180+flake._x);
this["flake"+i]._xscale = clipScale;
this["flake"+i]._yscale = clipScale;
this["flake"+i]._x = clipPos;
this["flake"+i].setMask(flakeMask);
this["flake"+i].onEnterFrame = function() {
if (this._y<200) {
this._y += 2;
} else {
removeMovieClip(this);
}
};
};
stop();

I have a movie clip that I want to mask all the flakes, with an instance name of flakeMask, but it's not masking. What am I doing wrong?



FlashKit > Flash Help > Flash MX
Posted on: 11-21-2005, 06:41 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Help With SetMask
I am duplicating movieclips using the "movieClip(attachMovie)" command and it displays fine.

Now, what is the correct way to create a mask for them to appear in?
I have tried placing an MC mask on the stage and calling it with "movieClip.setMask()" but it didn't work; it just appeared below my duplicated movieclips.

Thanks for any help,
:: Serviator

SetMask Help
hey,

im sure theres a way just cant put my finger on it, i was wondering if a single object can mask multiple objects, so its something like this


PHP Code:




parent1.setMask(this.parent.node1,parent.node2,parent.node3);







thanks
-Cody

Wow, I Really Don't Get SetMask...
OK, I thought I understood it. Here's the code in a sample fla:


Code:
this.attachMovie("cover", "cover", 10);

this.attachMovie("mask", "mask", 11);
mask._x = 200;
mask._y = 50;

cover.setMask(mask);


What I have is a picture onstage, and then this code draws "cover", which is just a colored box over the picture, and "mask" is a circle of solid color that I want to be the hole in the mask. However, when I run it, "cover" just disappears and I get a solid circle over the background picture.

Here's the fla.

Using SetMask With More Than One Mc
Hi all...getting a little bit confused with setMask.

I have on stage an mc called 'mask'. Now the problem is when I introduce more than one mc to the stage and impliment setMask it invariably works on one of the mc's at the expense of the others.

Ideally I would like the mask to show all of the mc's and not just one.

Here is the script:
code: //the elements below are revealed by the mask (mask)
a.setMask(mask);// first mc to be revealed
b.setMask(mask);// 2nd mc to be revealed
c.setMask(mask);// 3rd
d.setMask(mask);// 4th


Where am i going wrong?

SetMask
hi
why do the setMask method dont work for me
above flash 6 version (actionscript 1.0)?
thanx

Should I Be Using SetMask()
Hi

I'm trying to achieve the technique which is applied here by some clever chuffer:

http://www.templatemonster.com/flash-templates/13425.html

The effect I am talking about is the image gallery and the masking that takes place here once a thumbnail graphic is clicked on. There must be some layer sorting done in actionscript and the "star" mask must be applied using actionscript somehow.

Can anyone help me to get started with this?
Should I be using the setMask() method?
Should I be using attachMovie?
Should I be using linkage on items in the library or should all items already be on the stage?

If anyone can help then that'd be great.
Cheers

James

Using SetMask
Okay I have searched as much as I think I can search here, and I know this is extremely simple, yet I am stuck on it.

I wanted to try and use setMask with images loaded into my main movie using loadMovie command. I even found this thread here:http://www.kirupaforum.com/forums/sh...hlight=masking
but was having trouble getting that to work, so I am simply attempting to use setMask with a movieclip actually placed on the mainstage of my movie.

I can't even get this to work!! I have tried several combos including these:
(the name of the image mc is building and the mask is mask_mc)

onClipEvent (load) {
building.setMask(mask_mc);
}


onClipEvent (load) {
building.setMask(_root.mask_mc);
}


onClipEvent (load) {
_root.building.setMask(mask_mc);
}

When I check the code in Flash it says no errors but when I test the movie I get this message in the output window:

Scene=Scene 1, Layer=actions, Frame=1: Line 2: Unexpected '}' encountered
}

I don't get what is happening and I know it is simple.

Using SetMask
Can anyone tell why setMask isn't working in this .fla?

i've had it working on different .fla's before... something's up with
this one and I'm not sure...

thanks for any help!

SetMask Try-out
Well,

I've helped at a few topics about dragging and dropping. Slowly I started creating a fla which setMask() to a number a grouped items.

http://www.kirupa.com/forum/showthread.php?t=96130


It also uses rotation (while pressed) and drop target (the same). Perhaps this isn't as special as some others are posting but I think the dynamic approach of masking is usefull (at least I did )

Let me know what you think.

http://www.fromthemill.nl/kirupa/dropcomplex-v2.fla
http://www.fromthemill.nl/kirupa/dropcomplex-v2.swf
http://www.fromthemill.nl/kirupa/dropcomplex-v2.html



3Pinter

Using SetMask More Than Once
I am trying to use the following code to use one mc in several instances to mask a jpeg that fills my movie stage. I would like each instance to remain as a mask once the clip has played. It appears as though one will play but then disappears as the next clip(mask) plays. Not sure if this is because I am trying to use setMask more than once, or if it has to do with other issues. You can view the results (swf) here. Here is the code I have so far:


Code:
function loadMask1() {
clearInterval(loadMask1Interval);
_root.attachMovie("mask", "mask1", 1);
_root.mask1._x = -58;
_root.mask1._y = 190;
_root.setMask(mask1);
}
loadMask1Interval = setInterval(loadMask1, 0);

function loadMask2() {
clearInterval(loadMask2Interval);
_root.attachMovie("mask", "mask2", 2);
_root.mask2._x = 59;
_root.mask2._y = 190;
_root.setMask(mask2);
}
loadMask2Interval = setInterval(loadMask2, 1000);
stop();

Help With SetMask
Essentially, I am trying to fill a graphic with a pattern, which is loaded externally via XML.

This is my code (it doesn't work):


ActionScript Code:
selectedGraphic = _root["container" + (selection-1)];    patternToBeMasked = _root.createEmptyMovieClip("pattern" + (selection-1), getNextAvailableLevel());    patternToBeMasked.loadMovie(fileName);    patternToBeMasked.setMask(selectedGraphic);


The graphics are loading properly, but the setMask command seems to have no effect. Is there something else I should be doing? Is setMask sensitive to levels or how movieclips are nested within each other?

SetMask()
Hi all,
Does anyone know if this bit of code can be shortned?


pos_mc.setMask(pos_mcMask);
scrubber_mc.setMask(pos_mcMask);
progressbar_mc.setMask(pos_mcMask);
loadingbar_mc.setMask(pos_mcMask);

Big THANKS guys,
M

Using SetMask
Okay I have searched as much as I think I can search here, and I know this is extremely simple, yet I am stuck on it.

I wanted to try and use setMask with images loaded into my main movie using loadMovie command. I even found this thread here:http://www.kirupaforum.com/forums/sh...hlight=masking
but was having trouble getting that to work, so I am simply attempting to use setMask with a movieclip actually placed on the mainstage of my movie.

I can't even get this to work!! I have tried several combos including these:
(the name of the image mc is building and the mask is mask_mc)

onClipEvent (load) {
building.setMask(mask_mc);
}


onClipEvent (load) {
building.setMask(_root.mask_mc);
}


onClipEvent (load) {
_root.building.setMask(mask_mc);
}

When I check the code in Flash it says no errors but when I test the movie I get this message in the output window:

Scene=Scene 1, Layer=actions, Frame=1: Line 2: Unexpected '}' encountered
}

I don't get what is happening and I know it is simple.

Using SetMask
Can anyone tell why setMask isn't working in this .fla?

i've had it working on different .fla's before... something's up with
this one and I'm not sure...

thanks for any help!

SetMask
Hi,

I am having a problem. When I call setMask as in the code below, it appears to "delete" or "destroy" the Diplacement map fitler that I assigned to the movie clip that I am trying to mask. However, if I mask the same clip using layers and the timeline it works fine. Please help if you can.

import flash.display.*;
import flash.geom.*;
import flash.filters.*;
//visible drop, drop and disBG are all movie clips
var dropMap:BitmapData = new BitmapData(visibledrop._width, visibledrop._height, true, 0xFF000000);
dropMap.draw(visibledrop, new Matrix(), null, null, dropMap.rectangle, false, 0xffffcccc);
pt = new Point(drop._x, drop._y);

disFilter = new DisplacementMapFilter(dropMap, pt, 1, 1, 50, 50, "IGNORE", 0x000000, 0x000000);
disbg.filters = new Array(disFilter);
disbg.setMask(drop);

SetMask With CreateEmptyMovieClip?
Hi Flash World,

I'm creating an empty movie and after that I set this created movie as a mask to another movie.

f.i:
_root.createEmptyMovieClip ("floor", 1);

... lineTo and beginfill to create a black square ...

_root.mymovie.setMask(_root.floor)


The problem is that I don't want to set all the square as a mask... all its inside part ... I'd like to put that square as mask but with a circle inside that it wouldn't be possible to see through it...

What I want is to create a Mask with createEmptyMovieClip, some geometrical drawing inside and some parts of it to be possible to see through them and others no... is it possible? has something to do as when I create a gif with some color set to be transparent?

Thank you very much for your time.

Problems With SetMask()
Hey everyone.

I'm having an ActionScript crisis. Please HELP!

I'm making a slide show and I want to load each picture from file using

loadMovie("Photos/pic"+pic_num+".jpg", "picture");

I have a blank mc called picture on the stage and all I want to do is three things in order to change pictures... make the mask mc and the picture visible, set the mask mc to mask the photo.. and play the mask.... pretty simple huh?

I tried it with the picture on the stage and initializing it as being invisible and then when needed set it to visible, set the mask, and play..
it works!

like this:

ceremony._visible = true;
ceremony.setMask(flower_wipe);
flower_wipe.gotoAndPlay(1);

ceremony is the picture instance name and flower_mask is the mask movie clip.

I try the exact same thing again, but this time I'll load the picture from file like this:

loadMovie("Photos/pic"+pic_num+".jpg", "picture");
flower_wipe._visible = true;
picture.setMask(flower_wipe);
flower_wipe.gotoAndPlay(1);

the mask movie simply plays overtop of the picture instead of masking it. I've been staring at this stupid thign for long enough now. Any help anyone could offer would be greatly appreciated.

Problems With SetMask()
Hey everyone.

I'm having an ActionScript crisis. Please HELP!

I'm making a slide show and I want to load each picture from file using

loadMovie("Photos/pic"+pic_num+".jpg", "picture");

I have a blank mc called picture on the stage and all I want to do is three things in order to change pictures... make the mask mc and the picture visible, set the mask mc to mask the photo.. and play the mask.... pretty simple huh?

I tried it with the picture on the stage and initializing it as being invisible and then when needed set it to visible, set the mask, and play..
it works!

like this:

ceremony._visible = true;
ceremony.setMask(flower_wipe);
flower_wipe.gotoAndPlay(1);

ceremony is the picture instance name and flower_mask is the mask movie clip.

I try the exact same thing again, but this time I'll load the picture from file like this:

loadMovie("Photos/pic"+pic_num+".jpg", "picture");
flower_wipe._visible = true;
picture.setMask(flower_wipe);
flower_wipe.gotoAndPlay(1);

the mask movie simply plays overtop of the picture instead of masking it. I've been staring at this stupid thign for long enough now. Any help anyone could offer would be greatly appreciated.

SetMask Is A Bit Sticky
this is wierd, when using the code below I would think it would move the image not the box I am drawing inside it, it seems that I am not even dawing a box, I can't see it any where???

if you uncomment the setMask, my box appears but then my picture is gone!

any thoughts on why this is happening?


Code:

stop();

_root.createEmptyMovieClip("my_mc", 1);
my_mc.loadMovie("charlie.jpg");
_root.onEnterFrame = function(){
if(my_mc.getBytesLoaded() >= my_mc.getBytesTotal() && my_mc.getBytesTotal() > 0){
t_mc = _root.createEmptyMovieClip("t", 2);
t_mc.beginFill(0xFF0000, 100);
t_mc.moveTo(my_mc._x,my_mc._y);
t_mc.lineTo(my_mc._x+my_mc._width, my_mc._y);
t_mc.lineTo(my_mc._x+my_mc._width, my_mc._y+my_mc._height);
t_mc.lineTo(my_mc._x, my_mc._y+my_mc._height);
t_mc.lineTo(my_mc._x, my_mc._y);
//my_mc.setMask(t_mc);

my_mc.onEnterFrame = function(){
my_mc._x--;

}
}
}

SetMask & Duplicate
hi
how ican join the duplicate with the mask
the duplicate will be the mask
_______________
duplicateMovieClip("mc","mc"+i,i);
mm.setMask ("mc"+i)
i++
__________________
thank you...

LoadMovie And Then SetMask
I am trying to do the following:
createEmptyMovieClip("myLogo", 0);
createEmptyMovieClip("myLogoMasker", 1);
myLogoMasker.attachMovie("masker", "masker1", 2);
myLogoMasker._x = 322.5;
myLogoMasker._y = 272.5;

myLogo.loadMovie("logo.swf");
myLogo._x = 322.5;
myLogo._y = 272.5;
myLogo.setMask(myLogoMasker);


and all I see is a red square (the mask) over the loaded 'logo.swf' file. Seems like the setMask is just not working. Is this similar to the onData and onLoad functions getting over-written problem after loadMovie is called?

Thanks.

A SetMask Question?
Hey 2 alll

Is there anybody out there who can give me a little example how 2 set a mask. .i don't mean a normal mask though but an actionscripted mask.

the thing i want 2 do is make a square movieclip, and make a circle movieclip. i want the square 2 be as big as the stage and act like a mask.
Then i want 2 place the circle outside the masks range.
Then when the circle moves 2 the right it will only be appear under the squared mask.
so when it crosses the ouline of the square the circle disappears again.

if somebody could shed some light on this i would be very pleased.
Greetzzz to all that is actionscript.

Deamothul - the script keeper -

MovieClip.setMask();
hey guys,
i am trying to mask one movie clip with another usign setMask();. Only one problem that i have is that masked movie clip inherits the color of the mask. My mask is blak - everything that is masked turns black.
mask_mc.setMask(masked_mc);
//everything is masked_mc turns black

any thoughts?

thanks

The Problem Of SetMask
i use setMask in my flash,but it have no action
my as is : a.setMask(b);
anything wrong??
why ..why i use this part successful in another flash

who can tell me why and how to do
thank you

MovieClip.setMask()
I would like to know how to use MovieClip.setMask(). I want to apply a mask (with animation in it) to each jpeg I load into a container. Is this possible or does the setMask only work on an mc that is already on the stage?

_root.createEmptyMovieClip("container",1);
container.loadMovie("image1.jpg");
container.setMask(mask)

Has setMask() been used on the loading of the images in this website?

http://www.federicafontana.it/index2.html

If you could point me in the direction of a tutorial it would be appreciated.

Thanks

SetMask Problem
Any idea what's wrong with this:

createEmptyMovieClip ("mc", 10);
mc.loadMovie("pic1.jpg");
attachMovie("mask","mcMask",20);
mc.setMask(mcMask);

In particular the mcMask movie clip is not working as mask , it is displayed as an ordinary movie clip.

Setmask Problem
I am trying to set a mask dynamicly, which works fine. But when I load an image into the masked clip, it get's unmasked?

Is there any way to fix this?

MovieClip.setMask()
i everybody, sorry for my english

i'm trying to make two seprate mask on the same image with .setMask(), but only one appear to be fonctionnel the other one doesn't. is it possible??? if yes does anybody knows how to do it

Thanks
hortense

SetMask Not Working
Hello,
I have a clip dynamically created involving some API . I want to mask by this clip some bitmap converted to symbol by setMask action. But it does not work. Any idea_? I have included the source file. I know It looks terrible, but that is the way I deal and try to get on new techniques. So do not be frightened.
Thanx for reply

SetMask Not Working
Hello,
I have a clip dynamically created involving some API . I want to mask by this clip some bitmap converted to symbol by setMask action. But it does not work. Any idea_? I have included the source file. I know It looks terrible, but that is the way I deal and try to get on new techniques. So do not be frightened.
Thanx for reply

SetMask But No Animation
hello i've got a problem with flash MX 2004 PRO
i've created a function that works fine in this function
a MC is applied as a mask on another MC with setMask()
that also works fine.

but when i animate this mask MC it does not move on the
stage. What the f*ck!!! where my thoughts about it, then when my animation got around for his second loop it did moved, but not
all of then just one (i had about three masks on the stage)

what's wrong?

see http:\www.cckp.nlFla for the source file

SetMask Question
I'm tryn to use setMask( ); in some code but I can't seem to set more than onemask to oneimage.

is there a way?

thank you god.

Setmask() Problem
_root.createEmptyMovieClip("test",1)
and use moveTo() and lineTo() to draw a line,
then use setmask(test) mask a pic,
but the result is the two object disappear.
any method can solve it ?

DuplicateMc And SetMask Fn's
hi. this doesn't work.

Code:
on(rollOver){
for(n=1; n<=9; n++){
maskmc.duplicateMovieClip("maskmc"+n,n*10);
maskee.setMask("maskmc"+n);
this["maskmc"+n]._x = 100;
this["maskmc"+n]._y = n*20;
this["maskmc"+n].gotoAndPlay(2);
}
}
on(rollOut) {
this["maskmc"+n].removeMovieClip();
maskee.setMask(null);
}


8 links, vertical every 20px. code in on invis buttons over each links. onrollover, i want a mask to appear at the same _x and _y as the button, then play, and go away on rollout.

how should it be scripted?

SetMask() Problem
Okay, couldn't find anything in the archives, so here goes:

I'm working in MX 2004 and trying to apply a dynamic mask. Instead, all I get is a big grey rectangle sitting on top of what it's supposed to be masking. Anyone have any idea why setMask() might be failing?


Code:
function changePage( page, dir )
{
createEmptyMovieClip( "pgAdvance", 0 );
with( pgAdvance )
{
_x = 750;
_y = 0;
}
createEmptyMovieClip( "pgReveal", 2 );
with( pgReveal )
{
_x = 450;
_y = 0;
}

createEmptyMovieClip( "mkAdvance", 1 );
with( mkAdvance )
{
beginFill( 0xCCCCCC, 100 );
moveTo( 0, 0 );
lineTo( 0, 384 );
lineTo( 1, 384 );
lineTo( 1, 0 );
endFill();
_x = 750;
_y = 0;
}
createEmptyMovieClip( "mkReveal", 3 );
with( mkReveal )
{
beginFill( 0xCCCCCC, 100 );
moveTo( 0, 0 );
lineTo( 0, 384 );
lineTo( 300, 384 );
lineTo( 300, 0 );
endFill();
_x = 750;
_y = 0;
}

loadPages( page, "pgAdvance", "pgReveal" );

pgAdvance.setMask( mkAdvance );
pgReveal.setMask( mkReveal );

advancing = setInterval( advance, 50 );
}
Rys

Problem Of SetMask
hello everyone~
i have two movieclips
one is image ,another is traffic circle shape
then i use
image.setMask(tc);
the problem is why my mask shape is not a traffic circle???
i set image layer mask traffic circle layer,the shape is the traffic circle

how can i got mask traffic circle shape with actionscript?

Problem With SetMask
edit:
figured it out.

SetMask & DuplicateMC
I am attempting to create a mask from a MC that I am duplicating and I can't get it to work.

I a one frame MC labeled "transition" with two layers. On one layer I have an MC that is a long line that fades up. For the actionscript on the second layer I have:

for (i=0; i<80; i++){
duplicateMovieClip("transition","transition"+i,i+1 00);
setProperty("transition"+i,_y,random(400));
}


Then in the root movie I have another MC labeled "pics" with one picture in it. Below this layer I have another picture that i want to display after the mask.

In my actions frame I have _root.pics.setMask(_root.transition);

It looks like the transition clip with the fading line is just showing the mask in a frozen position, it isn't going through the fade-up process and it is only duplicating a few times. I want line that fades up to duplicate across the scene to slowly reveal the picture underneath.

SetMask Question
I've got the following code. I want to attach a movie, set it's initial place then movie it up in time with the 'object'. What happens is the mask flashes on then off. It doesn't stay on. If I switch off the setMask code the attached 'masker' does exactly what it's meant to do! Is there something here I'm missing with the setMask attribute?

Thanks,

ss



Code:
function startShift(passVar) {
_root.attachMovie("masker", "masker", 100, {_x:passVar._x, _y:passVar._y});
openingLine.setMask(_root.masker);
startInterval = setInterval(tabMover,20, passVar);
}
function tabMover(object) {
trace("startShift " + object._y);
destination = 30;
currentY = object._y
object._y -= (currentY-destination)/7;
_root.masker._y = object._y;
if (object._y == destination) {
clearInterval(startInterval);
trace("()())())()()()()()()()()()()()cleared interval");
}
}

SetMask On _root From MC
is what I should be doing...

Can anyone please tell me why this doesn't work?

I've put the following code on a button in a movieclip to load a jpg into an empty movieclip on the maintimeline. Works fine.
But I also want to set a mask - I can attach the movieclip I want to use as a mask from the library - fine! - but it doesn't turn into a mask.

Code goes as follows:
on (release) {
loadMovie("carl_big.jpg",_root.fotoBig);
_root.attachMovie("mc_dots", "maskdots", 50);
setProperty(_root.maskdots, _x, 662.3);
setProperty(_root.maskdots, _y, 345.4);
_root.fotoBIG.setMask(_root.maskdots);
}

Obviousley I'm missing something. Using MX2004.

Any hints appreciated! (as usual...)
Snowgirl

SetMask Placed Wrong..but Then Where.
Hi
Im doing a scratchcard thingy... I use this code to duplicate an MC where the mouse is down and I would like for it to mask the underlying layer..
It does that but as soon as you move the mouse the mask just placed get replaced by the new MC instead of staying... nonsens?

Hmm I need for the shapes attached to the scene to stay there and keep masking..and not dissapear when I move the mouse...sort of ruines the point of scratching..

the code


Code:
pressing = 0;
i = 0;
_root.canvas.onMouseDown = function() {
pressing = 1;
};
_root.canvas.onMouseUp = function() {
pressing = 0;
};
_root.onEnterFrame = function() {
if (pressing == 1) {
//trace(i);
attachMovie("coin_mark", "coin_mark"+i, i+5);
this["coin_mark"+i]._x = _xmouse;
this["coin_mark"+i]._y = _ymouse;
canvas.setMask("coin_mark"+i);
i += 1;
}
};


thanks for any help given....

SetMask Question
I'm using this script inside a forloop but I can't get it to work. Does the setMask function not work this way?

_root["grassMain"+pile].setMask(_root.hill);

SetMask Problem
I'm trying to use setMask to mask a certain area of the screen. Here is my code:


Code:
addLinks = function(){

attachMovie("links_holder","holder_mc",98);
_root.holder_mc._x = 374;
_root.holder_mc._y = 155;

attachMovie("links_mask","mask_mc",200);
_root.holder_mc._x = 374;
_root.holder_mc._y = 155;

holder_mc.setMask("mask_mc");

for(i=0; i<linksArray.length; i++){

_root.holder_mc.attachMovie("link","link" + i + "_mc",i+100);
_root.holder_mc["link" + i + "_mc"]._x = 0;
_root.holder_mc["link" + i + "_mc"]._y = 0 + (i * 30);
_root.holder_mc["link" + i + "_mc"].link = _root.linksArray[i].linkText;
url = _root.linksArray[i].linkURL

_root.holder_mc["link" + i + "_mc"].onRelease = function(){

getURL(url,"_blank");

}
};
};


This code isn't working. I have a movie clip holder that holds a bunch of movie clips, and I want to mask the movie clip holder so that if the movie clip holder extends beyond a certian y value only a portion of it shows. Can someone please help me.

SetMask Not Working
I'm trying to use setMask with an item from the library like this :
//
on (release) {
_root.attachMovie(maskmc, maskmc1, 1);
_root.tomask.setMask(maskmc1);
}
//
Is there something I'm doing wrong, I can't seem to get it to work.

Multiple SetMask's
I was curious if you could use multiple symbols to mask a single symbol with the setMask syntax, I've tried a few different things, and cant seem to get it to work, I'd have to use like 15 instances of the same symbol to have all my masking symbols work, which would probably kill preformance.

Setmask Not Working
I could explain the problem but you would get bored before you understood it,
so im gonna say this:

the setMask is just plain not working for me.
mask clip is created in author tool.
links-to-be-masked created dynamically
links need to be masked, and then slide out from the edge.
i tried calling setmask in several ways
none of which work.

and then im gonna post the fla
http://www.ito-y.com/gregland/nav/research.fla

and same directory myLinks.xml support file
and the same directory index.html to view the build

and then im gonna throiw myself @ the mercy of the community

thanks for a minute if u can,
Greg

Duplicate And SetMask
Can anyone tell what is wrong with this script. I need to mask three duplicated MC's, but only the original duplicated MC is affected by my setMask


Code:
i = 1;
countMC = 3;

while (i < countMC) {
duplicateMovieClip("my_mc", "my_mc"+i, i);
_root["my_mc"+i]._x -= ((Stage.width+230)/countMC)*i;
_root["my_mc"+i].setMask(mask_mc);
_root["my_mc"+i].swapDepths(1);
i += 1;
}

Filters And Setmask
Hi,

i am loading movies into a container that is masked off using setMask(), however when i apply a filter (blur) the blur is visible outside the masked area.. anyone know a fix?

cheers,
Gareth

SetMask() For LoadMovie Possible?
I tried to apply setMask() method on loadMovie() - it not works or make I someth wrong?

loadMovie ("main_anim.swf", container_mc_main);
container_mc_main._x = 477.8;
container_mc_main._y = 49.5;
trace ("container_mc_main.getDepth() = " + container_mc_main.getDepth ());
circleMask_mc._x = container_mc_main._x;
circleMask_mc._y = container_mc_main._y;
trace ("circleMask_mc.getDepth() = " + circleMask_mc.getDepth ())
container_mc_main.setMask (circleMask_mc);

Copyright © 2005-08 www.BigResource.com, All rights reserved