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




How Can I Achive This Mask?



I have a prototype with a fade effect for my images in AS'd gallery.


ActionScript Code:
MovieClip.prototype.fadeMeIn = function() {    trace("fadeMeIn finished : "+this._name);    // "this" now refers to the movieclip calling the function     this._alpha = 0;    // make it transparent     this.onEnterFrame = function() {        if (this._alpha<100) {            this._alpha += 7;        } else {            trace("fadeMeIn finished : "+this._name);            delete this.onEnterFrame;        }    };};

But I like the effect on this site:

http://www.irinagavrich.com/index2.htm

so cool

how do create this effect as a AS prototype?

If it sounds like I haven't a clue what Im talkin about...ur right, but I hope it gives you an idea what im trying to achieve.



Ultrashock Forums > Flash > Flash Newbie
Posted on: 2004-04-06


View Complete Forum Thread with Replies

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

How Best To Achive This
hi
Think I need an idea or two for making a menu like this one..could it be scriptet instead of animated...

http://www.tmline2000.dk/gb/index.html

Thanks for any pointers..

How To Achive This ?
SO, the thing is I have this superClass "GameWorld" (singleton).
the function createworld just run the init function and return the singleton instance.

ActionScript Code:
public static function createWorld(owner:MovieClip):GameWorld {GameWorld.instance.init(owner);return GameWorld.instance;}


The thing is I 'm inheriting this superClass.
And I want to call childClass.instance.createWorld which will do
ActionScript Code:

ActionScript Code:
childClass.instance.init(owner);return childClass.instance;


The thing is I don't want to write down in my childClass this function createworld (lazy and to be able to only add in the childClass, properties and method specific to the game itself, not the way the engine is started or whatever related to it)

So I come with this idea, but still not working
ActionScript Code:


ActionScript Code:
public static function createWorld(owner:MovieClip, baseClass:String) {//  init the game world (setting up the variable)         var clazz = _global[baseClass];             //clazz.instance.init(owner);        return clazz.instance;     }


I have 2 problems here.
I would like to be able to return the type of the class used (clazz type)
The _global[baseClass] is undefined...

Any idea?

Anyone Know How To Achive This...
Hi,

Am trying to do something similar for my buttons, see how they blur out horizaontally when rolled over... http://www.hypertemplates.com/templates/7528.html, Anyone done this before?

Anyone Know How To Achive This...
Hi,

Am trying to do something similar for my buttons, see how they blur out horizaontally when rolled over... http://www.hypertemplates.com/templates/7528.html, Anyone done this before?

Anyone Know How To Achive This...
Hi,

Am trying to do something similar for my buttons, see how they blur out horizaontally when rolled over... http://www.hypertemplates.com/templates/7528.html, Anyone done this before?

I Want To LEARN How To Achive This
http://www.laker.net/
(make sure you select the option to the right handside (Flash)

I really want to LEARN how to achive these effect PLEASE SOMEONE show me the way to achiving this. 1000 THANK YOU IN ADVANCED.

How Do You Achive Effects Like This URL
http://www.oldgreenwood.com/

http://www.oldgreenwood.com/

????

Not looking for step by step, but just a general place to start

thank you for your help

How To Achive This Menu Effect?
Does anyone out there know how this is navigation system is achieved?

http://flash.designbyfront.com/flash.htm

thanks

postatomic

How To Achive This Menu Effect?
Does anyone out there know how this is navigation system is achieved?

http://flash.designbyfront.com/flash.htm

thanks

postatomic

Tutorials On How To Achive The Following Effects?
Does anybody know of any tutorials on how I could achive sillmilar affects to the folowing links. I really want to know how to do the first and scond one.

http://www.ferryhalim.com/orisinal/fx/blocks.htm

http://www.ferryhalim.com/orisinal/text/pixels2.htm

http://www.ferryhalim.com/orisinal/ani/fireslices.htm

http://www.ferryhalim.com/orisinal/fx/shake.htm

Can Flash Achive This? Please Advise
Hello,

I am working on a new front page for my website, w3.schylling.com

The idea was to have 10 catagory images on the page and when you mouseover the image you get a drop down that tells you the subcatagories.

Here is my example page: w3.schylling.com/test26.html

On this example page you can see the 10 different image icons I have set up.
What i would like to achieve is when a customer rolls their mouse over one of the images a drop down shows up listing the sub-catagories. The sub catagories can thne be clicked on to go to that particular page.

What is the best method to do this? Flash, CSS????

Any help would be greatly appreciated.

Thanks,

DerrickG3

Achive ACTIVE State Using Date
trying to change the active state of a button using the current date of the user computer. the code below makes all 4 btns active...

mydate = new Date();
mydate.getDate();
if (mydate = "1") {
this.button1.gotoAndStop("active");
}
if (mydate ="2") {
this.button2.gotoAndStop("active");
}
if (mydate ="3") {
this.button3.gotoAndStop("active");
}
if (mydate ="4") {
this.button4.gotoAndStop("active");
}

somethings missing and dont know what. Hope anyone can help!
Thanks a bunch!

dekser

How To Achive Lighting With Additive Bitmap Copies
I'm trying to make a lighting system by having a bitmap that starts out totally black and opaque. Then for each light source on the screen, a bitmap that has a circle of alpha pixels is drawn to the black bitmap. Once the drawing is complete, it copies that bitmap over the screen to make the area look dark. When I use all of the same alpha value for the circle this works, but I need to make the circles with a gradient to make objects dim as they move away from the light sources. Copy pixels doesn't work here anymore, because dim lights would overwrite bright ones. I need to have the gradient bitmap alpha values added to ones already on the black bitmap. Is there some way to do this with the fast bitmap copying routines?

*EDIT: I think below is a better description of the problem...

I have a BitmapData that is an all black, totally opaque image. I have another BitmapData that is a circle alpha gradient that is opaque in the middle and transparent along the edge. I need to use a blend mode to draw the circle on the black screen, to "cut out" areas that should be seen by the player. I'm thinking BlendMode.ERASE is my answer, but can't seem to get it to work. I'm thinking it has something to do with the fact I can't set the black BitmapData's blend mode to LAYER (like the actionscript reference says the parents needs to be) I need some blend mode that subtracts the alpha of the source from the destination bitmap.

Trying To Achive A Windows Media Center Type Navigation..
anyone seen how it comes in and goes away its a simple concept..wondering if anyone got a sample or something to take apart and learn.

AS3: Mask Within A Mask (or How To Use A Shape With A Hole In It As A Mask)
Hi guys,

I've been stuck on this AS 3 masking problem for days now. I'm sure there's a simple solution to my problem but it's proving to be a pain.

I have a movieclip that contains some drawings, bitmap, etc. on top of that I am drawing a yellow rectangle with a hole in it using ActionScript:




What I want to achieve is to mask the movieclip container using the yellow rectangle, but I want the hole in the middle to not show the drawings and line:




However what I am actually getting is the yellow rectangle is masking the movieclip, but is ignoring the hole within it:




This is the AS3 code that I've written to get the above effect (with 'maskee' being the movieclip that contains the drawings):


Code:
function drawRectMask(p_sprite:Sprite) : void {
p_sprite.graphics.beginFill(0xf0ff00);
p_sprite.graphics.drawRect(100,100,300, 300);
p_sprite.graphics.moveTo(100,200);
p_sprite.graphics.drawRect(150,150,100, 100);
p_sprite.graphics.endFill();
}

var spr:Sprite = new Sprite();
drawRectMask(spr);
addChild(spr);

maskee.mask = spr ;

I'm at wits end. Any help on this would be greatly appreciated.

Client Request Feathered Mask Or Soften Fill Edges Mask
What application do you use to mock up flash designs?Photoshop7

How To Mask Duplicated Movie Clips With A Single Mask?
I have created 11 movie clips 17px in a vertical column.

I have used this code to duplicate them.


ActionScript Code:
for(i=0; i <10; i++){
    newName = "softwareBar" + i;
    duplicateMovieClip("softwareBar", newName, i);
    softwareBar._y += 17;
}

I have a mask that I need to use to cover all the clips, however when I use setmask it only covers the last looped item in the duplicateMovieClip code.

How would I go about masking all the duplicated clips with a single mask?


Not sure if this info is pertinent but once they are masked I will then be animating each duplicated bar separate using this function.


ActionScript Code:
loadBar = function(clipName, amount){
    clipName.onEnterFrame = function(){
        if(clipName._width<amount){
            clipName._width +=speed * speedDim;
        }
    }
}

Thanks
DDC

Mask Over Mask Leaving Pasrts Covered From Overlap.
Hello,

I have a complex image that I would like to mask with an animated mask.

I am using a movie clip with a couple of layers that "reveal" parts of the complex image at a time.
The problem is, when part of a mask overlaps another, it leaves that part of the complex image covered.

Is there a way around this?

Thanks in advance.

Drag A Mask, With Out Draging The MC Under That I Want To Mask Over?
Hello,

I have a mask and MC button which I am draging. I works fine other the fact the the whole MC movies even the MC inwhich I want to mask over: "BigYears" .

I have tryed to use:
onClipEvent (enterFrame) {
setProperty (this.BigYears, _x, -this._x);
setProperty (this.BigYears, _y, -this._y);
}

Then "BigYears" is not viewable under the mask.

INVERSED Mask? REVERSE Mask?
Okay, here's my dilemma.

I want a small circle to grow to reveal the contents within the circle, and THEN (and this is the hard part) I want another circle to grow from the same starting point that makes shows THROUGH to what's behind the circle.

So

I already have the first part done, where there's the contents on one layer, and a masked circle that tweens to reveal the contents.

BUT, the second part has to reveal the INVERSE of the contents... I don't really know HOW to explain this other than saying I want to punch a hole THROUGH the contents.

Any ideas?

HELP I Need A Mask Guru To Help Me With A Mask Problem
Hi,

I've got two mc's that are suppose to be playing simultaneously. Both duplicate mc's are called "Cloud Motion Tween" and there is one on the main timeline that has a brightness of -55 and the other duplicate of that mc is inside a mask in a mc called "Nav Bar (About)". Both mc's are suppose to be in sync.

Now every time I rollover the "Nav Hit Panel" button the mc inside the mask starts all over again and stuffs up the synchronization of the two mc's.

I have attached the fla file. You'll see what I mean.

Thank you so much for you valued time and effort. You are a true champ!!! (Whoever you are)

Blastbum

HELP I Need A Mask Guru To Help Me With A Mask Problem
Hi,

I've got two mc's that are suppose to be playing simultaneously. Both duplicate mc's are called "Cloud Motion Tween" and there is one on the main timeline that has a brightness of -55 and the other duplicate of that mc is inside a mask in a mc called "Nav Bar (About)". Both mc's are suppose to be in sync.

Now every time I rollover the "Nav Hit Panel" button the mc inside the mask starts all over again and stuffs up the synchronization of the two mc's.

I have attached the fla file. You'll see what I mean.

Thank you so much for you valued time and effort. You are a true champ!!! (Whoever you are)

Blastbum

Dynamic Mask Doesn't Mask...
I have a local radar image that I am loading into a holder movie clip and trying to mask but it doesn't work. Both the image and the mask are being displayed.

The holder movie clip is 'dopplerRad_mc' and I am attaching from the library.
The clip the image is loaded into is 'dopplerHolder_mc' and is dynamically created.
I then attach a mask movie clip from the library, 'imageMask1'.

My code is below. Any idea what I am missing?

var dopplerRad_mc:MovieClip = attachMovie("doppler_mc","dopplerRad_mc", getNextHighestDepth());
var doppler_mc:MovieClip = dopplerRad_mc.createEmptyMovieClip("dopplerHolder_ mc", dopplerRad_mc.getNextHighestDepth());
var mclListener:Object = new Object();
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mcLoader.loadClip(doppler, dopplerRad_mc.dopplerHolder_mc,1);
dopplerRad_mc.attachMovie("imageMask","imageMask1" ,2);
dopplerRad_mc.dopplerHolder_mc.setMask(dopplerRad_ mc.imageMask1);

Attaching Mask Onto Mask Layer
Hi,

I've been trying to attach a movieclip from the library, to the Mask layer using actionscript so that the mask_mc can hide a line of text as it moves.

But the movieclip is not getting attached to the mask layer.

Please help....

Gradient Mask Using JPEG As Mask
Hi there. I am trying to find a way to use loaded greyscale JPEGs to form gradient masks in Flash. Basically I want to be able to create an opacity mask just like you do in Illustrator or Photoshop, where it's the darkness of each pixel that determines opacity, rather than the alpha value.

It seems that in Flash the only way to create a gradient mask is to use a mask that has varying alpha values. I suppose that means I could use PNG files to form my mask instead, but I really need to be able to do it with JPEGs.

Perhaps there is a BitmapData filter that can convert shades of grey to degrees of alpha?

Thanks :)

Lara.

Can The Mask, Mask Color To Create B/w
Is it possible for a mask to mask color? I would like my mask to mask the color and only show B/W in the output.

Mask To Reveal Preloader And Mask To Hide Preloader Upon Load.
Hi all, can anyone help me in regard to a mask over a preloader of elements.

Ok I have a preloader all set up, this includes a logo, a notice, i.e please wait loading in progresss, a load bar, and a percentage reading.

All I want is a simple wipe effect using a mask, which is very easy to achieve, I have done so already. But I am unsure in how to hide all the preloader elements, and how to use the wipe to reveal all elements on the stage / timeline. I have the wipe setup using two layers, and decided to place these inside a movie clip and place the movie clip on the timeline. But now I am stuck in what to do next.

As when everything is loaded I want the wipe to hide the preloader and move onto the design aspects.

Does anyone have an idea how to achieve this?

To Mask Or Not To Mask, That Is The Question
Greetings helpful ones..

I am new to Flash and I need your help with a little project

I need to create an animation of a Car breaking through a brick wall and I am not sure if It is possible to import layers including a mask layer from photoshop into Flash and if so how, or if it is easier to create the mask layer in Flash, not quite sure how to do this either.
The other issue is scaling the image of the car as it will get bigger as it comes out through the wall - ie can I group the mask and image of car together whilst scaling..??

Perhaps you know of a better way to do all this, any help would be much appreciated - What I would really like to have is a 3D effect of the Car skidding round on it's front wheels

Thanks for your time

MN

One Mask To Be A MASK For Three Movieclips?
I have three different movieclips.. the question here is can i use the same MASK (one mask) to be the mask of the three movieclips?

A Mask Within A Mask Issues...
I'm trying to do a sweep reveal of one image that is made up of 72 individual squares. It's a diagonal sweep of that entire set of squares simultaneously going from left top to right bottom to reveal an image. So each of 72 squares is doing the same reveal of one large image at the same time.

I've managed to do variations of this idea using shape tweens and creating movie clips and duplicating them. But if I need to change the timing it's more difficult if they are all individual frames. Flash seems to get cranky when I try to mask a symbol and then multiply it and use it as a mask for another image.

Seems like such a simple thing, maybe I'm missing the obvious. I'm somewhat new to flash and not much of a programmer....

Mask Within A Mask? Not Working For Me...
Hello, I am trying to create a gradient mask within a masked clip. Is this possible? Everytime i try to add the outer mask, they stop working.

here is my gradient mask code:


ActionScript Code:
mNav.bHold.cacheAsBitmap=truemNav.mask.cacheAsBitmap=truemNav.bHold.setMask(mNav.mask);

but when i try to add the outer mask... it s stops working:

ActionScript Code:
mNav.setMask(mMask)


any insight?
Thanks,
Q

Mask Inside A Mask
Hey all...is it possible to mask a layer..then have another masked layer within that masked layer..so mask inside a mask..thx!

I Cannot Understand, How To Put Mask Layer On A Text Layer To Do A Mask
it looks there is only one layer.
the code is here.
http://go3.163.com/qiukezhi/tutor/1tutor.fla
see the picture
http://888888882.tripod.com/onelayermask.jpg
does anyone know how to make it?
thanks.
[Edited by bluerabit on 02-10-2002 at 06:09 PM]

[hitTest/Mask] Can A Mask Hide A HitTest Area?
Hi, the subject pretty much says it all. I have the following code:


ActionScript Code:
volume.onEnterFrame = function() {
    if (volume.hitTest(_xmouse, _ymouse, true)) {
        _root.nextFrame();
    } else {
        _root.prevFrame();
    }
};


...and here is the link. Move your mouse under the bar and move it up slowly under the the speaker next to the number. See what happens? Keep in mind that the look is still being perfected, I was just wanting to know if there were a way I could fix the problem or do I just have to start thinking of a new look for it? Thanks in advance.

(PS: let me know what you think of the look and layout please)

AS Mask?
Is it possible to create a mask of dynamic text with AS? Dynamic text doesn't seem to work with a mask layer.

Thanks

MASK...WTF?
Ok...I must be an idiot. (keep it down..)
I am having the most trouble doing masks today. Even a static mask..that does nothing..but "MASK".

Is there a rule about masking over text or somthing?...

I just wanna check to make sure..I'm not missing something here..

1.make a layer..image, picture,..whatever.

2 New layer above layer #1...draw whatever shape I want...make that layer a masked layer correct?...The solid parts on layer 2 will be the "WINDOW/TRASPARENT" part when all is said and done correct?

Well,...get this.....when I am building...it alloks fine...mask looks to be working....when I test...no go..when publish..same thing..no way.

This is the third problem I have had with MASKS....I could get something to fade in under a mask...Now..I can lines ot show through..but not the text that is part of the same image...it all on one graphic symbol. DOES ANYBODY have a clue as to what is happening here??
When I drag the playhead..it all works fine also...WTF??

-whispers-

Mask
Im trying to use the mask to make a lanter wich u can move... so u can light and see only the area around the mouse... the problem is that after creating the background, the black covering everything and the light circle (which is a symbol) Ineed to drag this circle... but it wont let me! WHY!?
Thanx

Mask
Im trying to use the mask to make a lanter wich u can move... so u can light and see only the area around the mouse... the problem is that after creating the background, the black covering everything and the light circle (which is a symbol) Ineed to drag this circle... but it wont let me! WHY!?
Thanx

Mask Help
can someone please point me to a tutorial teaching the basics of masking? all i find are advanced and i need to know the basic how to's before i get to the advanced stuff. thanks in advance.

Mc Mask
hi everybody, first time in flashkit, well i,m having this problem with a mask , i´m trying to mask a moviclip thats inside another mc.
please help.
thanks

Mask Help
Hi
I am making a simple mask in flash MX. It works fine when I use the control buttons to play it all is fine and it works fine. but if I publish it or use the test scene or test movie it does not work.
Whats up?

Thanxs Mark

Mask
Is there a way to dynamically create a mask layer, what goes inside that layer and what it is masking?


Say, a button is hit, and a mask layer is created with a movie clip in that layer (the movie clip has a rectangle in it), and it is masking an image. So it would be slowly revealing the image beneath it.

is this possible? if not, what may be the best way to try to achieve this same effect?

any help would be much appreciated.

thanks
ty

Can Some Tell How This Mask Done?
http://www.baxtered.com

The mask that goes from one swf' s over the other. I hope this makes sence.

I really need to get this done.

Can someone tell me how this Mask was made. I think it has to do with the levels the swf 's are on.

Thank you for everything!

To Mask Or Not To Mask
hello hello...have a small problem maybe someone can help me with. I am using loadmovie to pull in movies that sit on top of a backdrop MC that is located in the parent swf. I have a very small mask set up (just 1 skinny strip bordering the top edge of the backdrop MC) only used to "constrain" the backdrop size when i do a zoom in effect. these movies that i load have tons of dynamic textfields, comboboxes, and other places in which i would need to embed fonts due to this little tiny mask. My file sizes are growing tremendously because of this, and i haven't even done a good deal of what i'm planning on doing, not to mention the fact that this is tedious and annoying to do for every field. I was wondering if at least 1 of 2 things are possible: (i'm pretty sure the answer to this first one is no, but i'll ask anyway) - is there anyway to globally embed a font so multiple fields can access it and you don't have to embed each one?

or: are there any alternatives that will get a masking effect that i need, without actually using a real mask, so i can avoid all of this crap? i don't care about the other 3 sides, because they just get cut off by flash, but i don't want the backdrop expanding into my nav area across the top when i zoom.

Thanks so much for advice for either direction!

Mask
does anyone know of a way to import a transparent image in flash and use it as a mask? when i try it, the image mask is a square the size of the full image. this is probably a vector vs. bitmap limitation, but has anyone figured out a way around it? i need to mask out a pretty intricate shape that i can't draw in flash.

thanks

Mask Bug?
This may or may not be a bug in flash MX. When you create a mask and use the line tool in there, the lines you drew do not work.(as part of the mask) This is also the case if you use the line tool in a graphic and try to use the graphic in a mask. Does anybody know how to get that to work? Thanks in advance.

To Mask Or Not To Mask?
Peace,

There is an effect found at http://www.iriejamfm.com Once you enter the site, the effect that I am talking about is located underneath the flash buttons that say shopping, events, gallery, etc on the top right. It is the effect that can be seen on the words that say iriejamfm.com/blackemperorent.com I thought it might have been a masking effect, someone else told me it’s more a graphic with the appearance of a shine dim to like 75% which gives the appearance of hitting each letter, but it’s alpha it’s set transparent. I was lossed after he said that, but my interest has indeed peeked, cause I really like the effect and I am trying to duplicate it for a site I am doing. Any thoughts, ideas, and help would be greatly appreciated.

Thanks in Advance
Bonafide

Mask Help
I have a mask in place over a masked layer that contains a text field which has text from an external .txt file imported into it via a corresponding variable name. I've noticed that when a mask is masking a layer bringing in external text like that, the external text is not visible.

is there anyway to get around this so i can have a masked layer that can display visible external text?


supercook

Help Should I Use A Mask?
Hello. I am trying to make this calendar look right for the loading window. http://lupostudio.com/loadingcalender5.html
Notice how the days don't change until after the pages folds up. Is there a way I can get the days to change by the month as the page folds up? Can I use a masking technique? HELP PLEASE!!!
Thank you.

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