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








Alpha


Hi, i have an image that i would like to disappear into the backgound, and i am not quite sure how to do this!!!!!! Is it something to do with the alpha lark?
HELP..................................




FlashKit > Flash Help > Flash Newbies
Posted on: 10-28-2003, 09:08 AM


View Complete Forum Thread with Replies

Sponsored Links:

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.

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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?

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
[jpeg Alpha Load] Loaing Jpg In To A Mc With Alpha
ok i am loading a jpeg into a empty MC and when it load in i would it to alpha from o to 100

please can you help

i have been trying with this

onClipEvent(data) {
_alpha == 0;
_parent.images = int(getBytesLoaded()/getBytesTotal()*100);
if (getBytesLoaded() != getBytesTotal()) {
isloaded = 1;
}
}
onClipEvent(enterFrame) {
if (isloaded) {
alpha ++;
if (_alpha == 99) {
isLoaded = !isLoaded;
}
}

but not get any luck

View Replies !    View Related
How Can I Make A Button Go From Alpha 0 To Alpha 100
i wanna create a rollover button

i made the before and after pngs in PS
and i want to put the image that will appear over the original image with an alpha of 0 and when i roll over it the alpha to turn to 100 so it looks like the fade in


how do i change a graphic alpha ?

how can i do this please help

View Replies !    View Related
Alpha Alpha Alpha And Er.. Actionscript?
i need a script for a button, when the mouse is taken over it the alpha increase slowly to 100 when the mouse is out the alpha goes down to about 75?

thnx.

View Replies !    View Related
Making Alpha 0 To Alpha 100
Dear All,

I was just wondering if anybody knows, how to change alpha 0 to 100 for a perticular layer ?? I would really appreciate for the help, Thanks !!

-Ankur

View Replies !    View Related
Alpha Changes In A Gradient With Alpha
Hi there I am having a bit of a problem.

I have a gradient which goes like this:

100% Black -----> 60% Black

This gradient is over an object. And the whole form a movieclip.

Now if I want to apply a tween effect to that movieclip, lets say, frame 1 mymc is 100% alpha and tweens to 0% alpha in frame 20, this makes the gradient dissapear wile tweening showing the object that was beneath it in the movieclip. The gradient is not a mask, and even if I convert it as a mask and tick the Use Runtime Bitmap caching, and I create it from AS3 it does the same.

I don't know if I explained myself properly, but I'd like some input from you guys

thanks!

View Replies !    View Related
Alpha Value?
How can I add an alpha action to this.......

onClipEvent (load) {
myColor= new Color(this);
}
onClipEvent (mouseMove) {
r = _root.red.value;
g = _root.green.value;
b = _root.blue.value;
myColor.setRGB((r<<16)+(g<<8)+b);
updateAfterEvent();
}

Thx
~GD~

View Replies !    View Related
Alpha
Alright, I'm up to one of the last steps on an FK Tutorial, and I don't know how to change the 'alpha'. Somebody please help. Thank you.

View Replies !    View Related
Alpha@@#@@
Sometimes I can apply alpha, sometimes not. I just want the text to fade, what am I doing wrong?

View Replies !    View Related
Alpha In MX?
I have used Flash 5 for 2 years now. Yesterday I went out and bought Flash MX. Now everything is better except I cant seem to find out where the effects menu is. Someone please help me.

View Replies !    View Related
Why Is Alpha 0% Not Really 0%?
hi,

I have noticed this for awhile...if i make something alpha 0%, you can still see the object in a slight shade lighter than the background. Is this my monitors extra powers or what?

thanks, billy

View Replies !    View Related
Please Help-Alpha?
Does anyone know the actionscript for fading in frames. When I click one of my buttons it goes directly to the frame I want. I want that frame to fade in. Thanks in advance.

View Replies !    View Related
Alpha In MX
how do i change the alpha settings in flash MX

View Replies !    View Related
Alpha On Top Of Alpha?
This is very strange. My movie has a jpg with low alpha for the background. I made some buttons to put on top and lowered the alpha on those as well. Everything was fine until I tryed to make a word (graphic symbol) with low alpha. I typed a word, made it a graphic, put it on its own layer above the background and turned down the alpha. It looks fine in design view, but when i test the movie and export it, the alpha is 100%. What is going on? Thanks for your help!

View Replies !    View Related
Alpha In And Out MC
I have got the text to fade in and out when a button is pressed but they all do it at differant speeds. Why are they doing this???

Here are the actions

*****THIS SCRIPT IS ON A BLANK MOVIE CLIP ON THE MAIN TIMELINE******
onClipEvent (enterFrame) {
_root.fadeMC(_root.McAappear, _root.McA, _root.McB, _root.McC, _root.McD);
_root.fadeMC(_root.McBappear, _root.McB, _root.McA, _root.McC, _root.McD);
_root.fadeMC(_root.McCappear, _root.McC, _root.McA, _root.McB, _root.McD);
_root.fadeMC(_root.McDappear, _root.McD, _root.McB, _root.McC, _root.McA);
}

*****THIS SCRIPT IS ON A FRAME ON THE MAIN TIMELINE*******
McA._alpha = 0;
McB._alpha = 0;
McC._alpha = 0;
McD._alpha = 0;
function fadeMC (theVar, theClip, otherClip1, otherClip2) {
if (theVar == 1 && theClip._alpha<100 && otherClip1._alpha<=0 && otherClip2._alpha<=0) {
theClip._alpha += 10;
}
if (theVar == 0 && theClip._alpha>0) {
theClip._alpha -= 10;
}
}

How would I make them load all at the same speeds. I like the way that contact to questions and answers loads.

Here is the URL http://woo.didjitalyphrozen.com/chiro/chirohome.html

View Replies !    View Related
Alpha In Mc?
in a movie clip im making, i have somethings alpha motion tween from 0--100. it works when i play the mc, but when i export it to look, it skips the motion tween and just goes directly to 100 - i know i dont have like defective flash or file, it works on main timeline D:

help?

also i couldnt get a button to work in the same mc, what gives?!

View Replies !    View Related
Alpha Help
Hey all im having a problem
first hre is my code

for (i=0; i<35; i++) {


if (_root.corp._currentframe == _root.corp.corpframe12) {
_root.corp.works.funLogo.funBreak["break" + i]._alpha =
_root.corp.works.funLogo.funBreak["break" + i]._alpha -10


}
if (_root.corp._currentframe == _root.corp.corpframe1) {
_root.corp.works.funLogo.funBreak["break" + i]._alpha =
_root.corp.works.funLogo.funBreak["break" + i]._alpha +10


}
}

I wanna fade Moveclips using a for loop... the problem I'm having however. is that this Movieclip is also a slider . it will start all the way right and then on the push of a button slides left. ok so what i did was put the script on the first and last frame...so when the movieclip loads the alpha is 100, when its slides left and reaches the end fades to 0.. when it returns to the right it returns back to 100.. it works eventually but takes a longer time to fade in and out each tme

i really dont know why it doesnt work

any help would be appreciated ...thanks

View Replies !    View Related
Alpha
What i want, is simply to make this aquirium. So that everything inside is a little blueish, but when a fish jumps out of it, it should have it's regular color. I managed that, but when i tried adding stuffs like stones and other things in the aquirium, they got too blue, when i tried setting the alpha a bit down, the "water" got purple (?!). How can i manage this? (I only have Flash 5, so i can't use mx fetures.)

View Replies !    View Related
Alpha.. Where Is It?
i'm working in flash MX 6 for OSX and i can't seem to find the section to adjust the alpha/transparency for my symbol. "help" tells me its on the properties window but i dont see it anywhere. i've worked in flash 5.. yes so i'm an idiot for not being able to figure this out but i'm out of ideas. help!

thanks
j

View Replies !    View Related
Alpha
Hi

can any body let me know how can we increase or decrease the alpha of the an instance by action script like we do by tweening on layer.

regards

View Replies !    View Related
Q About MC Alpha
Hi there,

I want my mc to appear and disappear using the script.
so far i have this :

onClipEvent (enterFrame) {
this._alpha+= 1;
}


When its alpha reaches 100% i want to add another script to make it disappear so I added this:

if (this._alpha = 100) {

this._alpha-= 1;
}

but it doesn't work. What have i done wrong?

View Replies !    View Related
Alpha In And Out ?
is there a way to alpha in and out as you move between scenes ?

View Replies !    View Related
Alpha
hey all good morning. I was wondering if someone could quckly tell me the script to assign a button to lower the transparency (alpha) of a mc? Thanks!

View Replies !    View Related
Alpha
I got this code on a button to make a MC alpha 0 if pl is 0

that works but i want that when pl is 1 that the MC wil go for a alpha 100



Code:
on(press){
onEnterFrame=function(){
if(pl==0)
MC._alpha-=10;
} else {
MC._alpha = 100
}
}
any thoughts?

View Replies !    View Related
Plz Help- What Is Alpha?
What is alpha, the property that I can change under the property menu for a graphic? Thakns.

Smaug

View Replies !    View Related
Alpha
i am using thos code to set the alpha of a MC to 50% when this button is clicked:

on (release) {
_root.opacityCheck.gotoAndStop("trans");
_root.opacityPicked = "true";
_root.colorBar.setProperty(_alpha=50);
}

this however makes the MC that is holding the button 50%, not the MC "colorBar"

what am i doing wrong?

thanks!

View Replies !    View Related
Alpha
I cant seem to find the alpha button... or bar, wtv its called.
id get a picture... but my computers a little slow so ill try to explain it.

so what i thought was that when you select an object... somewhere in the properties menu there should be the alpha option... but the properties window is completely empty.

any suggestions

View Replies !    View Related
Alpha
Hi
In flash 5 i was able to alpha a jpg image, now in my new flash mx it dont seem to want ti alpha it just seems to change it to a solid color.

Is there something im doing wrong?
thank you

View Replies !    View Related
Can't Get Alpha To Do Anything?
Hello all,

I am finally trying to figure out MX on the Macintosh after using Flash 5.0 for years.

Frustratingly, I cannot get the Alpha transparency feature to do ANYTHING!!!

I tried the most basic exercise and still no go:

1. New movie
2. Add a black circle on a new layer
3. F8 to create a graphic
4. Click on frame 1, change alpha to 0% - NOTHING HAPPENS!!!
5. Try adding a keyframe, creating motion tween, changing alpha values at start/end - NOTHING HAPPENS!!!

I must be missing something really basic. Or possibly, I am missing some type of component in the install or my system? Any clues would be very welcome as I am about to start drinking, and its only 10:00 AM.

View Replies !    View Related
Using Alpha
How do I use alpha controls to make my movie clip fade from 100% opacity to 0% at the end of a shape tween?

View Replies !    View Related
Alpha=0?
How do you change a movie clip invisible?

View Replies !    View Related
Alpha In AS
Hello...

I´ve previously posted a problem with swapping depth which I menaged to solve in a diffrent way.

Now I have a question. I have several menus containing thumbbuttons connecting to a gallery that becomes visable on press on one of the buttons.

I wonder if there´s a way and how program it thru alpha instead so the gallery can fade in and out instead.

//Dr

View Replies !    View Related
Alpha Value
Hey gang. I'm sort of new to as, but I'm getting a handle on it. I've been trying to work out what I thought would be a simple code to put into a larger one later, that simply fades in a mc through changing it's alpha via the timer class. (I'm still new, so I hope I get my terminology correct - sorry in advance for any f-ups).
I've narrowed my efforts into a simple test fla. that has a rectangle I converted to a mc, and gave an instance name of test. The code for the first frame is this:

var alftest:Number = 0.1;
test.alpha = alftest;
trace(test.alpha);

At runtime, the rectangle dims as expected, but the output panel shows the alpha of mc test to be 0.09765625 instead of the 0.1 it should be. I have heard of floating point errors in trying to troubleshoot this, but this is simple assignment.
Any thoughts on how I can get the alpha to set to what I tell it to? Any help would be greatly appreciated.
Thanks!
Jojo

View Replies !    View Related
If And Alpha Help
Well I'm a bit nooby when it comes to variables and I don't have a very complete understanding on how they work.

What is want is simple.
To go to the next frame once a specific movie clip reaches an alpha of 0
Here is my code


Code:
import flash.events.MouseEvent;
import fl.transitions.*;
import fl.transitions.easing.*;

play_mc.addEventListener(MouseEvent.CLICK,fade);


function fade(Event:MouseEvent):void{
TransitionManager.start(play_mc, {type:Fade, direction:Transition.OUT, duration:5, easing:Strong.easeOut});

if(//--play_mc.visible == false OR play_mc.alpha=0 == false --\){
nextFrame();
}
I know the if statement is wrong but thats just describing what i want there.
Like I said i don't know much about variables. I haven't created any variables in this code. I don't know even if i need to, to get this effect.
Also when it fades does it actually change the alpha to 0? Or does it make it disappear some other way, therefore causing the alpha and visible thing not to work?
Thank you for any help.

View Replies !    View Related
Alpha
I ahave the main pics on the different pages of my site fade in and out...

Works beautifully when testintg it, but now that I have uploaded the SWFs and use it through internet explorer, it seems that everything works perfectly except for the fading...it works, but it seems slower than it should be


any advise?

View Replies !    View Related
Alpha
I have 10 images that I want to continously fade out into the next. I would like to try do this with an actionscript but I'm not that experienced...although it seems like it would be pretty simple.

I can fade out 1 clip at a time but don't know how to write the script so it fades out into the next and that fades out and so on... If anyone has time to help me out with this I would greatly appreciate it. Thanks!

View Replies !    View Related
AVI -> FLV (alpha)
How can I convert (on server) transparent .AVI to alpha channel .FLV ?

View Replies !    View Related
Alpha
Hi

Hope someone can help me with a small problem I'm having. Working on a web site where on top of an image I want to display a small row of boxes randomly changing alpha.

Now this isn't a problem to do this, I just use the random function and then change the alpha of the box but it does look a little jumpy and I was hoping for something a bit smoother.

Does anyone know how to acheive this but by it looking a bit smoother, like a motion tween would? You know the alpha goes from 100 to 56 over a series of frames so that it looks smooth rather than just jumps from 100 to 56?

Thanks,
Rab Bell.

View Replies !    View Related
Alpha BG
does someone know how i can put my background tottaly invislible (alpha 0%)

thanx

Jos Koomen :sketchy:

View Replies !    View Related
Alpha = 0, Well, ISN'T
Can anyone look at my www.costuragroup.com site on a Mac AND on a PC? Things look normal on the Mac, but when I test it on the PC, for instance, you see a crappy color box at the end of the signature that you don't see on the Mac. I'm getting really sick of having to do a lot of workarounds when I see that _alpha = 0 to 100 fade-ins don't LOOK transparent at the start. I'm wondering if this is some kind of stupid color issue. Thanks.

View Replies !    View Related
Alpha?
Is it possible to place a big rectangle that is fully blacked out over the whole stage of the flash project

And then make a circle that follows the crosshair and whatever part of the black rectangle it is over, that area dissapears so that it is like you are looking through a zoom?

Thanks

View Replies !    View Related
Alpha Mc
i am inside a movie clip and would like to set the alpha of a mc that is inside yet a different mc

_root.buttons1MC.setProperty("socialText",_alpha," 0");


am i close to having this right, it is not working for me

View Replies !    View Related
16 Bit Alpha?
Hi all,
Im using _alpha values on my movieclip. Now, if the user has 16-bit colors on his/hers display, the alpha will not appear to work correctly. This is a known issue, but is there a way to go around?

View Replies !    View Related
Alpha
please show me pictures explaining how to change the alpha on a MC or Graphic!! I press alpha under properties and it doesnt give me a box like in MX 2004 or MX to set the %!!

View Replies !    View Related
Alpha Help
i have a question.

mc instance name: box

when i apply this code to a movieclip
onClipEvent(load){
this.alpha = 0;
}
it works.

but

when this code applies
box.onEnterFrame = function(){
box._alpha = 0;
};
it wont work
any advice. i dont want to code on the main symbols, i want to put all the code in frames.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved