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




Fade With Actionscript



Hi guys.
I need to create transitions between some pictures into a MC. When I rollover a button a photo must dissapear fading and another one must appear. I want to do that with actionscript but I don't know how.

Any ideas for the code?

Thanks for the help.



FlashKit > Flash Help > Flash MX
Posted on: 07-04-2003, 09:10 AM


View Complete Forum Thread with Replies

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

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!

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();

Help With Content Fade In/fade Out Button Actionscript
Hello to all you people who are far, far more clever than me!

I've been searching the discussion pages for the answer to this, and I've found a few posts that are similar, but because the problems are just slightly different from mine I just don't understand what is going on. I've tried looking in the Flash MX help and that just confused me more!

I will attempt to explain my problem clearly. I have 5 buttons on the main (Scene 1) timeline. Each of these link to a different frame with different content on the main timeline (Scene 1) that is labeled and the links work fine. However, instead of clicking on the buttons and just having the old content disappear and be replaced by the new content, I would like the the old content to fade out and the new content to wipe on.

I have created the motion tweens for each content area (fade out, wipe on), but I know that somehow I am supposed to let the buttons know which button has been clicked and also which part of the timeline to play (which content to fade out and what frame to jump to to fade in). This is to do with variables and stuff but I just can't get my head around it - no matter how hard I try. I get confused with what you're supposed to label and where, and what script needs to be on the very first frame and what needs to be on each button. I know I'll get it one day... hopefully.

If you could help me it would be greatly appreciated, or if this question has already been answered could you please direct me to that post?

Thanking you in advance.

Fade In Fade Out Pictures With Actionscript
I need a actionscript for the following problem.

load external *.jpgs with loadmovie in a movieclip. The picture fade in and fade out. Then the next picture will fade in and fade out.

In Flash MX folder samples is a tutorial called load_images.fla This tutorial works with click on the button.

What I want is that the movie play itself.

ThanXS

MC Actionscript Fade IN / Pause / Fade Out
Sorry guys but I need a refresher. I have been away obviously too long and my brain isnt functioning the way it should with actionscripting (if you dont use it... you lose it). Anyways here is my problem - did a search and cant find a simular situation.

I have Bitmap photos that I need to fade in and out of the movie. Here is the scenerio. Photo fade in (30 frames from 0-100), Pause (photo at 100%alpha) for 50 Frames , Photo fade out (30 Frames from 100-0. I need to do this with 4 consecutive images for a slide show appearance without TWEENING which is killing me on display performance. I seriously THANK YOU in advance and promise not to let my scripting slide after I get back into the swing of things again

Peace:Pazul

Fade In, Pause, Fade Out W/ Actionscript?
i've started with slideshow example from macromedia and want to spice it up a little.

is there a way to fade each of these images in pause for a few seconds and then fade out after they load in from my xml file.

here is my current script that advances between the images:

//
// Autoplay and advances through the slides at given interval
setInterval(advance, 5000);
function advance(nextSlideNode) {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
loadMovieNum("logo2.swf", 0);
} else {
currentIndex++;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
}
}

if anybody knows how to do this - it is greatly appreciated.
thanks.

Help With Fade-In/Fade-Out In ActionScript
Howdy! I'm fairly new to ActionScripting but have enjoyed learning it. I have a movie clip which consists of nothing more than the two words "His Nation". At one point in my movie, I need this clip to start really small (illegibly small) and completely transparent and then slowly scale larger beyond the confines of the stage, while having it's alpha increment from 0 to 100 by the time it's at a relatively normal viewing size and then have the alpha increment back from 100 to 0.

With the ActionScript below, I've solved two of my three problems:

1. I've got the movie clip starting out really small and then scaling larger past the confines of the stage.

2. I've got the movie clip starting out transparent and slowly fading in to an alpha setting of 100.

All I need now is to figure out how to script it so that once the alpha reaches 100, it will then slowly decrement back to 0.

Also, as a side note, does my script actually stop the movie clip from scaling larger at all? It seems to keep on growing no matter what setting I put it at.

I know that I'm missing something rather simple, but any and all help will be greatly appreciated. Thanks in advance! Here's the script as it now stands:


onClipEvent(load){
scalecount=0;
alphacount=0;
}
onClipEvent(enterFrame){
do{
setProperty(hisnation,_xscale,scalecount);
setProperty(hisnation,_yscale,scalecount);
setProperty(hisnation,_alpha,alphacount);
alphacount=alphacount+.5;
scalecount=scalecount+3;
}while(scalecount<100);
}

Actionscript Fade In Then Fade Out...
I have this code on an MC and it doesn't quite work. I want the MC to fade in to 100% and then fade out back to 0%.

Here is the code:

onClipEvent(load){
_root.sparkle._alpha = 0
var myAlpha = _root.sparkle._alpha;
var myAlphaFlag = false;
}
onClipEvent(enterFrame){
// fade in the correct direction
if (myAlphaFlag<> true) {
if(_root.sparkle._alpha <100) {
//change this to speed/slow rate
_root.sparkle._alpha += 20;
}
} else {
if(_root.sparkle._alpha > 0) {
//change this to speed/slow rate
_root.sparkle._alpha -= 20;
}
}
// set the flag if it needs it
if (myAlpha = 100) {
myAlphaFlag = true;
}
if (myAlpha = 0) {
myAlphaFlag = false;
}
}

Fade In/Fade Out With Actionscript
Please I need your help!

I am making a presetation and I would like to know How to Fade In and Fade outa Text after a 8 seconds (there is a speech background). Should I convert these texts as a movieClip and Could you guys help me with the code!


Thanks!

Ricardo

[CS3] Fade In / Fade Out Using Actionscript
Hi there,

I am having trouble trying to get a simple fade-in fade-out effect which i want.

I have a main timeline.

On that main time line, i have a movie.

This movie contains 4 static frames -all with a stop(); on each. Each frame also has a forward and backward button which navigates to the next frame or previous.

What i want is when the movie is first loaded, i want it to fade up from 0 to 100. Then, as the user presses the forward/backward buttons, i would like the current frame to fade out and the next frame to fade in.

Is this possible?

Thanks in advance.

Fade In And Fade Out With Actionscript.
I am looking for a way to fade in a white movie clip over my main movie when a button is pressed.

(i.e. When you press a button, a white rectangle will fade in over all other layers and then fade out after a couple of seconds. This is to make it look like the different pages are fading in and out without having to build the transition over and over again.)

Does anyone have any idea how to do something like this?

Or the other way to do it is have the button change the opacity to 0 of all objects on the screen.

Is there any way to actionscript that?

My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
Hello all,
Hopefully this is just a simple problem with my code.

I have a container on the stage. When the loaded clip gets to the last frame it triggers the decreaseAlpha() function on the root level. This fades the current container out and works fine.

However I also want it to load the next clip(which it does) and fade that clip in. This doesn't work. It doesnt' fade in, can anyone point me in the right direction?

Thanks!!



Code:
function decreaseAlpha(boxName, clipName){
boxName.onEnterFrame = function(){
if(boxName._alpha > 0){
boxName._alpha -= 15;
}if(boxName._alpha < 5){
delete boxName.onEnterFrame;
increaseAlpha(boxName, clipName);
}
}
}
function increaseAlpha(boxName, clipName){
loadMovie(clipName, boxName);
boxName._alpha = 0;
boxName.onEnterFrame = function(){
if(boxName._alpha < 100){
boxName._alpha += 15;
}if(boxName._alpha == 100){
delete subboxName.onEnterFrame;
}
}
}

My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
Hello all,
Hopefully this is just a simple problem with my code.

I have a container on the stage. When the loaded clip gets to the last frame it triggers the decreaseAlpha() function on the root level. This fades the current container out and works fine.

However I also want it to load the next clip(which it does) and fade that clip in. This doesn't work. It doesnt' fade in, can anyone point me in the right direction?

Thanks!!


Code:
function decreaseAlpha(boxName, clipName){
boxName.onEnterFrame = function(){
if(boxName._alpha > 0){
boxName._alpha -= 15;
}if(boxName._alpha < 5){
delete boxName.onEnterFrame;
increaseAlpha(boxName, clipName);
}
}
}
function increaseAlpha(boxName, clipName){
loadMovie(clipName, boxName);
boxName._alpha = 0;
boxName.onEnterFrame = function(){
if(boxName._alpha < 100){
boxName._alpha += 15;
}if(boxName._alpha == 100){
delete subboxName.onEnterFrame;
}
}
}

Fade Through Actionscript
Hey there! I want to emulate a fade-in effect but only using one frame, through Actionscript.

My initial test was to do this:

slide._alpha = 0;
if (slide._alpha<100) {
slide._alpha = slide._alpha+1;
}

...But I guess it just goes through the whole process before displaying it, because its alpha is always showing as 100%

Any suggestions?

Fade Out Using Actionscript..
Ok, having problems with this..

I tried using a while loop, but flash calculated either too quick or too slow..

Can't find the answer in any of my books or in tutorials..!

Please help!

Fade Out With Actionscript
Hello..

just wanted to know if anyone could help me out.

i have a button within a movieclip and an
animating movieclip in there as well.

when the user rolls over the Movieclip/button
it triggers the animating movieclip to move into
the correct position.

what i want to do is to be able to tell the
animating movieclip that when the user has rolled
out of the button, to gradually fade the animating
movieclip out.

i know its got something to do with the "with" or
"tell target" operands but i just cant seem to get it right.

anyone who could help would be a lifesaver..


cheers..

Fade In Actionscript
I'm kind of new to MX, and to actionscript porgramming, therefore apologize for probably very simple question...
I have two movie clips on the main timeline
Each clip sits in a separate frame in a timeline (labelled "1st" & "2nd").
What I'd like to do is to write a script that would make the first movie clip fade-in gradually from alpha=0% to alpha=100% and as soon as it's alpha value is 100%, I want the timeline to jump to the next frame ("2nd")
I hope I explained it more or less clear...

If anyone out there happens to know a quick solution and/or thread or tutorial that answers the question. I'd really appreciate it.

Thanks in advance

Fade With Actionscript
I'm trying to do a fade with actionscript, i'm doing in this way:

function tranp(){
_root.criancas._alpha = 0
while(_root.criancas._alpha < 100) {
_root.criancas._alpha += 1;
}
}

but this don't work.

May someone help me?

Thank's a lot

Icaro

Fade MC In With Actionscript?
Is it possible to fade a movieclip in without tweening, just script?

>>> Fade In And Out With Actionscript <<<
how do u fade out and fade in with actionscripting with a movieclip?

Fade In/out Using Actionscript?
Can anyone tell me how to make images fade in then out again in sequence using actionscript? I'm a novice and have the fade out code but can't make it fade in again.

So far I have this script on one image :

onClipEvent (load){
this._alpha = 100;
i = 1;
}

onClipEvent (enterfame){
if (i<=100){
this._alpha = i;
i ++;
};
}

Can anyone help me fade it in again please:? Followed by other images doing the same thing.

Fade With Actionscript
I have 4 thumbnail images that I want to fade-in a corresponding larger image when clicked.
Each should also first fadeout the large image that is already there before it brings the new one in.

You see this sort of thing on many photography sites, and I believe it is done with variables somehow, but I am not sure how. Can anyone help? thanks
~Dan

Fade In A Mc By Actionscript
What I would like to do is have a button start at 10% alpha and go to 100% alpha on roll over. Then on roll out go back to 10% alpha.
I know how to do this with ENTER FRAME but not on roll over. Of course I could always just tween it , but where would the fun be in that/. Thanks for you help.

Fade To Using Actionscript
i am creating a simple viewer in flash where i will have four buttons each leading to a picture, i want to make it so that for example if the user is on picture one no matter if they click on pic 2,3 or 4 picture 1 will fade out and the appropriate picture fade in

if that makes sense?!?!?

thanks John

Fade Using Actionscript...
well the title doesn't really do this question justice, but here goes.

I'm creating a basic "color" slider that has 5 states. My slider basically has 5 points at which it will snap to when the user is dragging it around. once the slider has been snapped I want the colors to fade from 1 to another. each state is basically a jpg... details aren't important, but this is where I'm heading.


Code:
colorArrow.onRelease = function () {
this.stopDrag();
if (eval(this._droptarget) == area1) {
this._x = area1._x;
this._y = area1._y;
_root.quaint.colorBar.color1._alpha=100;
_root.quaint.colorBar.color3._alpha=0;
} else if (eval(this._droptarget) == area2) {
this._x = area2._x;
this._y = area2._y;
}else if (eval(this._droptarget) == area3) {
this._x = area3._x;
this._y = area3._y;
}else if (eval(this._droptarget) == area4) {
this._x = area4._x;
this._y = area4._y;
}else if (eval(this._droptarget) == area5) {
this._x = area5._x;
this._y = area5._y;
}
}
So to start, I just wanted to change the alpha from 1 clip to 100 and take another to 0. As you can see from the first if statement. But that isnt working. I'm quite positive I have the target path correct.

Sorry if this is vague, but any help is appreciated.

Fade With Actionscript
I have some actionscript im using to make this menu for a web site, i pretty much got it how I want it, but I was wondering if I could change the color instaed of the alpha, here is my code, can anyone help?

testbutton_btn1._alpha = 50;
testbutton_btn1.onRollOver = function() {
fade(this, this._alpha, 100, 0.85);
};
testbutton_btn1.onRollOut = function() {
fade(this, this._alpha, 50, 0.08);
};


I want to keep the fading part, i just want it to fade to a new color, not a higher alpha. Is there any way to add like this._tint instead, or somethin like that? Thanks!

Fade Out Using Actionscript
Hi, I have a movie with 4 layers. I need to fade out three of them, at a point, with the fade a couple of seconds and then starts the next frame. How do I do this?

Thanks

[F8] Actionscript Fade
Okay, what I want to happen is when the movie loads, it will randomly go to a picture that will fade in. Then after a maybe 10 seconds it will fade out and another picture will fade in. It will do this again and again. It'd be great if you can also post how to control the fading...

What I'm using now is:

PHP Code:



function reload(){
value1 =  Math.floor(Math.random() * 6) + 1
gotoAndStop(value1);
}
stop();
_root.reload();




It's on the first frame and there are 5 other frames, each with a movie clip containing:

PHP Code:



onClipEvent (enterFrame)  
{
this._alpha = _alpha + 2

}




It only fades in once when it loads but it stops there.

I only know the very basics for now, so can you please help me?

Fade In With Actionscript
I am new to actionscript, and I really don't know much about it. I am trying to Fade in and out our logo. I had found a code that would only fade it out, I tried changing the alpha to + and it didnt work. I am wondering if any one can help?

I had found this: Maybe someone can help me edit it, to my Movie Clip file?


Code:
MovieClip.prototype.fadeIn = function(speed){
this.onEnterFrame = function(){
this._alpha+=25;
if(this._alpha >= 100) delete this.onEnterFrame;
}
}
MovieClip.prototype.fadeOut = function(speed){
this.onEnterFrame = function(){
this._alpha-=25;
if(this._alpha <= 0) delete this.onEnterFrame;
}
}
ANY help is greatly Appreciated!! Thanks in Advance!

Fade Using ActionScript
Hi all,

anybody know of a quick way to fade a movieclip from 100 alpha down to 10 alpha using actionscript? I can't seem to find anything on this on the forums. Any help will be appreciated!

Thanks,
Rupert

Actionscript Fade
Question: I have a movieclip that I would like to have fade out with an actionscript that triggers after, say, 10 seconds. Anyone point me in the right direction?

Fade In/out Using Actionscript
Hi,

I am very new to actionscript and to forums and have been researching fade in/out effects with actionscript on the forum. I found the attched sample fla movie and have been able to apply this to my project. However, i want to create one extra effect and i cannot understand the code enough to adapt it to what i want.

basically, i want the buttons to be displayed at an alpha level of 50 (which i have managed to do) and i want them to fade in to an alpha level of 100 when rolled over and stay at this level until a new button is rolled over and then fade back to alpha level 50.

can anybody have a look at the attached code and let me know if there is a simple way to do this?









Attach Code

//import the required classes
import mx.transitions.Tween;
import mx.transitions.easing.*;

fscommand("allowscale", "false");

// create a loop to cycle thru all the buttons and backgrounds
for (var i:Number = 1; i<4; i++){
//create a reference to the background movieclips
var background:MovieClip = this["bk" + i];
//set the backgrounds depth
background.swapDepths(i);
//set the backgrounds alpha
background._alpha = 0;
//set the button alpha
button._alpha = 50;

//create a reference to the button movieclips
var button:MovieClip = this["btn" + i];
//associate the relevent background to the button
button.bk = this["bk" + i];

//create buttons functions
button.onRollOver = function(){
fadeMovieClip(this.bk, "over");
}
button.onRollOver = function(){
if (this.bk != currentBackground){
fadeMovieClip(this.bk, "over");
}
}
}

//create a function to fade the movieclip
function fadeMovieClip(bk:MovieClip, control:String) {
if (control == "over"){
// on rollover do this
bk.swapDepths(3);
var myTween:Tween = new Tween(bk, "_alpha", mx.transitions.easing.None.easeNone, 0, 100, .5, true);
myTween.onMotionFinished = function(){
currentBackground._alpha = 0;
currentBackground = bk;
delete myTween;
}
} else {
// on rollout do this
// loop thru the buttons and check if the mouse is still over one
for (var i:Number = 1; i<4; i++){
var button:MovieClip = this["btn" + i];
if (button.hitTest(_root._xmouse, _root._ymouse, true)){
return;
}
}
// if the mouse is not over any of the buttons fade out
var myTween:Tween = new Tween(bk, "_alpha", mx.transitions.easing.None.easeNone, 100, 0, .5, true);
currentBackground = null;
}
}
button.onRollOver = function(){
if (this.bk != currentBackground){
fadeMovieClip(this.bk, "over");
}
}

Actionscript Fade Mc
This works great for fadding a mc in but does anyone know how to switch it to fade that same mc out for a mid frame transition?

THANKS!

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, 15);
}

Actionscript Fade In/out
Hello!
I am trying to figure out a way to use actionscripting to fade in and out a series of "headlines". So far what i have is: a moviclip with a different "headline" in each frame, with a stop(); at every frame. On this instance I have the code:

onClipEvent(load) {
_alpha = 1;
diff = 5;
}
onClipEvent(enterFrame) {

if (_alpha >= 100|| _alpha <= 0) {
diff = -diff;
}
_alpha += diff;
}

This works fine to fade in and out the first frame, but i need a script that will know when the movie has faded in and out one time, then move to the nextFrame(); and to it again. Make sense?

Any ideas greatly appreciated!!

Fade Out Using Actionscript
Hi, I have a movie with 4 layers. I need to fade out three of them, at a point, with the fade a couple of seconds and then starts the next frame. How do I do this?

Thanks

Actionscript Fade Mc
This works great for fadding a mc in but does anyone know how to switch it to fade that same mc out for a mid frame transition?

THANKS!

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, 15);
}

Actionscript Fade In/out
Hello!
I am trying to figure out a way to use actionscripting to fade in and out a series of "headlines". So far what i have is: a moviclip with a different "headline" in each frame, with a stop(); at every frame. On this instance I have the code:

onClipEvent(load) {
_alpha = 1;
diff = 5;
}
onClipEvent(enterFrame) {

if (_alpha >= 100|| _alpha <= 0) {
diff = -diff;
}
_alpha += diff;
}

This works fine to fade in and out the first frame, but i need a script that will know when the movie has faded in and out one time, then move to the nextFrame(); and to it again. Make sense?

Any ideas greatly appreciated!!

Actionscript Fade In/out
Hello!
I am trying to figure out a way to use actionscripting to fade in and out a series of "headlines". So far what i have is: a moviclip with a different "headline" in each frame, with a stop(); at every frame. On this instance I have the code:

onClipEvent(load) {
_alpha = 1;
diff = 5;
}
onClipEvent(enterFrame) {

if (_alpha >= 100|| _alpha <= 0) {
diff = -diff;
}
_alpha += diff;
}

This works fine to fade in and out the first frame, but i need a script that will know when the movie has faded in and out one time, then move to the nextFrame(); and to it again. Make sense?

Any ideas greatly appreciated!!

Need Your Help With This Fade-in-out Actionscript
Right,
Basically what I want to accomplish is when someone hovers over a button, it fades in to a color. But when Roll out, it should fade out to the original color. I know I can simply put the 'fade in' in Over and 'out' in On, but I don't want that cos it would mean that when the flashsite loads, it would first show the 'fade out animation'.

Still with me, okay, let's move on.

From Flashkit I got an actionscript (i'll post it below), and yesterday I spend my Sunday getting the bloody thing to work, without result.

In short it should work like this:
I made a Movieclip (called overanim), from frame 1 to 14 a fade in (on frame 14 a Stop action) and from 15 to 23 the fade out (with a stop action on 15).
The anim itself works peachy.

Then there is the actionscript part that you should use on the button (and from what I understood you should apply it to the main button, and not the MC object or any other button inside the main button).


Code:
on (rollOver)
tellTarget (_root.overanim)
gotoAndPlay (1);


on (rollOut)
tellTarget (_root.overanim)
gotoAndPlay (15);
Alledgedly, you should put the MC in the Hit part of the Button, and leave the other 3 states empty (puting it in Over seems more logic to me, but then again, I am not the expert).

But as you understood, it doesn't work when I put it there. If I put the MC in Over and put in the On and Down state an object of the same size, it animates when you rollOver... but only to the Stop action (frame 14) and on Out it still does not fade out.

Any idea how I can get this $@#%#% fade in/out script to work. As always your help will be much appreciated

Tint Fade W/ Actionscript?
Is there a way to fade my Tint using Actionscript? I know there is a way to Alpha Fade things, but lets say I have something that is Red, and want to Fade it to Orange....I know how to change the color instantly, but I want it to Fade slowly. I know I have to use a for loop of some kind, but is there a command to fade the color? Thanks!

Josh Dura

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

Color Fade With Actionscript
Hoping someone can help me with this...

I have an FLA that contains a solid-color movie clip (name: back_color) and a menu with 5 buttons that are embedded in another movie clip (name: menu). When the user presses a particular button, I would like to trigger the "back_color" to fade from it's current color to the one specified by the button.

Of course, I can instantly change the color using the script below:

on (press) {
myColor = new Color(_root.back_color);
myColor.setRGB(0x662288);
}

But, I'd really like to learn how to make the color fade from one to the next... unfortunately, I am a complete newbie when it comes to Actionscript. Can anyone help me?

(Yes, I have searched the entire msg board and have not found a solutions that works for my situation)
[Edited by solocorp on 03-27-2002 at 03:52 PM]

Actionscript On Fade Text
Hey i need help, agian. Sorry for repediatly bothering everyone but i still don't get it. Heres my new upadted site http://jcs1287.tripod.com/es3.htm ( please wait for the intro, i'm sorry i haven't had time to fix it, u can't skip, but it's only 45 seconds so please just wait) .. Now as you see that my fade text( when you put your mouse over the pickture it fades. But as u can see my text is also in that pickture, and it fades with the pickture. I need it so my pickture fades, and the text comes up, then when the mouse isn't over the pickture anymore the text dissapears and the pickture reapears. It is similar to this web site http://nasi01.epicurissimo.com/ . I already know the action script to pickture, now all i basically need is one for the text to come up out of no where. Thanks agian for all the help.



Jason Stimac

Create Fade In/out With Actionscript?
Could someone show me how to exactly do a fade in/out with Actionscript? Very simply, there is a white canvas and a movie clip made of text.

How would you apply the actionscripts??

Fade Out MC With Actionscript Function
Hello,

could someone send me a function which fades out a MC?
I use FlashMX. I can't use any component and i need to use a function because i can only use one frame. I tryied to created it but until now i had no success.

Thanks,
Miguel

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.

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

***actionscript Fade In Question***
HELP PLEASE

Here is my dilema , I am trying to use a fade in script for a vector image, but when I got it to work, it shows all the layers of the image and doesn't look very nice.

This is important, I'm helping someone build a site for free and I need help to figure this out.

Thanks In advance!

piperboy

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

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