ActionScript 2.0 :: SetMask 2 Times On Same Mc

Aug 19, 2009

Suppose I have 3 mc's : mc1, mc2 and mc3.trying to do mc1.setMask(mc2) works fine.then if I try to apply another mask on mc1, the last mask will work but the first one already applied will not.[code]Only the last mask will show.I tried to search for documentation on setMask but without any luck.

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Loop A Flash Piece 3 Times And Stop After 3 Times?

May 11, 2005

I have a flash piece that I want to loop 3 times and then stop.

View 2 Replies

AS 3 :: FirstOne() Executed 3 Times And Then SecondOne() 3 Times?

May 30, 2010

i'm new to AS3. how do i go about executing a custom function n number of times and then executing another function n number of times repeatedly?

eg.

function firstOne():void { }

function secondOne():void { }


i need firstOne() executed say 3 times and then secondOne() 3 times and then firstOne 3 times again and so on. i'm trying to move a movieclip 3 times to the left and then 3 times to the right continuously.

View 2 Replies

ActionScript 1/2 :: Cannot Get SetMask To Work At All

Jul 24, 2009

I am using Flash CS3 with ActionScript 2.0. I am trying to load a jpg in and display it in an existing movieClip. I have created a movieClip on the stage with an instance name of maskMovieClip. I then create a new/empty clip within maskMovieClip, and then load the new clip with the jpg and then try to use the setMask to switch them. I did read that it won't work if jpg's have not finished loading, so I put a for/next loop in my example just to make sure the clips are loaded.

Here is my test code:
//How to reproduce problem...
//Create one movie clip on the stage with an instance name of maskMovieClip.
//Create two small jpg pics called pic1.jpg and pic2.jpg.
//This correctly loads and displays a jpg into maskMovieClip
maskMovieClip.loadMovie("pic1.jpg", 1);
[Code] .....

View 5 Replies

ActionScript 2.0 :: SetMask() For LoadMovie Possible?

Jun 17, 2006

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;

[code]....

View 2 Replies

ActionScript 3.0 :: SetMask - Mask All The Lists?

Jun 30, 2009

i need something in this script for make mask to all the menu now i stell don't understand why just last menu is mask i have var( i )Start from 0 to last number the menu example: last number menu is 9 so will mask just the menu number 9 i need not just to mask menu number 9 i need to all the menu menu loanding from xml and i make the script for linkage i tray so much for finish the problem for mask all but .... this is script:

[Code]...

View 9 Replies

ActionScript 2.0 :: Lineto & Setmask Don't Work

Jun 17, 2010

I've got a movieclip of a rectangle in my library which I place on stage to attachMovie. Then I create an empty movieclip which I want to use as a mask on that rectangle clip through setMask. Users kan draw into that empty movieclip. My intention is that only those areas of the rectangle clip become visible where the user is drawing a line. So I used this:

[Code]....

View 4 Replies

SetMask() Inside A Movie Clip?

Jun 26, 2010

I'm working on an AS2 website that uses some alpha gradient masks in its header's looping animation. If I put this animation on the main timeline my masks work perfectly [setMask()], but, because the header needs to be a movieclip, my masks don't work at all.?

View 2 Replies

ActionScript 2.0 :: SetMask Using Mouse Trailer (MX)?

Jun 1, 2005

i have had this file sitting around a while and what i would like to do is make the blob/bubbles mouse trailer actually set as a mask for an image or mc. all the code sits on a small control clip just outside the stage.

here be the fla - blob.fla

also any hints on how to get this little thing to work in MX 2004 ?

View 4 Replies

ActionScript 2.0 :: SetMask Put Online Not Working?

Jun 22, 2006

Got a movieclip masked by another one with onLoadInit and setMask. Everything works correctly on local but when I use the same swfs hosted on my "server" the mask simply doesn't work, losts its function and shows over the other movieclip as a box.

View 2 Replies

ActionScript 2.0 :: Applying SetMask To One Level But Not Other Ones Below?

Dec 1, 2004

I am using the following code to generate a television unit that will load in various SWF files and obviously, I want to mask the viewing area of the television ONLY. The SWF is loaded on level 4, while the panel and buttons appear on lower levels. Problem is when I attach a mask from the library to the movieclip containing the SWF, nothing happens.

Here is my code...whats wrong with my final section (MASK)?

//create empty movieclips to hold contents:
//***** DYNAMIC PANEL - Level 1 *****
myExpanded = this.createEmptyMovieClip("expandedContainer", 1);
expandedContainer.attachMovie("expandedPanel", "expanded_mc", 1)

[code]....

View 7 Replies

AS :: Setmask Doesn't Create Mcmask Dynamically

Dec 2, 2009

i want tht the part revealed by the mask mcmask movieclip created through AS only shud be displayed...but it doesnt.i create the mcmask dynamically and set its width n height dynamically. through AS.when i trace the mask width it shows it as 0.

View 3 Replies

Professional :: SetMask() INSIDE A Movie Clip?

Jun 26, 2010

I'm working on an AS2 website that uses some alpha gradient masks in its  header's looping animation. If I put this animation on the main  timeline my masks work perfectly [setMask()], but, because the header  needs to be a movieclip, my masks don't work at all.
 
It doesn't matter whether I tick the cacheAsBitmap property in the properties panel  or I set it to true with AS for both the mask and masked mc's. I even  tried with both, ticking and AS at the same time, but as long as my  masks are inside the header mc, they're not working.

View 6 Replies

ActionScript 1/2 :: SetMask, Using A Gradient Mc To A Loaded Image?

Jan 7, 2011

I've tried to be very descriptive on title, cause i have found around loads of "setmask does not work on dynamicly created mcs'. My case quite differs. =x
 
I've got 2 mcs, one holds an gradient and the other is the loader. The image is loaded using the loadmovieclip class.
 
First I've tried to set the code in the mc that holds both. Failed. Also tried setting on parents, and onLoadInit. All failed.

Ps: Surelly I've done double testing for each time I've tried. Firstly I would try placin an image inside the loader mc, to be sure the code was working without the load, and only then check with loading.

View 3 Replies

ActionScript 2.0 :: SetMask Not Working With Loaded Images?

May 14, 2004

I am trying to use apply setMask to a movieclip which loaded external jpg's.

The set mask doesnt work and returns the following error:

*** Security Sandbox Violation ***
SecurityDomain 'domain@demoImageName.jpg'
tried to access incompatible context 'file:///C|/DOCUME%7E1/jay/LOCALS%7E1/Temp/Untitled%2D1.swf'

View 3 Replies

ActionScript 2.0 :: Dynamic Text Appear With SetMask Alias

Mar 4, 2005

I have a movie with some dynamic text, which is embedded and has aliasing turned on -- it is crisp. This text field is behind a mask that I created using setMask so the text appears. The problem happens when I publish my movie as player version 6. When I do this, the text looks as if the field was on an odd pixel, for example x = 60.4. But it's not.

View 8 Replies

ActionScript 2.0 :: SetMask Doesn't Work From Within A Symbol?

Nov 30, 2007

I've attached two files that are exactly the same except in Mask_symbol.fla I copied the frames from the _root and put them in a symbol.When you open the files you'll see the mask on the _root gets applied at runtime like it should but once you take the exact same frames and put them inside a symbol it no longer works.

View 1 Replies

ActionScript 2.0 :: SetMask Ignored On Dynamically Loaded Clip

Jul 30, 2008

I am using movieClipLoader to load a swf into slideHolder

[Code]...

I know that is the right way to do it, but no luck! Whats wrong with it?

View 5 Replies

ActionScript 2.0 :: Using SetMask Method With Multiple MovieClips?

Dec 3, 2004

Trying to use the setMask method and having trouble. I have it working on my dynamic text, but I am trying to mask the movieclip that is loading my image from the server. I have a moviclip called Comments. And in it I have movieclips called textbox and image

I have one setMask AS like this for the textbox
this.textbox.setMask(this.mc_mask2); - this one works

But for image I have the same thing and it doesn't work. I have
this.image.setMask(this.mc_mask);

View 3 Replies

ActionScript 2.0 :: SetMask Over Dynamically Loaded Images

Oct 27, 2002

if it's possible to apply mask over images loaded with loadMovie(), be it physical or through setMask.

View 6 Replies

ActionScript 1/2 :: Masking Entire Flash Movie With SetMask?

Jul 8, 2009

I have a long linear flash presentation with many scenes. Besides web playback my clients asked for a standalone projector file as well. Upon making it full screen with FS command during playback, initial off stage area elements are visible when they animate into the stage on widescreen monitors...for example text moving in from left. I don't want to mask every layer in over thirty something scenes...is there an easier way by applying a mask in actionscript to the movie itself? I know setMask() works for movieclips but is there a way to apply the setMask() method to the entire presentation in AS2 because the following did not seem to work:[code]

View 3 Replies

ActionScript 2.0 :: Loading Movies Into A Container That Is Masked Off Using SetMask()

Apr 25, 2006

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

View 2 Replies

ActionScript 2.0 :: SetMask - MovieClip Masked By Predefined Shape On Click

Apr 22, 2010

Is there anything to opposite of setMask. Actually I want that, when I click a button then a movieclip will be masked by some predefined shape (working as mask object). when I click another button he mask will be gone. That means the object under the mask will go out of the mask.

View 1 Replies

ActionScript 2.0 :: SetMask - Make Rectangle Clip Visible Through Drawn Line?

Jun 17, 2010

I've got a movieclip of a rectangle in my library which I place on stage to attachMovie. Then I create an empty movieclip which I want to use as a mask on that rectangle clip through setMask. Users kan draw into that empty movieclip. My intention is that only those areas of the rectangle clip become visible where the user is drawing a line. So I used this:

Actionscript Code:
_root.attachMovie("clip", "clip", 0);
_root.createEmptyMovieClip("line", 1);
clip.setMask(line);_root.onMouseDown = function() {
line.moveTo(_xmouse, _ymouse);
line.lineStyle(10, 0x00FF00, 100);
this.onMouseMove = function() {
line.lineTo(_xmouse, _ymouse);
updateAfterEvent();};};
_root.onMouseUp = function() {
this.onMouseMove = null;};

But that doesn't work: both the line drawn and the rectangle clip become invisible. I know it works because without the setMask part the line is drawn. The other way around does work (line.setMask(clip)): the rectangle clip is now masking the drawn line so only the line becomes visible within the rectangle region. But I want it the other way around: the rectangle should become visible through the lines that are drawn!

View 3 Replies

ActionScript 2.0 :: Masking Two Instances "setMask"?

Nov 27, 2006

I have two instances and I want to mask them with one.When I put the action

Code:
stop();
mc_text.setMask(mc_mask);

[code].....

View 2 Replies

ActionScript 2.0 :: SetMask() For .swf Loaded In Mc - (loaded)?

Nov 29, 2006

I've read about 15 threads on this topic, my apologies for another, but am still stuck. I have loaded a .swf into a mc, placed it, scaled it and it works fine. Now I need to mask it with setMask(). I read that the .swf must be fully loaded to mask it and am having trouble with this part. I tried 'onLoaded' and a couple of other ways with no success. Here's my code:

[Code]...

View 6 Replies

Loop Movie Only 3 Times?

Apr 30, 2003

How do I get the movie to loop a specify amount of times.I want the movie to loop 3 times only.

View 6 Replies

Loop 3 Times And Play On?

May 8, 2009

I have a movie in which three balls bounce up and down 3 times and then bounce high and trade places, then they bounce 3 times and repeat.Instead of bouncing three times I would like to shorten it with a loop.How do I tell the movie to loop from frame 156 back to frame 106 three times, and then go to frame 157 and play?

View 10 Replies

Set A Movie To Loop 3 Times?

Mar 21, 2007

This is my first Flash animation, and the client is waiting for the final swf file.

View 10 Replies

Flash :: Add Object Several Times?

Jun 26, 2011

I'd like to add object img in 4 different containers cont1,cont2... But img was added only in the last cont4 container. How can I add that object in all containers?

var img:Image = ImageBuffer.imageStorage.shift();
var ti:TargetImage = new TargetImage();
for (var i:int = 1; i <= 4; i++)

[Code]....

View 1 Replies







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