Alpha Mask?
www.furtherseemsforever.com one the main news section. i was just wondering how to get that effect as you scroll through. is it some type alpha fade mask? or should this be in the AS forum?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-30-2004, 08:42 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Alpha+mask
Hi,
sorry i did not reply to my "helper" yesterday.
I have got a moving object, wich i would like to
mask, with a mask that fades around its edges.
is this possible and if so how?
i hope anybody can help
seuchenhexe
Alpha Mask?
Hi, what i am trying to do would be pretty easy if i only had a simple background where i could just use a mask with transparancy.
I have moving objects in a movie and i want them to fade away as they get to the edge of the screen. How is it possible that i can get the alpha value to change when it gets near the edge?
Many thanks
Alex
Mask's And Alpha's......
hi all!
got a question with mask's and alpha's. i'm using a "ripple" effect (found in the tutorials) and am finding that when applying an alpha to the "mask" i can only apply one alpha for the whole frameset.
isn't there a way to have an opening alpha @ 0% and ending at 50% for the mask instead of opening @ 20% and ending @ 20%???
thanks!
Alpha Mask
Hi,
I created 2 layers. One has an image and the other has a rectangle with a gradient alpha going from 0% (left) to 100%(right).
Then I make this mask of the layer that contains the image.
It works fine in Flash but when I preview the file the mask does not work.
What is going wrong? I am using Flash 9.
I tried everything I could think of ...
Thanks,
Miguel
Alpha Mask?
www.furtherseemsforever.com
one the main news section. i was just wondering how to get that effect as you scroll through. is it some type alpha fade mask? or should this be in the AS forum?
[AS3] Alpha Mask ?
Hi
I can't figure out how make an an mc alpha mask to work in AS3. Here is
my try:
mc1 = new green();
mc2 = new blue();
mc2.blendMode = BlendMode.ALPHA;
addChild(mc1);
addChild(mc2);
mc2.cacheAsBitmap = true;
mc1.mask = mc2;
Anyone?
/brian
Alpha And Mask
Is it possible to put alpha on mask? If so, how? What I want to do is to have different levels of fading for mask.
Plz Help Alpha Mask
hi guys
i have been trying to make a alpha mask but with no success until now , i remembered i could made one almost 2 years ago, but since then i ve been focused more on actionscript that in designing and animating with flash
do you remember or know how to do a alpha mask ?
any help is apreciated !
Mask With Alpha
I've seen tutorials on this and am trying it but I'm stumped to get gradient transparency to work.
Simple bitmap converted to symbol.
Rectangle with fill above it, one end of fill Alpha 100%, other end Alpha 0%
apply mask and the transparency simply doesn't work, the whole rectangle becomes a mask, Flash ignores the alpha information? yet I've seen it done and followed s tutorials on this, so what am I doing wrong?
Wolfie
Mask+alpha Effect
Hi,
got one more for today,
i am attempting to make a mask for my animation, that fades out at on side. in the moment i am only able to to make a mask wich is one solid block ,the alpha effect does not seem to be the answer to my problem....
could anybody give me some advise?
thanx for taking the time to read
seuchenhexe
Alpha Gradient Mask - Is It Possible ?
hi
i was wondering if there's a way of putting a gradient fill into a mask layer so that the mask goes from 0% alpha to 100% alpha - i've tried putting an alpha-ed gradient fill into the mask layer but it doesn't work.
any ideas ?
thanks
Mask With Alpha Fade
Here whats I'm trying to do
Image slide from left to right. The image layer is masked by a layer with a simple shape filled with a gradient. The gradient has an aplha of 100% on the left end and 0% on the right. I'm still having problems getting this to work right.. Anyone have any ideas of what I might doing wrong or what I should do diff.
Thanks in advance,
Paintcheck
Using Alpha Properties For Mask?
Simple Question. Can you use alpha properties with a mask. i.e. fade up a simple graphic from a transparency and sue that as a mask.
Alpha Mask And LoadMovie
i'm working on a project where i've used the setMask feature in flash 8. it works fine when i test it. however when i pull that swf into another swf using the loadMovie command, the mask breaks.
has anyone else run into thist? does anyone know a fix?
[CS3]gradient Alpha Mask
Ive seen a couple of tutorials about creating gradient alpha masks and the results are really cool looking.
I would love to use this technique on a website I am developing for a client. Ideally I would like to use it on a slideshow that loads a list of images from a database and then loads each .jpg individually.
The problem I would have is that I dont know how to apply the mask to dynamically loaded movies.. could anyone point me in the right direction as far as the logic is concerned or recommend a good tutorial>
Thanks guys..
Beedge
Alpha Gradient Mask?
I'm trying to do this but forgot how... I have an MC on the main timeline called "SmartPerson" inside I have MC_mask and MC_square.
On the main timeline I have
SmartPerson.MC_mask.cacheAsBitmap = true;
SmartPerson.MC_square.cacheAsBitmap = true;
SmartPerson.MC_square.setMask("SmartPerson.MC_mask ");
When I run the movie nothing happens. The images don't display at all... Any ideas?
Alpha Mask In External SWF
Hi guys,
wondering if anyone could help with this problem i'm having..
basically i have a swf that uses bitmap caching for an alpha fade, it works fine as it is i'm using..
maskMC.cacheAsBitmap = true;
maskee.cacheAsBitmap = true;
maskee.setMask("maskMC");
..to do this...
in a seperate movie (holder.fla) i'm tryin to load this swf into an empty movie clip with
this.holder.loadMovie("LogoMovie1.swf");
the load works fine but the alpha fade no longer works... you can see the mask running across the screen instead of being able to see through it...
any ideas?
i've tried to target the bitmap again in the holder movie by using
_level0.holder.maskMC.cacheAsBitmap = true;
_level0.holder.maskee.cacheAsBitmap = true;
_level0.holder.maskee.setMask("maskMC");
and i've tried
this.holder.maskMC.cacheAsBitmap = true;
this.holder.maskee.cacheAsBitmap = true;
this.holder.maskee.setMask("maskMC");
but no luck, can still see the mask on screen...
any one got any ideas?? any help wud b much appreciated!
cheers thanks a million
leapin_leprechaun
Alpha Mask Artifacts
this may be a very simple question.
Here it is:
All is done with AS.
I am applying a gradient mask to a movie I am animating. When it changes property line alpha x or y there are white outlines that appear. Is there a way to prevent that from happening.
Any support is much appreciated.
Please let me know if you need more info.
Here is a link to a sample image of the problem.
Link to example
Cheers
Gradient Alpha Mask
I have done several searches on how to create a revealing gradient mask. I dunno if I'm just not describing the effect in which I want to create properly as I haven't found anything specifically covering this topic. Sure I can find tutorials on how to do a "glint/shine" effect. However What I want is to have to similar images with an alpha gradient mask between the two images, and when the mask passes over; it reveals the image below with an alpha fading gradient on the edges of the mask. I can get the effect, with the exception of the alpha faded edge; its just a mask with a solid edge. This IS possible to do, . . right?? As I'm sure that I've seen something similar to what I've described here. If anybody can help or point me in the right direction on where to find help on how this is done; I'd appreciate it. thanx, -ssf-
Alpha Mask In External SWF
Hi guys,
wondering if anyone could help with this problem i'm having..
basically i have a swf (logomovie1.swf)that uses bitmap caching for an alpha fade, it works fine as it is using..
maskMC.cacheAsBitmap = true;
maskee.cacheAsBitmap = true;
maskee.setMask("maskMC");
in a seperate movie (holder.fla) i'm tryin to load logomovie1.swf into an empty movie clip with
this.holder.loadMovie("LogoMovie1.swf");
the load works fine and i can see the movie but the alpha fade no longer works... you can see the mask running across the screen instead of being able to see through it...
any ideas?
i've tried to target the bitmap again in the holder movie by using
_level0.holder.maskMC.cacheAsBitmap = true;
_level0.holder.maskee.cacheAsBitmap = true;
_level0.holder.maskee.setMask("maskMC");
and i've tried
this.holder.maskMC.cacheAsBitmap = true;
this.holder.maskee.cacheAsBitmap = true;
this.holder.maskee.setMask("maskMC");
but no luck, can still see the mask on screen...
any one got any ideas?? any help wud b much appreciated!
cheers thanks a million
leapin
Alpha Mask For Videos
Hello,
I recently purchased a movie from iStockPhoto that has an Alpha mask so I can change the background of the movie. I know Flash is capable of doing this, but I'm not quite sure how.
Can anyone help me out?
Alpha Mask Problem?
Hi there!
I'm having some difficulties with some flash I use on my clients site.
I can't figure it out because the problem doesn't occur on my pc, or any I've tested. There's nothing weird/crazy/different about those flash movies. They're just some animation, but I use the alpha mask technique...
ActionScript Code:
img.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
img.setMask(mask);
My client sent me a printscreen and it showed that his processor went waaaay up. He can't load the page because it freezes.
Does that have anything to do with the alpha masks I use? Are there any restrictions on using it?
The only animation I use is on _x position and _alpha... I don't scale nor rotate the imgs and texts....
My client said the problem showed on about 10% of the pcs he tested.
Any help would be very welcome!
ActionScript Alpha Mask?
Hey,
I've built an image class that I've used on a couple of websites (http://www.pabloandernesto.com being the most recent) that handles loading and transitioning between images.
I'm trying to build an alpha mask, using the technique in the gotoAndLearn flashlight tutorial, in ActionScript so I can make more transition effects. My code looks like this:
Code:
import flash.geom.Matrix ;
import mx.transitions.Tween ;
import mx.transitions.easing.* ;
var depth:Number ;
// set up the image
depth = this.getNextHighestDepth() ;
var image:MovieClip = this.createEmptyMovieClip('mc_'+depth, depth) ;
image.loadMovie("imgs/test.jpg") ;
image._x = 500 ;
image._y = 10 ;
// set up the mask
var type:String = "linear" ;
var colors:Array = [0,0,0] ;
var alphas:Array = [100,100,0] ;
var ratios:Array = [0,170,255] ;
var matrix:Matrix = new Matrix() ;
matrix.createGradientBox(500,450) ;
depth = this.getNextHighestDepth() ;
var mask:MovieClip = this.createEmptyMovieClip('mc_'+depth, depth) ;
with(mask) {
_x = 0 ;
_y = 10 ;
beginGradientFill(type,colors,alphas,ratios,matrix) ;
moveTo(0,0) ;
lineTo(500,0) ;
lineTo(500,450) ;
lineTo(0,450) ;
lineTo(0,0) ;
endFill() ;
}
// mask
image.cacheAsBitmap = true ;
mask.cacheAsBitmap = true ;
image.setMask(mask) ;
// and reveal
var tw:Tween = new Tween(mask, "_x", Regular.easeInOut, 0, 500, 70, false) ;
I've just put this in the first frame of a test movie. But it doesn't work, and I can't figure out why. The setMask function doesn't seem to take. Is there something blazingly stupid that I'm doing??! I don't understand it.
thanks
nic
Is There An Alpha Gradient Mask?
Greetings
I know the thread title is dumb, but I don't know exactly how to do what I want or what it would be called.
What I'm thinking of is a type of alpha fade in for some text, however I'd like it to fade in from the top left to the bottom right. Actually, just knowing how to fade it from top to bottom or left to right would be good.
I know a Mask can do a reveal effect, but I want it to do a fade in reveal. Like the top fades in first and works it's way down, fading in all the way to the bottom of the letter.
Can a Mask have an gradient? I just don't know how you would do that.
If anyone can give me a point in the right direction, I would be very grateful. Thanks.
Moving Alpha Mask
I am using a mask to hide and show text with a drop shadow. To create the mask and keep the drop shadow I am using the following ActionScript:
Code:
text.setMask(textMask);
text.cacheAsBitmap = true;
textMask.cacheAsBitmap = true;
However, when I try to use a tween to move the text the movement is choppy. I assume this is because it is rendering as a bitmap and needs to allow smoothing. (increasing frame rate from 30fps doesn't help)
Is there a way to enable smoothing on a MovieClip cached as a bitmap?
Animated Alpha Mask In MX2004
Can it be done with MX2004?
Ive got MX and i can't figure it out.
I remember that you could not do this in 5.
Im hoping that they fixed this?
cheers,
fano
Trouble Creating Alpha Mask MC In AS3
Hello,
I am running into trouble getting an alpha mask to work correctly in AS3. The mask itself seems to be working on the pixelated movieclip, but the alpha channel isn't appearing at all.
Any help would be greatly appreciated.
Best,
Justin
Attach Code
import flash.display.MovieClip;
import flash.events.Event;
import flash.geom.*;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
var pixelated_mc:MovieClip = new MovieClip();
addChild(pixelated_mc);
pixelated_mc.y = 0;
pixelated_mc.x = 0;
//var flood_mc:MovieClip = new MovieClip();
//addChild(flood_mc);
//flood_mc.x = 0;
//flood_mc.y = 0;
var pixelSize = 4;
//var holder:Bitmap = new Bitmap();
//var mytest:love = new love(650, 400);//pass the width and height of the bitmap
//holder.bitmapData = mytest;
//this.addChild(holder);
// Do not display bitmap
//this.addEventListener(Event.ENTER_FRAME, pixelate);
function pixelate(){
var bitmapData:BitmapData = new BitmapData( original_mc.width/pixelSize, original_mc.height/pixelSize, false );
var bitmap:Bitmap = new Bitmap(bitmapData);
pixelated_mc.addChild(bitmap);
var scaleMatrix:Matrix = new Matrix();
scaleMatrix.scale(1/pixelSize, 1/pixelSize);
bitmapData.draw( original_mc, scaleMatrix );
bitmap.width = original_mc.width;
bitmap.height = original_mc.height;
}
//maskCircle_mc.blendMode = BlendMode.ALPHA;
addChild(maskCircle_mc);
addChild(original_mc);
pixelated_mc.cacheAsBitmap;
maskCircle_mc.cacheAsBitmap;
original_mc.cacheAsBitmap;
pixelated_mc.mask = maskCircle_mc;
pixelate();
Mask With Alpha Fade Not Working
I have this problem where i will put an image on one layer over 15 frames, then on the top layer i will draw a square, make it a symbol, tween it over 15 frames with the shape tween with the alpha set to 0% on frame 1 and 100% on frame two, and i set that to mask and when i test the movie, it just pops the image up without the alpha tween acting as a mask. Am i doing something wrong? As far as i know this should work, but it's not.
Thanks for any help offered.
Gray Scale To Alpha Mask?
Is there anyway to create an alpha mask out of a grayscale image in flash?
i am using the color adjust filter to create a bleached out kind of image. I would like to make the white transparent. Any suggestions?
Thanks alot for any help.
q
Mask With Alpha Fade Not Working
I have this problem where i will put an image on one layer over 15 frames, then on the top layer i will draw a square, make it a symbol, tween it over 15 frames with the shape tween with the alpha set to 0% on frame 1 and 100% on frame two, and i set that to mask and when i test the movie, it just pops the image up without the alpha tween acting as a mask. Am i doing something wrong? As far as i know this should work, but it's not.
Thanks for any help offered.
Using Grayscale In A Mask To Make Alpha On A Gradient
Hey, i have a layer with a still picture of clouds, than another layer above it with some darkened clouds. I want to put a mask over the darkened clouds but that will slowly fade them in.. such as the mask being a white ---> black linear gradient. I know in adobe ps this is how the mask work.. not sure about flash. Please check me fla attatched
Alpha Or Mask On HTML/CSS Rendered Text
I'm getting some text from an XML file and I render it using HTML and a CSS file. I'm trying to fade that text (it is in a mc); it doesn't work...
I know that I have to embed the font when rendering text or htmltext if I want to fade it or whatever. But it doesn't seem to work using stylesheets.
Is it possible?
Thanks!
Alpha Or Mask On HTML/CSS Rendered Text
Hi! I'm a long time reader of this site, but just registered =)
I have a small question for you. I'm getting some text from an XML file and I render it using HTML and a CSS file. I'm trying to fade that text; it doesn't work...
I know that I have to embed the font when rendering text or htmltext if I want to fade it or whatever. But it doesn't seem to work using stylesheets.
Is it possible?
Thanks!
Alpha Mask To Fade In Dynamic Text?
I know I can use cacheAsBitmap to fade a mask over another movieClip- However I have dynamic text fields- that are populated by xml data... i'd like to fade a mask over them onRelease of a button... I've tried putting the text fields into their own movieClip- however my xml no longer loads... any ideas on how I can fix this?
thanks!!
Bitmap Caching Alpha Mask Issue...
Using Flash 8;
Hello,
I have a problem with a tutorial I used, on the subject, "Bitmap Caching - Alpha Masks". The tutorial is found here, http://www.devx.com/webdev/Article/29296/0/page/1.
This basically uses some of the new bitmap runtime features, along with masking, to "_Alpha tween from one picture to another". You place image 1 on layer 1, then image 2 on layer 2 and using the code "maskee.cacheAsBitmap = true; and maskMC.cacheAsBitmap = true;" slowly "reveal" the 2nd layer using an _alpha tween (there is other code involved of course!).
The problem is that it seems half the time, the 2nd image will not be "fully revealed", meaning that some of the layer 1 image is still showing. But then sometimes the effect works great and looks nice and clean.
This is a cool effect for a "Before and After" photo gallery I am working on, but not when image 1 is kind of "mixed" together with image 2.
The code works most of the time, I'm wondering if anyone has any ideas, why it sometimes seems to "get stuck half-way"?
Or does anyone know of other tutorials which describe this effect?
I have this effect live online if anyone wants to see it, just post here, or I can also post the source code, which is basically the same as the tutorial.
Thanks...
AS3 Event Propagation Thru Alpha Channel Mask?
Ok, in AS2 I had a bitmap with an alpha-channel that made a transparent hole (mask) in front of external, loaded .swf files (aka rounded corners of an old tv). In AS2, events went thru the hole just fine and the swfs behind handled their events. After converting to AS3, and getting the swfs loaded again, the events do NOT reach the swfs playing behind the 'mask'. Am I missing something or is this a major bug? Moving the external swfs to a higher level works, not the end of the world (I lose my rounded corners) but it proves the events don't get to the layer that worked in AS2.
Alpha Or Mask On HTML/CSS Rendered Text
I have a small question for you. I'm getting some text from an XML file and I render it using HTML and a CSS file. I'm trying to fade that text; it doesn't work...
I know that I have to embed the font when rendering text or htmltext if I want to fade it or whatever. But it doesn't seem to work using stylesheets.
Is it possible?
Thanks!
Preloader Breaks Alpha Channel Mask
I have created a movie for a web site header that utilizes Flash 8's ability to have alpha channel masks using cacheAsBitmap. Everything works fine when I play the header movie itself.
However, I am creating a separate preloader movie that will display a progress bar while the header movie is loading. This preloader uses the standard MovieClipLoader class. I am able to load the external header movie; but when it finishes loading and begins playing, the alpha channel masks are gone. It only masks as in the olden days. What causes this and what can I do to correct this?
Thanks for the help!
Mitchell Killian (II Cor. 12:9)
www.integrityDC.net
"Except a man be born again he cannot enter into the kingdom of heaven." John 3:3
[CS3] CacheAsBitmap Giving Me Fits Not Wanting To Alpha Mask
ok so here's the code
Code:
//set up scrollpane
var i:Number=0;
var mcMain:MovieClip;
function init() {
//empty movie clip in library with linkage name "scrollMovieClip"
scrollPane.contentPath = "scrollMovieClip";
scrollPane.setStyle("backgroundColor" , "transparent");
scrollPane.setStyle("borderStyle" , "none");
mcMain = scrollPane.content;
//trace(mcMain);
}
init();
// xml image loader
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
_global.image = [];
_global.offsetx = [];
_global.offsety = [];
_global.desc = [];
total = xmlNode.childNodes.length;
for (_global.c=0; c<total; c++) {
image[c] = xmlNode.childNodes[c].childNodes[0].firstChild.nodeValue; // image name
trace(image[c]);
offsetx[c] = xmlNode.childNodes[c].childNodes[1].firstChild.nodeValue; // x location of registration point for image
offsety[c] = xmlNode.childNodes[c].childNodes[2].firstChild.nodeValue; // y location of registration point for image
desc[c] = xmlNode.childNodes[c].childNodes[3].firstChild.nodeValue; // image discription
mcMain.attachMovie("empty_mc", "blue"+c, mcMain.getNextHighestDepth(), {_y:5, _x:100*c+5, _xscale:21, _yscale:21}); //image container, also set location and scale of images
loadImageHere = mcMain + "." + "blue" + c; //where we will load the image to
trace (loadImageHere);
loadMovie(image[c], loadImageHere); // and now we finally load the image
mcMain.attachMovie("blueMovie", "imageButton"+c, mcMain.getNextHighestDepth(), {_y:5, _x:100*c+5, imageToAttach:image[c]}); // transparent button we will lay over the top of the current image.
//now we make the refelection
mcMain.attachMovie("empty_mc", "blue"+c+"refl", mcMain.getNextHighestDepth(), {_y:138, _x:100*c+105, _xscale:21, _yscale:21, _rotation:180}); //reflection container, also set location and scale of images
currentRefl = mcMain + "blue" + c + "refl"; //get current reflection
trace (currentRefl);
loadReflHere = mcMain + "." + "blue" + c + "refl"; //where we will load the image for the reflection
loadMovie(image[c], loadReflHere); // and now we finally load the image for the reflection
mcMain.attachMovie("galleryMask", "blue"+c+"Mask", mcMain.getNextHighestDepth(), {_y:60, _x:100*c+5}); //reflection container, also set location and scale of images
currentMask = mcMain + "blue" + c + "Mask"; //get current mask
trace (currentMask);
//part i'm having trouble with is below.
currentRefl.cacheAsBitmap = true; //sets the current reflection to bitmap cache so we can mask it
currentMask.cacheAsBitmap = true; //sets the current mask to bitmap so we can use it as a mask
currentRefl.setMask(currentMask); //now this should set the current mask to actually mask the reflection
scrollPane.invalidate(); //reset scroll pane for new content
}
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
and this is the part that i can not get working
Code:
//part i'm having trouble with is below.
currentRefl.cacheAsBitmap = true; //sets the current reflection to bitmap cache so we can mask it
currentMask.cacheAsBitmap = true; //sets the current mask to bitmap so we can use it as a mask
currentRefl.setMask(currentMask); //now this should set the current mask to actually mask the reflection
can some one figure out what i'm doing wrong? i;ve also attached a screen shot of what the code currently produces.
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.
BitmapData Alpha Breaks When Changing Alpha Of Container Sprite
Hi,
I posted this in Flash CS3 forum on Friday, but have had no replies, and am still stuck, sorry for cross-posting.
I have the following structure:
Code:
Pane:MovieClip
Content:Sprite
image:BitmapData
Pane is an asset in the Library, and is dynamically placed inside another Sprite. The Library asset Pane already contains the Content sprite which contains the image BitmapData.
The image is originally a 24-bit PNG, and it doesn't seem to matter to the problem whether I use Lossless or Photo compression.
My problem is when I change the alpha on the Content Sprite in the Pane class, the alpha transparency image on turns to a solid black.
Also, not sure if this is related, two textboxes in another Pane's Content Sprite get two horizontal white lines, above and below, them--while I am changing the alpha of the first Pane.
Anybody know how to fix this?
This is my first AS3 project, so apologies if I missed something obvious.
Scrllpane Comp Changing Alpha But Not Contents Alpha.
I've had a go at this a few times it seems the scrollpane component can change the _alpha of it but that changes the content mcs ect that is in the comp to the same alpha as well. I want to make the scrollbars of it alpha 50 and the mcs in it stil 100 normal. It involves loading many more mcs swf's into the scrollpane so just need it set to main content at 100 percent alpha and so be able to change the scrollbars to alpha 50 or whatever?
Couldn't Control Alpha Of The Children Mc After Set The Parent's Alpha
Hi,
I have 4 little thumbnails mc in a parent mc, and I set the alpha of the
parent mc to 0, then I want the child to appear one by one, but flash
won't respond to that unless I set the alpha of the children seperately
to 0, does anyone know how to solve that? thanks in advance.
-c
Changing Alpha Programatically - Alpha Values Not Whole Numbers
I'm doing alpha changes on an image programatically in an onEnterFrame method. My code is this simple:
trace(mc1_mc._alpha);
mc1_mc._alpha -= 2;
trace(mc1_mc._alpha);
The output is:
100
97.65625
My question is, how is 100 - 2 = 97.65625? What is going on here? It gives this answer even if I use Math.round() on it. Any ideas?
Advancing Alpha Counter...as In Alpha Numeric
Is there a way to get an advancing alpha counter, such as a, b, c, d, etc. instead of 1, 2, 3, 4, etc.
Other than creating an array of a, b, c, d
advancing = new Array("a", "b", "c", "d");
i++;
advancing[i];
Thanks.
_t
Calling Alpha Value To Start Another Alpha Fade?
hey all!
okay so here's the deal I'm on a mission to make these buttons fade in one after another using a.s
and I'd like all my code to be in one frame [don't we all though ]
so far i have one fading in using
Code:
this.onEnterFrame = function() {
if(btn1._alpha < 100) {
btn1._alpha += 10;
}
}
now when i said i wanted the buttons to fade in one after another i was kinda fibbing ... what i really want is when btn1 reaches an alpha of 40 i want btn2 to start this same fade in process, then when btn2 reaches 40 i want btn3 to do the same and so on...
see the effect here [you have to enter the site] when you click on work, troops & contact
now i have also been searching for a easy to understand tutorial on how to make your own functions [that's the one where you can write a whole bunch of code stuff then call it later using only a little code, right?
well obviously i want to use this idea so i don't have to write out [okay lets be real here - copy and paste] the fade in code each time.
that way i figure i can say
if(btn1._alpha = 40)
do the function thingy to btn2
i tried this a.s, it only results in btn2 fading in as asked but btn1 stops fading at 40
Code:
if(btn1._alpha = 40) {
this.onEnterFrame = function() {
if(btn2._alpha < 100) {
btn2._alpha += 10;
}
}
}
any ideas would be the shizzel bo dizzel nizzel!
cheers fo' all the help so far!
-demian
|