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








Fade Alpha On Images Using Actionscript?


Hi all,

I was wondering how to fade out an image (from 100% alpha to 0%) using actionscript? I tried setting the alpha property of a movie clip (that contained my JPG image), but I dont know how to have a smooth fade out. Any ideas?

Thanks in advance for the help
JG




FlashKit > Flash Help > Flash MX
Posted on: 12-26-2003, 04:27 PM


View Complete Forum Thread with Replies

Sponsored Links:

Image Error When Images Fade In Through Alpha Transparency
http://www.syntronix.de/flashintro.htm

in the last frame of the images that fade in there is an error i cant remove - they make a small flip - like if they are moved 1px horizontally

thanx for your help

tim

View Replies !    View Related
Actionscript Alpha Fade
I have 4 navigation buttons.

When each of the buttons is rolled over an mc with text in fades up. When the user rolls out the mc fades down.

For various reasons I want to be able to use actionscript for this fade rather than target labels on a timeline at different points of an animated timeline fade.

I've had a look around for some script I may be able to modify but have had no luck and need a little help.

Many Thanks in advance

View Replies !    View Related
Alpha Changes With Actionscript (fade In/out)
Is it possible to make a graphic fade in and out, without the usual tweening.

Also, can the time it takes to fade in and out be randomized??


If anyone could let me know how this is done, I'd be really grateful.

View Replies !    View Related
Alpha Fade In Actionscript
how do i do a mouseover function to fade in a menu using only actionscript. no tweens just as.

View Replies !    View Related
Can You Alpha Fade Through Actionscript?
Hello I was wondering if you can do an alpha fade through code alone without a time line. For example:

say we have a graphic symbol called square_1 .
(psuedo code)
fade square_1 from 10% to 90% in 10 seconds.

Thats basically what I want to know how to do through some kind of rate property.

Beyond that I want to put that code into a movie clip so It can be dropped on any other symbol to effect that symbol. How would I do that as well?

any help appreciated.
matt

View Replies !    View Related
Alpha Fade W/ Actionscript ?
Hello,

I have the following code pulling a JPG :

_root.createEmptyMovieClip("sectionImage", 4);
sectionImage.loadMovie("section0.jpg");
sectionImage._x = 1;
sectionImage._y = 132;
}

Is it possible to have it programmatically fade in with actionscript ? I tried adding a for loop, with _alpha being incremented, but it didnt work; maybe I am using the wrong syntax ? I tried adding :

var i=0;
if i<=100 {
sectionImage._alpha=i;
i++;
};


But it won't work like this... hmm

View Replies !    View Related
Alpha Fade In And Out W/Actionscript
I would like to fade a movie clip in when you roll over a dirrerent movie clip and have it's alpha stay at 100 until you roll over another movie clip, at which point it's alpha fades back to 0.

I am using this for a menu:

EX:

About Us - MC to roll over
[company people news] - MC to fade in

and then when you roll over another menu item this menu's submenu fades back to 0.

THANKS!

View Replies !    View Related
Alpha Fade With Actionscript?
Hi all,

I have a project I am working on where I would like to fade a movie clip out using Actionscript rather than a tween. Does anyone have any ideas on how I can accomplish this using Actionscript?

Thanks in advance!
JG

View Replies !    View Related
Alpha Fade With Actionscript
-using flash mx2004 pro-

hello all,
not sure how complex this is...

i have 4 squares, each one is a btn in a MC. box1_mc, box2_mc ect... heres what i would like to do...

they will load in with an alpha of
box1- 83
box2- 63
box3- 43
box4- 23

when the user rolls over box 2. the alpha of all four boxes changes to
box1- 63
box2- 83
box3- 63
box4- 43

same with the other boxes....

heres the code i have

code:
stop();

_root.boxes_mc.box1_mc._alpha = 83;
_root.boxes_mc.box2_mc._alpha = 63;
_root.boxes_mc.box3_mc._alpha = 43;
_root.boxes_mc.box4_mc._alpha = 23

function fadeDown(){

_root.boxes_mc.onEnterFrame = function(){
_root.boxes_mc.box1_mc.onRollOver = function() {
_root.boxes_mc.box1_mc._alpha = 83;
_root.boxes_mc.box2_mc._alpha = 63;
_root.boxes_mc.box3_mc._alpha = 43;
_root.boxes_mc.box4_mc._alpha = 23;
}
_root.boxes_mc.box2_mc.onRollOver = function() {
_root.boxes_mc.box1_mc._alpha = 63;
_root.boxes_mc.box2_mc._alpha = 83;
_root.boxes_mc.box3_mc._alpha = 63;
_root.boxes_mc.box4_mc._alpha = 43;
}
_root.boxes_mc.box3_mc.onRollOver = function() {
_root.boxes_mc.box1_mc._alpha = 43;
_root.boxes_mc.box2_mc._alpha = 63;
_root.boxes_mc.box3_mc._alpha = 83;
_root.boxes_mc.box4_mc._alpha = 63;
}
_root.boxes_mc.box4_mc.onRollOver = function() {
_root.boxes_mc.box1_mc._alpha = 23;
_root.boxes_mc.box2_mc._alpha = 43;
_root.boxes_mc.box3_mc._alpha = 63;
_root.boxes_mc.box4_mc._alpha = 83;
}
}


(if you have any suggestions on making this code more efficent i would like to know <--- still learning)

my question is, is there a simple way to make these fade instead of just snap?

how would i take the current alpha value of each box, make them fade according to which box is moused over?


this has been frying my brain for a few days, and all sort of relevent solutions to this have been soooo complicated.

thanks for any suggestions!

View Replies !    View Related
Actionscript Fade In-out MC Alpha
Hi everyone,

I'm having some trouble controlling a movieclip alpha through actionscripting...

I want the movieclip to start fading in when I roll over it, and to fade out when I roll out.

I managed to make my fade-in code work, but it just wont fade out... Here's the code :


Quote:




MC.onRollOver = function(){

mc_current_alpha = (MC._alpha);

function alpha_func_in() {

if(mc_current_alpha >= 100){
clearInterval(alpha_in);
}else{
mc_current_alpha++;
setProperty(MC, _alpha, mc_current_alpha);
}

}

alpha_in = setInterval(alpha_func_in,1);

}




The part I'm having trouble with is the fade out :


Quote:




MC.onRollOut = function(){

alpha_value = MC._alpha - 1;

function alpha_func_out() {

setProperty(MC, _alpha, alpha_value);

}
alpha_out = setInterval(alpha_func_out,1);

}




It doesn't fade out at all... But I can't figure out why. I attached a little .fla to show what it does.

Thanks !

View Replies !    View Related
Help With Actionscript Alpha Fade
Hello.

I'm having trouble with what I think should be a quick fix for an experienced Actionscripter. Basically, I am using buttons to do an alpha fade on some MCs. The fade out button works great, but the button used to fade the images back in just jumps the clips to 100% alpha with no fade. I've attached the code below, as well as a sample FLA file.

Thanks for your help!

-Scott

MovieClip.prototype.makeFade = function(minFade, speed) {
this.onEnterFrame = function() {
this._alpha -= speed;
if (this._alpha<=minFade) {
this._alpha = minFade;
delete this.onEnterFrame;
}
};
};
mcButtonOUT.onPress = function() {
mcButton2.makeFade(0, 10);
mcButton3.makeFade(0, 10);
mcButton4.makeFade(0, 10);
mcButton5.makeFade(0, 10);
mcButton6.makeFade(0, 10);
};
mcButtonIN.onPress = function() {
mcButton2.makeFade(100, 10);
mcButton3.makeFade(100, 10);
mcButton4.makeFade(100, 10);
mcButton5.makeFade(100, 10);
mcButton6.makeFade(100, 10);
};

View Replies !    View Related
Alpha Fade With Actionscript
Hi,

I'm using Flash 8, and I have an FLV Playback Component in a movieclip called logo_mc. The Playback Component is loading a movie from an external source. I want this movieclip to fade out when I click a movie clip called green_mc.

I closest I have been to getting the right code is...


Code:

green_mc.onRelease = function(){
speed=4;
targetAlpha=0;
logo_mc.onEnterFrame = function(){
alphaDifference=Math.abs(logo_mc._alpha-targetAlpha);
if(logo_mc._alpha>targetAlpha){
logo_mc._alpha-= alphaDifference/speed;
} else if (logo_mc._alpha<targetAlpha){
logo_mc._alpha+=alphaDifference/speed;
} else if (logo_mc._alpha == targetAlpha){
delete logo_mc.onEnterFrame
}
}
}
Is the problem that I'm trying to fade a movie clip with a component inside?

View Replies !    View Related
Alpha Fade Actionscript
Hello all,

I realize that alpha tweens are rough on the cpu, but I'm wondering if manipulating the alpha property by actionscript is the same.

I've read that 99% alpha to 1% alpha is far easier on a machine than 100% to 0%. Does the same hold true for actionscripted alpha fades?

I'd appreciate any insight.

Thanks,
Karen

View Replies !    View Related
Alpha Fade In Using Actionscript
Hi I am trying to fade in an image using actionscript,

this is the code i have,

speed = 10;
image.onEnterFrame = function(){
this._alpha>=100 ? this._alpha-=speed : delete this.onEnterFrame;
}


I've set the image on stage to alpha 0, i run this movie but nothing seems to happen, i've given the movie clip name an instance name of image.

can someone help?

View Replies !    View Related
Alpha Fade With Actionscript
Hi,

I'm using Flash 8, and I have an FLV Playback Component in a movieclip called logo_mc. The Playback Component is loading a movie from an external source. I want this movieclip to fade out when I click a movie clip called green_mc.

I closest I have been to getting the right code is...


Code:

green_mc.onRelease = function(){
speed=4;
targetAlpha=0;
logo_mc.onEnterFrame = function(){
alphaDifference=Math.abs(logo_mc._alpha-targetAlpha);
if(logo_mc._alpha>targetAlpha){
logo_mc._alpha-= alphaDifference/speed;
} else if (logo_mc._alpha<targetAlpha){
logo_mc._alpha+=alphaDifference/speed;
} else if (logo_mc._alpha == targetAlpha){
delete logo_mc.onEnterFrame
}
}
}
Is the problem that I'm trying to fade a movie clip with a component inside?

View Replies !    View Related
Alpha And Fade With ActionScript
Hello Dudes and Dudettes,

Here's one for you...

I have 6 buttons in a movie.
1, 2, 3, 4, 5 and 6.
Nothing too complicated so far.
I also have 6 background images
that I want to associate with each button.

When I click on a button, let's say #3, I want this to happen :
- the current background fades out while background #3
fades in.
If I click on button #5, the background #3 has to fade out
while background #5 fade in... and so on.

Any ideas would be truly appreciated.

Neuhaus3000

View Replies !    View Related
Alpha Fade In Using Actionscript
Hi I am trying to fade in an image using actionscript,

this is the code i have,

speed = 10;
image.onEnterFrame = function(){
this._alpha>=100 ? this._alpha-=speed : delete this.onEnterFrame;
}


I've set the image on stage to alpha 0, i run this movie but nothing seems to happen, i've given the movie clip name an instance name of image.

can someone help?

View Replies !    View Related
HELP How To Add Alpha Fade To Actionscript...
Hello!

I have some actionscript that tweens a movieclip from normal to 255 (R, G, B, A) and then back to normal. However, I'd like the movieclip to fade in to 255 and then back to normal. Can you help?

Right now my code is:


ActionScript Code:
var cColor;
MovieClip.prototype.fadeColor = function(cto, ease) {
    var d = 0;
    var myColor = new Color(this);
    // myColor.setTransform({ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0});
    this.onEnterFrame = function() {
        for (var c in cColor) {
            cColor[c] += (cto[c]-cColor[c])/ease;
        }
        myColor.setTransform(cColor);
        d++;
        if (d>20) {
            cto = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
            ease = 10;
        }
    };
};
pic.fadeColor({ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0}, 5);
var myColor = new Color(pic);
cColor = myColor.getTransform();

View Replies !    View Related
Alpha Fade On An MC Using Actionscript
Hi there

i need help in deciding how to do this - i was going to go about it the long way and have it all animated with all the possibilities but realised i could probably do this dynamically and it would make the file easier to update in the future...what am i on about?...read on...

presentation movie that showcases work...three images...three buttons

click on any button and an image slides into screen and becomes the 'current' image...when you select another button i want the 'current' image to alpha fade to 0 and the new image to slide in...

i also want the option to click on any of the buttons at any time, so i need to know how when clicking on a button it will know which image is 'current' and so fade it to allow the other image to slide in on top.

any help much appreciated

e

View Replies !    View Related
Unable To Fade Out Alpha Using Actionscript Only
In my main movie I have this.


function fade0 (name,end) {
var beg;
var Start;
var Now;
for (beg=eval(name)._alpha;beg>end;--beg){
eval(name)._alpha=beg;
Start= getTimer();
do{Now=getTimer();}while(Now<Start+10)
}
}

What I want to do is really simple. I want to pass a movie name and final alpha vlaue to this function and have it smoothly fade the movie to that final value. IM GOING NUTS! Flash processes the function yet doesnt update the alpha until the function is completed and the alpha is 0. So I dont get a smooth fade. It also suspends any animation in my movie while processing. I have tried many methods but it either doesnt update in increments or gives me the script taking to long error. Is there no way to do this with actionscript only? Why doesnt flash have a time delay function built in?!!! I would also appreciate any explination of how flash handles functions. For expample if I call 2 functions in a row, does flash wait for the first to complete before doing the second? I dont think so but would like to know for sure. Tony.

View Replies !    View Related
Alpha Fade With Actionscript - Flash 8
Hi,

I'm using Flash 8, and I have an FLV Playback Component in a movieclip called logo_mc. The Playback Component is loading a movie from an external source. I want this movieclip to fade out when I click a movie clip called green_mc.

I closest I have been to getting the right code is...


Code:

green_mc.onRelease = function(){
speed=4;
targetAlpha=0;
logo_mc.onEnterFrame = function(){
alphaDifference=Math.abs(logo_mc._alpha-targetAlpha);
if(logo_mc._alpha>targetAlpha){
logo_mc._alpha-= alphaDifference/speed;
} else if (logo_mc._alpha<targetAlpha){
logo_mc._alpha+=alphaDifference/speed;
} else if (logo_mc._alpha == targetAlpha){
delete logo_mc.onEnterFrame
}
}
}


Is the problem that I'm trying to fade a movie clip with a component inside?

View Replies !    View Related
Fade Away Alpha Levels In ActionScript
I've got an animation where I'm attaching a new movie clip at new X/Y coordinates that are in an array. I'd like to have the trailing movie clips gradually fade away by decreasing the alpha level. Here's what I've written so far:
//create float class containing all the drifter movie clips
class float extends MovieClip {
function float() {//constructor, occurs everytime a movie clip is attached
this.onEnterFrame = function() {
var floatName:String = this._name;
//this refers to every movie clip in float class
// creates string which is an instance name, refer to as "this"
var frameArray:Array = floatName.split("_");
//creates array by splitting float name by _ [float, floatNumber, frameCreated]

var frameCreated = frameArray[2] + 1;
var floatNumber = frameArray[1];
var fadeOut = 100 - ((_root.drift._currentframe - frameCreated));

//trace(this._name + " - " + fadeOut);
if(100 >= fadeOut >= 0){
this._alpha = fadeOut;
} else {
this._alpha = 0
}
};
}
}

I don't know what I'm doing wrong, but I keep getting NaN output. It's like my frameCreated variable isn't recognized as a number. Any suggestions? Thanks in advance!

View Replies !    View Related
How Do I Make A Fade In Using Actionscript (I Mean With Alpha)?
Does anyone know how to make a alpha fade in of a movieclip using actionscript? I'm in need of a script for that... I've never worked with controling alpha with the help of actionscript before... Thanx in advance for any help.

Niklas

View Replies !    View Related
Fade Alpha And Scale Of Mc With Actionscript
How can I fade the alpha and scale of a movieclip using actionscript? I've been using the code below but i want it to fade up rather than suddenly jump to 100%. Thanks!!


on (rollOver) {
_alpha = 100;
_xscale = 100;
_yscale = 100;
}

on (rollOut) {
_alpha = 40;
_xscale = 90;
_yscale = 90;
}

View Replies !    View Related
Button Alpha Fade With Actionscript?
In a recent thread, someone posted the following nice piece of code, which is a function and then an example usage of that function. However, it does not seem to work when the (clip) in question is a button and not a movie clip.

Can this code be modified to work with buttons? When I try to use it with buttons, the _alpha = 0 line works but the increment function fails. I'm guessing it has something to do with the fact that the function starts with the "MovieClip" class. I tried the word "Button" instead, but no luck. Thanks for any help for a beginner actionscripter.

MovieClip.prototype.Increment = function(maxAlpha, speed) {
this.onEnterFrame = function() {
this._alpha += speed;
if (this._alpha>=maxAlpha) {
this._alpha = maxAlpha;
delete this.onEnterFrame;
}
};
};
with (clip) {
_alpha = 0;
Increment(100, 2);
}

View Replies !    View Related
Frade Images In And Out With Alpha Actionscript
hi I have 3 images that I need to fade in and then out consecutively. I have surfed the web andasked in other forums and I can't get a response that I need...can anyone give me the code for this? thanks!

View Replies !    View Related
Fade Images With Actionscript
I did the Flash part of http://www.gcstulsa.com/
I want to load the images with actionscript.
How do I fade in mc1, leave it on for 20 frames, then fade out WHILE fading
in mc2?

Please help. I can't figure it out.

View Replies !    View Related
Alpha Tweening Multiple Images With Actionscript
Hi,

I have an alpha tweening question that I'm hoping someone can help me with. I've have 7 images in MCs that are layered on top of one another on separate layers.

I need each image to alpha fade in sequence to reveal the image beneath. I could do this how I've been doing it by tween the images in the timeline, but that's leaving me with a monstrous file size. So, I'm hoping to be able to do this with actionscript.

I'm familiar with Flash, but I'm an actionscript neophyte. I found this script which I'm able to use to tween the alpha of the MC:

onClipEvent (load) {
myAlpha = 100
}

onClipEvent (enterFrame) {
if (myAlpha > 0) {
myAlpha -= 2
}
_alpha = myAlpha
}

... but that only works for that one image. I need something that will reveal each image over time. Is this possible? Also, if there's a way to control the easing of the twean, that would be amazing!

Thanks in advance for the help.

View Replies !    View Related
Photo Slideshow - Fade Out/fade In (alpha) - Flash5
Hi all & merry Christmas

For a Photographers portfolio I want to create a fade-out/in effect for when people select one of the photos. All the photos are stored within one SWF.

So OnRelease the selected photo loads and a Var is set. The current photo is being set graduately to alpha 0% and the loaded new photo (which is a MC) is moved to the highest level while this one is being set immediately to alpha 100%.

If I think about it, what I need to code is...

- a var in which the current image is set
- a function which checks what image/mc is in the var
- a function which says something like this:
on release move new image to layer/level below current image (which is on toplevel) and set to 100% ;
set the current image (as set in var) gradually to 0% alpha
and as last move new loaded image to toplevel...

(all images would be put in an SWF which would be loaded into the main SWF)

unfortunately my AS knowledge is fairly limited, so I have no clue how to script this???

anyone an idea or possibly a tutorial which could sort me out???

thanks so much

View Replies !    View Related
Alpha Fade Image, Wait, Fade Out, Next Frame
Greeting,

After three hous of review I have now looked at so many scripts (here and elsewhere) of fading in/out that I am more confused instead of less confused, which seems odd I know.

Here is what I have and what I want to do. I am using MX.

I have twenty images, one one each frame of a movie clip, placed around the stage. I want the imges placed instead of loaded so that I can control where they appear on the stage. I would like each image to fade in, stay on the stage for 4 seconds, fade out, and then go to the next frame (and repeat with the image located on that frame). Does anybody have any scripts that already do this. I am a beginner and I am not that famaliar with action scripting. I think what I need to do is use an onEnterFrame, with an alpha fade in, some type of delay/counting script, and then a fade-out, and go to the next frame.

I know that you all have thousands of things you could be doing instead of helping me, so please know that I appreciate it.

View Replies !    View Related
Photo Slideshow - Fade Out/fade In (alpha) - Flash
Hi all & merry Christmas

For a Photographers portfolio I want to create a fade-out/in effect for when people select one of the photos. All the photos are stored within one SWF.

So OnRelease the selected photo loads and a Var is set. The current photo is being set graduately to alpha 0% and the loaded new photo (which is a MC) is moved to the highest level while this one is being set immediately to alpha 100%.

If I think about it, what I need to code is...

- a var in which the current image is set
- a function which checks what image/mc is in the var
- a function which says something like this:
on release move new image to layer/level below current image (which is on toplevel) and set to 100% ;
set the current image (as set in var) gradually to 0% alpha
and as last move new loaded image to toplevel...

(all images would be put in an SWF which would be loaded into the main SWF)

unfortunately my AS knowledge is fairly limited, so I have no clue how to script this???

anyone an idea or possibly a tutorial which could sort me out???

thanks so much

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
Alpha Fade In, Tint Fade In And Then Fade Out
Just wondering, do u guys usually use actionscript to do alpha and tint fade? or just use the propeties tween control?

i heard that using actionscript will be better as it will not lag if the user's computer is slow....

here is to get a better idea what i'm trying to achieve using tweening
http://h-y-p-h-e-n-s.net/main.swf

To Alpha fade in, white tint fade in and then fade out white tint to original state.


I knoww how to script the alpha fade in but i have problem with the tint fade. I also have read through every line of http://actionscript.org/tutorials/ad...de/index.shtml
but i just don't know how to go about implementing it to my case.

i will really appreciate it if u can help enlighten me

View Replies !    View Related
Alpha Fade In, Tint Fade In And Then Fade Out
Just wondering, do u guys usually use actionscript to do alpha and tint fade? or just use the propeties tween control?

i heard that using actionscript will be better as it will not lag if the user's computer is slow....

here is to get a better idea what i'm trying to achieve using tweening
http://h-y-p-h-e-n-s.net/main.swf

To Alpha fade in, white tint fade in and then fade out white tint to original state.


I knoww how to script the alpha fade in but i have problem with the tint fade. I also have read through every line of http://actionscript.org/tutorials/ad...de/index.shtml
but i just don't know how to go about implementing it to my case.

i will really appreciate it if u can help enlighten me

View Replies !    View Related
Alpha Fade In, Tint Fade In And Then Fade Out
Last edited by PixelSense : 2004-02-01 at 01:54.
























Just wondering, do u guys usually use actionscript to do alpha and tint fade? or just use the propeties tween control?

i heard that using actionscript will be better as it will not lag if the user's computer is slow....

here is to get a better idea what i'm trying to achieve using tweening
http://h-y-p-h-e-n-s.net/main.swf

To Alpha fade in, white tint fade in and then fade out white tint to original state.


I knoww how to script the alpha fade in but i have problem with the tint fade. I also have read through every line of http://actionscript.org/tutorials/ad...de/index.shtml
but i just don't know how to go about implementing it to my case.

i will really appreciate it if u can help enlighten me

View Replies !    View Related
Fade Out, Fade In Alpha Efect
fade out, fade in alpha efect
i 'm a jpg file, who make it movie clip, with alpha = 50 %.
on mouse over action i wanna set alpha on this picture = 0, but i wanna make this with little transition. i try this, but i don't make it, because i need set pu some variables, but i don't know how.

please help me. best regards for all who help me. sorry for my english, i don't speek english verry well.

View Replies !    View Related
Actionscript To Load Random External Movie, Fade In, Wait, Fade Out, Repeat
Hello,
I'm trying to construct some AS3 that will load a random one of several external swf files, fade the instance in, wait 5 seconds, fade the instance out, and load a new random movie (it can be the same one; I don't want to get too complicated at this point).
I could do this with no problem using older methods, but the client insists this is written in 3.
Please help; I'm at my wits end!

View Replies !    View Related
Actionscript To Fade In/fade Out Picture Depending On Frame?
I've searched the board but I can't figure out the answer to my question. I just want to fade in/out a movieclip. I can do this with tweens, but I'm really interested in how this would be done with actionscript.

How could I make it so that the fade in occurs with frames 1-15, stops, and then starting with 16 fades out?

I do have some code that will import a picture into a movieclip and fade it in, but I'm not sure how to alter the code so that the pic fades out on frame 16. The code below is fairly detailed... I would not mind a basic solution!!

Thanks for your help!


PHP Code:



init = function () {
        this.myContainer = this.createEmptyMovieClip("cont", 1);
    cont._x = 0;
    cont._y = 130;
        this.myContainer._alpha = 0;
        this.myContainer.loadMovie("picture.jpg");
        this.preloadJpg();
        };

preloadJpg = function() {
        this.onEnterFrame = function() {
                if (this.myContainer.getBytesLoaded()>100 && this.myContainer.getBytesLoaded()>=this.myContainer.getBytesTotal()) {
                        this.fadePicIn();            
                        }
        };
};
fadePicIn = function() {
        if(this.myContainer._alpha < 100){
                this.myContainer._alpha += 10;
        } else {
                this.onEnterFrame = undefined;
        }
}
this.init();

View Replies !    View Related
Alpha Fade
Hi
I have a graphic that I want to give the appearance of it being solid at one side gradually become more transparent then become solid again.

Its hard to explain. check out http://www.northwave.com/snow.asp in the mens boots section the boot selector at the top. At the edges the boots are only just visible. It just occured to me that its probably the boots that are changing not something over them.

Would I have to change the Alpha of the stuff thats moving,
or can i set up some kind of gradient aplha ?

Thanks in advance.

View Replies !    View Related
Using Alpha Fade
I read that using an alpha fade adds to file size and that there is a better way to fade in Flash without using alpha. Does anyone know how?

View Replies !    View Related
Alpha Fade
Hello!

Is there any way of fadeing alpha on a external swf (i dont mean the setproprety, but something with timer or anything else that will do the trick)

Ty in advance

View Replies !    View Related
Alpha Fade
I am stuck on a piece of pretty basic scripting. I have two two movie clips on the screen. clip #1 has the following scipt attached to it:

on (rollOut) {
with (_root.Ssuccess) {
var myClip = _root.Ssuccess;}
myClip._alpha = myClip._alpha + (random(20)-4);
}

the clip "Ssuccess" has alpha property set to zero.

What I want to happen: When someone rolls out of clip#1, the clip "Ssuccess" will appear and then slowly fade out. What does happen: on the roll out "Ssuccess" appears just fine, it appear lighter or darker depending on the random function, but it doesn't fade out. It stay just as it first appeared.

Can anyone help me with this? What am I doing wrong?

Thanks: jmmdmt

View Replies !    View Related
Swf Alpha Fade
3 menu buttons & 3 external swf's

click button 01 > 01.swf fades in
click button 02 > 01.swf fades out & 02.swf fades in
click button 03 > 02.swf fades out & 03.swf fades in
click button 02 > 03.swf fades out & 02.swf fades in
etc.

how is it possible to tell each button of the menu, that it should fade out every movie on the stage onmouse(release) whether it is swf.1, swf.2 or swf.3
please help anyone, need to finish a project and only need the AS for this -to finish it.

I don't know how to make the buttons work independently and not only covering only one swf.file.

Thanks for your help in advance !

View Replies !    View Related
Fade In/Out Alpha
I've finally graduated to MX, but the one thing I cannot find it where to set the Alpha for fading in and out.

I've checked throughout the board and checked thoughout Mac's Help pages, and everything indicates that my Properties will drop down a color option that allows Alpha, etc.

The Properties on my MX only has Tween and Sound options.

Uhm... help?

View Replies !    View Related
Alpha And AS Fade In And Out
can someone tell me how to go back on an AS Alpha fade out. I am really stuck here and have been up all night.

the pages have 4 images to alpa out together and back upon return. having trouble on the return side. I am using

onClipEvent(enterFrame){
if(_alpha < 100){
_alpha += 10;
}
}

and -=10 on the other side

View Replies !    View Related
Alpha Fade In And Out
I need a quick fix here kind of. Ive been trying to figure out a quick way of how to fade images in and out. This is what i have so far...

onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 2;

}


well that gets the image to fade in...but i dont know how to get it to fade back out.

If you look at my image that i have attached...basicaly i am wanting each one of the small images to fade in then out...and they would not show up in the same place, the layout of where the pictures are would vary, and i want to pull the pictures from a directory...so to make changes i just upload new images. If someone can give me an outline so to speak of how to do this that would be great. I really want to try and accomplish this with as much actionscript as i can though...i want to stay away from motion tweening.

If anyone can help that would be great, thanks

View Replies !    View Related
Alpha Fade
Im tring to get a movie Instance(wigpic) to fad in. How do I set up a length of time code. I think its running my whole loop then showing the picture.

This is what I have

wigpic._alpha = 0;

for (var a=0; a<20; a++){
wigpic._alpha += 5;
}

View Replies !    View Related
Fade In/out With Alpha
I know that alpha is used for fading. I want to fade some text in and out. I select the text and set alpha to 0%. I then add some key frames and add a motion tween. I then go to the last frame and set the aplha back up to 100%. But It doesnt recognize it as a motion. Also somethimes it will show the object but alpha will be at 0% or nothing will show and it will be at 100%. What am I doing wrong here. I just want to fade some text in and out. How do I do it?

View Replies !    View Related
Need Some Help Please - With Alpha Fade..
I havn't used flash since flash 3 and am now using flash mx. I began to make a very simple fla with 1 movie object, that has 10 frames. The frames are not tweened, well you can see at http://www.debt-management-usa.com/sample.fla .. For some unknown reason, the alpha does not show up. The increase in the size of the graphic works, but the alpha does not. Can anyone please look at this and tell me what I am doing wrong.

When explorting or testing scene, the alpha does not work..Baffles me.

Thank you,
Nick

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