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








Fade In/Fade Out Of A Movie Clip Of Buttons.


I have a movie clip that contains 6 buttons. I've put that clip on a layer and wish for the entire button wheel of buttons to fade in when it's moused over.

I put the buttons into a movie clip hoping that I could fade it in and out based on a mouse over, however when I do that with actionscript (using the movie clip name and things like onRollOver and onEnterFrame) I end up losing the functionality of the buttons.

I'm calling my movie clip that holds the buttons _buttonWheel

I'm using ActionScript 2.0 in Flash 8.

Is there a way to fade a movie clip of buttons without losing the functionality of the buttons contained inside the movie clip? I'm fairly new to advanced actionscripting. So I could use some pointers.

I can send the clip if needed.

Thanks,

Jody




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 11-22-2006, 12:20 AM


View Complete Forum Thread with Replies

Sponsored Links:

Help Fade In And Fade Out Movie Clip With Buttons
I’m trying to write a script for a web page. Probably using tween classes that uses several different buttons to control movie clips that fade in and fade out. All the movie clips are in the same location on the stage so the clip that is present needs to fade out when the next button is pushed.

This website has a great example of what I’m looking to do.

http://jchawaii.com/v6/boards.php

View Replies !    View Related
How Can I Fade In And Fade Out A Movie Clip Using Set Interval?
Complementary info : im using the photogallery code I found on this website
I bet it's really quite simple, the movie's got to fade in with _alpha += 0.5, stay onscreen for a short time and then fade out. All this works with an onEnterframe, something I'm not completely comfortable with...
I'd love to send the fla but it's way too heavy.
Any helpfull souls around?

View Replies !    View Related
Buttons To Fade In And Fade Out Movie Clips
Sorry if this seems rudimentary to everybody, but I’m trying to write a script for a web page (possibly tween?) that uses several different buttons to control movie clips that fade in and fade out. All the movie clips are in the same location on the stage. so the clip that is present needs to fade out when another button is pushed and a new clip fades in. This website has a great example of what I’m looking to do.

http://jchawaii.com/v6/boards.php

View Replies !    View Related
Movie Frame/Clip Fade Out - Different Buttons
Hi,

I have a website with 5 pages or sections or clips ( i can change to suit if it helps)
with 5 button as the menu bar.

At the moment i have a timeline, when a button is pressed it goes to that label, the section fades in and stops.
If a random section button is pressed, is there a way to fade out the current section, before the section that was pressed fades in.

I also tried movie clips, everything works fine for 2 buttons, as you can fade each section in/out for 2 pages.
Do how i do with for 5 buttons?. At the moment they are display/fading out what is not currently on the stage!


I using very basic scripts. is there a way to tell random buttons (1-5) that the current movie clip or frames need to play its fade-out sequence, before new clips fade in.


too confusing.


best,

rai

View Replies !    View Related
Easy Fade ( Movie Clip Buttons )
Incase anyone makes alot of Alpha rollover changes this little code snippet will automatically enable all buttons via array or inside the object to have a rollover and rollout.

It also cleans up after it's done.
ActionScript Code:
// Vars
var fadeSpeed:Number = 5;
var fadeMin:Number = 20;
var fadeMax:Number = 100;
var fadeStart:Number = 20;
// fade Prototype
MovieClip.prototype.fade = function(fadeValues) {
// Set Values
var fadeSpeed = fadeValues[0];
var fadeMin = fadeValues[1];
var fadeMax = fadeValues[2];
this._alpha = fadeValues[3];
// Roll Over Function
this.onRollOver = function() {
delete this.onEnterFrame;
this.onEnterFrame = function() {
if (this._alpha<fadeMax) {
trace(this._alpha);
this._alpha += fadeSpeed;
} else {
delete this.onEnterFrame;
}
};
};
// Rollout Function
this.onRollOut = function() {
delete this.onEnterFrame;
this.onEnterFrame = function() {
if (this._alpha>fadeMin) {
trace(this._alpha);
this._alpha -= fadeSpeed;
} else {
delete this.onEnterFrame;
}
};
};
};
// USE ARRAY OF ALL MOVIE CLIP INSTANCE NAMES
/*
var clipArray:Array = new Array('item1','item2',....'itemN');
for(var num in clipArray) {
this[clipArray[num]].fade([fadeSpeed, fadeMin, fadeMax, fadeStart]);
}
*/
// GET ALL MOVIE CLIP INSTANCE NAMES IN OBJECT
/*
for (var clip in this) {
if (this[clip]._target) {
trace(this[clip]._target);
this[clip].fade([fadeSpeed, fadeMin, fadeMax, fadeStart]);
}
}
*/



Enjoy

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

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

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
Fade Out And Fade In Bteween Scenes Or Movie Clips
I'm a beginner and doing some experiments. Can anybody help me to explain how we make a fade out and in effect to whole thing when we click on a button? Your kind help in this topic is highly appreciated.

View Replies !    View Related
Help With Xml Gallery : Clip Fade In/fade Out
Hey everyone!

I'm trying to have the following clips "motion1" and "motion2" fade in and out with alpha values. I got them to fade in (using if (motion1._alpha<100){motion1._alpha +=0.9}), and I just can't mak'em fade out.

Here's the code, I've commented it as much as i could, could anyone check it out?

Just as a reminder, the "delay" value tells how long the image stays displayed before it is changed...What I'm trying to do is having the "motion1" and "motion2" movie clips gradually appear when the image changes for exemple, with the delay value = on 19500, motion1 and 2 fade in; on 20500, motion1 and 2 fade out...

I hope I'm making sense, overall I hope I get through this code one day! PLEAAAAAAASE help me out!

delay = 20000;

//-----------------------LOAD XML-------------------------------------------

function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;

image = [];

description = [];

total = xmlNode.childNodes.length;

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

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;

description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}

firstImage();

} else {

content = "file not loaded!";

}

}

xmlData = new XML();

xmlData.ignoreWhite = true;

xmlData.onLoad = loadXML;

xmlData.load("images.xml");

/////////////////////////////////////

//LOADER SECTION----------------------------------------------------

p = 0;

this.onEnterFrame = function() {

filesize = picture.getBytesTotal();

loaded = picture.getBytesLoaded();

preloader._visible = true;

if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;

//-------------LOAD PICTURE+boucle alpha pour images et motionclips--------------

---Warning line below part of else

if (picture._alpha<100) {

picture._alpha += 50;

}if (motion1._alpha<100)

motion1._alpha += 0.9;

}

if (motion2._alpha<100) {

motion2._alpha += 0.9;

}

};

function nextImage() {

if (p<(total-1)) {

p++;

if (loaded == filesize) {

picture._alpha = 0;

View Replies !    View Related
How To Make Buttons Fade On Fade Out?
Hello all, been reading posts on here for a while, but decided to sign up as I need a bit of help.

Somebody has asked me to replicate the navigation found on this site:


Nowadays I tend to use photoshop and dreamweaver more than flash. Can someone give me a rough guide on how to do it? I can make the fading out movie clip, but it's just a case of telling the button to do that on release of it!

Uploaded the file here for anyone who can help


password: actionscript


Thanks

View Replies !    View Related
Thumbnail Buttons: Fade In, Fade Out
I tried searching for a topic similar to this. Hope I'm not repeating. I'm trying to find a way in Flash 8 to make an image fade in when its thumbnail counterpart is clicked, then fade out and get replaced by a different image when another thumbnail is clicked. The fade in-fade out part is no problem. The problem is how to get these linked to specific thumbnails/buttons using action script. I'm not versed in action script, but wouldn't it be something like "load movie clip on release" "unload movie clip on ?". Tried looking in tutorials, in the book, nada. I'm able to load the movie clip, but it simply keeps looping once loaded. Hopefully someone can help an action script doofus. I've included an image of how I'd like it work.

View Replies !    View Related
Fade In / Fade Out Multiple Movie Clips - Help Me
I have a flash website that is setup linearly into different sections. Lets call them Section 1 through 5. The page is divided in two. On the left side is my navigation. On the right side is my content. On the left side behind my buttons is a picture. I have 5 different pictures, 1 for each section. So, what i want to do is when you click on a button and go to a new section I want it to fade-out the bottom picture and fade-in the new picture and take you to the new content section.

Anyone know how to do this? I don't know much actionscript, but I'd like to do this w/o having to make a ton of movie clips.

I've been messing with this all day...Please help.

Thanks
IJoeR

View Replies !    View Related
[FMX]Load Movie In Container With Fade In Fade Out?
Hi,

I have a menu (mc_menu) with 6 button mc's (btn_home, btn_about, ..........btn_contact) I also have 6 containerson the stage (content_home, content_about, ..........content_contact)

Right now I'm loading different external swf's(home, about,......contact) with the following AS code:
Code:
function pagina(page) {
showContent(page);
}
function showContent(page) {
var c = this["content_"+page];
for (var i in this) {
if (this[i]._name.substr(0, 8) == "content_") {
this[i]._visible = (this[i]._name.substr(8) == page);
c.loadMovie(page+".swf");
}
loadingPage = page;
}
}
and on the buttons I call that functions:
Code:
function setButton() {
for (var i in menuMc) {
if (menuMc[i]._name.substr(0, 4) == "btn_") {
clip = menuMc[i];
//RollOver and RollOut stuf goes here
clip.onRelease = function() {
pagina(this._name.substr(4));
};
}
}
}
But I want the external swf's to load in just one container with fade in and fade out. How can I reach this?

Thanks in advance

View Replies !    View Related
[FMX]Load Movie In Container With Fade In Fade Out?
Hi,

I have a menu (mc_menu) with 6 button mc's (btn_home, btn_about, ..........btn_contact) I also have 6 containerson the stage (content_home, content_about, ..........content_contact)

Right now I'm loading different external swf's(home, about,......contact) with the following AS code:
Code:
function pagina(page) {
showContent(page);
}
function showContent(page) {
var c = this["content_"+page];
for (var i in this) {
if (this[i]._name.substr(0, 8) == "content_") {
this[i]._visible = (this[i]._name.substr(8) == page);
c.loadMovie(page+".swf");
}
loadingPage = page;
}
}
and on the buttons I call that functions:
Code:
function setButton() {
for (var i in menuMc) {
if (menuMc[i]._name.substr(0, 4) == "btn_") {
clip = menuMc[i];
//RollOver and RollOut stuf goes here
clip.onRelease = function() {
pagina(this._name.substr(4));
};
}
}
}
But I want the external swf's to load in just one container with fade in and fade out. How can I reach this?

Thanks in advance

View Replies !    View Related
How Do I Fade A Movie Clip?
I'm having trouble trying to fade the visibility of a movie clip from the click of a button....

please help

View Replies !    View Related
Movie Clip Fade Out
Hi all,

I am trying to "fade out" a movie clip inside of a button and I cant remember how to do it!

Here is what I have...a movie clip containing a JPG that fades in from an alpha of 0. I placed this inside of my "over" state in a button so when a user rolls over it, the image fades in.

Great, works no problem, however... I want it to fade back out when the user mouses off of the button. How do I do that? I think I have done this in the past but havent been working heavy duty in Flash lately.

Any help is appreciated!

View Replies !    View Related
Movie Clip Fade?
I would like to fade a movie clip (alpha 0% to alpha100%) with action script on a key frame in a presentation instead of a regularly tweening, to make it smoother. And I can’t remember hove to do that.
Can anyone please tell me?
/Borje

View Replies !    View Related
Movie Clip Fade Out
Hai
I have a movieclip that act as a popup.It appeares with a fadein effect when I press the button.There is a button in this MC to close this popup.I want to close this MC with a fadeout effect.I have put the actionscript for fadein in on those button when it clicks the popup appeares.
Hope anybody can help me

View Replies !    View Related
Movie Clip Fade In/out
Hi guys.

Im new to action scripting and have some problems getting my movie clip to act the way i want. What i want to do is this: on MOUSE_OVER i want the clip to fade to alpha 30 and on MOUSE_OUT i want to fade the clip back to alpha 100 (from whichever alpha it was when MOUSE_OUT was performed).

what i have now is a clip that will fade to alpha 0 when MOUSE_OVER and fade from alpha 0 when MOUSE_OUT, but i still need to tweak it.

My code, that gets me part of the way, is this:


ActionScript Code:
stop();
import fl.transitions.*;
import fl.transitions.easing.*;


rollins_mc.addEventListener(MouseEvent.MOUSE_OVER, onHover);
rollins_mc.addEventListener(MouseEvent.MOUSE_OUT, onOut);

function onHover(event:MouseEvent):void
{
TransitionManager.start(rollins_mc, {type:Fade, direction:Transition.OUT, duration:9, easing:Strong.easeOut});
}

function onOut(event:MouseEvent):void
{
TransitionManager.start(rollins_mc, {type:Fade, direction:Transition.IN, duration:9, easing:Strong.easeOut});
}
I hope someone can help.

Esben

View Replies !    View Related
Movie Clip Fade Out
Hai

I have a movieclip that act as a pop up.It comes with a fade in effect.I want to fade out it when Iam pressing the close button on that popup.Now it is closing suddenly.Instead of that I want a fade out effect.
Hope any body can help me.
with regards
nazam

View Replies !    View Related
Fade Movie Clip In/out
I have a scene that fades in at the start by means of a black rectangle that covers the entire stage that fades from 100% opacity to zero. Is this method reliable or is there code I can use to do the job?

Also, the thumbnails on the Ultrashock home page blur in. Is this possible to do with a movie clip?


Thanks

View Replies !    View Related
Fade In External Movie Clip?
hi all,

i was wondering if anybody can tell me how to do a fade-in effect for an external movie clip? basically, i have an external movie clip in which i would like to have it load into the main movie but, with a fade in effect. (i know how to load and unload a movie clip; it's the fade-in effect that i'm interested in.)

thanks a lot for your help!

ps. btw, i use flash mx for this project.

View Replies !    View Related
Movie Clip Random Fade
I'm using Flash MX

Put simply, I have a background image on a layer which then has another layer on top filled with 100x100 square movie clip instances (of the same movie clip symbol). The movie clip symbol fades out and then back in again over a period of 5 seconds. What I would like to achieve is to have the movie clips randomly fading in and out, rather than me create a large secondary movie clip where I 'fake' the random fades over a large loop.

Hope that makes sense.

View Replies !    View Related
Random Movie Clip Fade
I'm using Flash MX

I would like to know if there is a way I can randomly trigger a movie clip to play? I have created a simple movie clip which is then positioned a number of times in the same scene and on the same frame but I want each of these movie clips to be able to play individually from each other and randomly. Is this possible?

View Replies !    View Related
Fade In Movie Clip W/ Button
Hello, I would like to know how to fade inn a Movie Clip or object to the stage using Action script. In refrence to this: http://www.flashkit.com/board/showth...hlight=fade+in
but instead of fading out, I want it to fade in by a simple click of a button.

the code to make the fade out button by Chuckles8421 on the thread above:

Button Code:

on(release) {
_root.MCName.fading = 1;
}

Movie Clip Code:

onClipEvent (enterFrame) {
if (fading) {
_alpha -= 5;
fading = _alpha == 0 ? 0 : 1
}
}

and that resolves to fading out. But I want to fade in. But how? Help please! thanks.

View Replies !    View Related
Fade Movie Clip With Loop?
on (rollOver) {
bub._x = 19;
bub._y = 4;
//TRYING TO FADE THE BUB MOVIE CLIP IN WITH A LOOP?
x = 1;
bub._alpha = x;
while (x<100) {
x++;
}
}

i've never done loops before, not sure if you can do this on a mouse over. Basically what i'm trying to do is on a button rollover a movie changes it's position on the stage and then it fades in gradually. And on mouse out, it fades out gradually then moves or unloads.
Any help would be very well appreciated.
thanks!!
- nimbusism

View Replies !    View Related
How Do I Fade Out A Movie Clip Using Actionscript?
Is there a way to do this with code...and so that you can vary the speed at which it fades out?

Thanks.

View Replies !    View Related
How Do I Fade Out A Movie Clip Using Actionscript?
Is there a way to do this with code...and so that you can vary the speed at which it fades out?

Thanks.

View Replies !    View Related
Fade In A Movie Clip Using Actionscript
Can anyone please enlighten me, how one would go about using action script to fade in a movie clip using a loop and movie alpha channel properties.

View Replies !    View Related
Make Up A Fade Up On A Movie Clip
This might be simple but i am unabel to get this - Does any one know how to do a fade up on a movie - I am showing a picture -and i need the picture to fade up then fade down - is this action scripting or a tween action that im missing - please help Thanks!!!!

View Replies !    View Related
Fade In Movie Clip In A Button
Hi there
I have a button and I would like to add a movie clip for the "on mouse over" stage. However, I would like that movie clip to fade in from alpha 0% to alpha 100%.

Is there a way I can do this without having to touch the layers of the movie itself?

For example, can I put some actions on the "on mouse over" layer on the button rather than touching the movie clip?

Thank you!

View Replies !    View Related
Fade Movie Clip Out With A Pause. (Please Help)
Hi all, I've not posted here for an age but I've encountered a problem whilst trying to teach myself some 'simple' AS. I'm using Flash 8 & trying to fade three clips out over an image (to achieve a gradual reveal) and I kind of have the AS for that but I'd like each of the three blocks to kick in slightly after the one preceding it. How do I achieve this using AS and not the time line?

Here's my code (attached to the object I'm fading) for the fade.

onClipEvent (enterFrame) {
speed = 2;
this._alpha -= 2;
}

p.s. If anyone knows a better way of achieving all this then I'm all ears.

Please help.

View Replies !    View Related
Fade Alpha Of Movie Clip
Greets all,

I'm trying to do some actionscript that will fade the alpha value of a movie clip (which contains a video). Right now my mouse events only set the alpha to 100% and 0%.


mcVideo._alpha = 0;

mcContainer.onPress = function():Void {
this.mcVideo._alpha = 100;
};

mcContainer.onRelease = function():Void {
this.mcVideo._alpha = 0;
};



This is cool and works well but it would be nice to have a fade. How would I do this? Thanks in advance!

View Replies !    View Related
Movie Clip Won't Play (fade)
I am working on my portfolio and unfortunately I've experienced some problems

I made a movie clip that fades from white to invisible and placed it on top of each image hoping it would make it fade in, however the fading movie clip doesn't play. What could be the cause of this?

I am trying to get each image to fade in when they are clicked, and when another is chosen, that one fades out. This is all I need to happen, Please help!

http://www.theaxiomproject.com/sinnednyc/paintings.swf

View Replies !    View Related
Movie Clip Fade In /out Problem
I have a flash web site about 8 "pages" (one frame per page) and I'm trying to create a transition between pages where when the user clicks on a link the main part fades to white and then fade fades back out to show the new page. I'm having all kinds of trouble with this. Can someone recommend a way I can do this? Using AS2.
Thanks in advance.
R

View Replies !    View Related
Fade In Empty Movie Clip
Hi,

I'm working on a project that is loading images into flash using xml.
The flash is working, but not as I want. I want the images to fade in every time a thumb is pressed.
The below code is fadeing the images only if they haven't been downloaded on the computer.

[code]
filesize = imageContainer.getBytesTotal();
loaded = imageContainer.getBytesLoaded();
if (loaded != filesize)
{
preloader._visible = true;
preloader.preload_bar._xscale = 100 * loaded / filesize;
firstTimeIn = false;
}
else
{
preloader._visible = false;
if (imageContainer._alpha < 100)
{
imageContainer._alpha = imageContainer._alpha + 5;
} // end if
if (firstTimeIn == false)
{
xGoTo = undefined;
yGoTo = undefined;
imageContainer._x = 0;
imageContainer._y = 0;
imageContainer._alpha = 0;
firstTimeIn = true;
} // end if
} // end else if

If you can help me please write me. I ned this done by tomorrow.
[code/]

View Replies !    View Related
Fade In On An External Movie Clip
Hi all:

I'm sure this is a simple question but doing searches, I've found plenty but none that answer my exact question.

I have a movie that calls out to a jpg on the server. I did so using an empty container method. Here's my code:


Code:
_root.createEmptyMovieClip("container",1);
container.loadMovie("splash.jpg");
container._x = 10;
container._y = 36;
container._alpha=100;
That works, but, I would like to mask it. I can do this easily enough with imported images, but it does not seem to work with loaded images.

Also, on the image, I would like a simple tween of alpha for 0 to 100% say in about 10 frames.

Any and all help would be very appreciated!

S

View Replies !    View Related
Fade In Movie Clip In A Button
Hi there
I have a button and I would like to add a movie clip for the "on mouse over" stage. However, I would like that movie clip to fade in from alpha 0% to alpha 100%.

Is there a way I can do this without having to touch the layers of the movie itself?

For example, can I put some actions on the "on mouse over" layer on the button rather than touching the movie clip?

Thank you!

View Replies !    View Related
Fade Movie Clip With Script
I've searched and found similar posts, but having not used flash for years, I am back to learning from ground up.

I found this script and works well

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;

var myTween:Tween = new Tween(banana_mc, "x", Elastic.easeOut, 50, 450, 3, true);
and does exactly what the example shows... now I want to fade it in... but this code below, that I've found on flash help, won't work, just want to know what I'm missing


Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

new Tween(banana_mc, "_alpha", Strong.easeIn., 100, 0, 3, true);

using flash 8 and I don't use both codes at the same time, basically I just use it for trial and error testing.

thanks for any clarification on what is wrong/missing in the code

View Replies !    View Related
Movie Clip Fade In /out Problem
I have a flash web site about 8 "pages" (one frame per page) and I'm trying to create a transition between pages where when the user clicks on a link the main part fades to white and then fade fades back out to show the new page. I'm having all kinds of trouble with this. Can someone recommend a way I can do this? Using AS2.
Thanks in advance.
R

View Replies !    View Related
Fade In _alpha Of A Movie Clip Through AS
Do you all know of a way where I can call a function that will change the _alpha of a mc from 0 to 100? I would like for it gradually fadein, and fade out. I have tried this:
function fadeIn(){
z=1;
while (z<100) {
_root.box._alpha += 1;
z++;
}

View Replies !    View Related
Fade Out Movie Clip On Button Press?
Hey people-

I'm making a site with windows that I could like to fade out when the user preeses a button within the same movie clip as the window itself. I've tried to make it go to a part in the movie clip that has an alpha = 0 tween but no luck. Maybe actionscript is the answer? The movie clip name is "about".

Thanks!

View Replies !    View Related
Fade In Movie Clip Containing Dynamic Text...
Is it possible to use a simple motion tween fade on a movie clip that contains dynamically loaded text from an external text file? All my efforts to do this continue to result in the text simply showing up, not fading in...

Thanks for the help.

View Replies !    View Related
Fade In Movie Clip Containing Dynamic Text...
Is it possible to use a simple motion tween fade on a movie clip that contains dynamically loaded text from an external text file? All my efforts to do this continue to result in the text simply showing up, not fading in...

Thanks for the help.

View Replies !    View Related
[CS3] Fade/remove Movie Clip With Actionscript
I'm setting up a simple photo gallery. I would like the thumbnails for the gallery to appear over the top of the large images, and need one button to toggle thumbnails on/off.

This is what I have:


Code:
thumbnail_mc._alpha = 0;
thumbnail_mc._visible = 0;

thumbnail_btn.onRelease = function() {
if (thumbnail_mc._alpha == 100) {
thumbnail_mc._visible = 0;
thumbnail_mc._alpha = 0;
} else if (thumbnail_mc._alpha == 0) {
thumbnail_mc._visible = 100;
thumbnail_mc._alpha = 100;
}
};
The reason I want to remove the clip and not just fade in and out, is because the buttons within the movie clip are still active even when _alpha = 0, and I'd prefer if users weren't accidentally clicking on invisible buttons.

Now although this works (I just stumbled upon the visible tag) I would also like to make it fade in and out. I'm sure there would be a better way to do both of these at once?

Thanks.

View Replies !    View Related
Trying To Stop A Fade In After The First Load Of A Movie Clip...
I am new to this, so sorry if this is insanely obvious, doesn't hurt to ask right?

So I've made a photo slide show. I've turned each bitmap into a movie clip with this code attached to each for the fade in:

onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 6;
if (_alpha>=98) {
this._alpha = 100;
}
}

And now I want to have the fade in ONLY once for the first time you load the picture. Then when you click back to previously viewed clips it goes straight to the photo without doing the fade in.

I would guess you make a new "if" line, to the effect of, "if movieclip load>1, this.onEnterFrame = null" ???

Appreciate any help. Thanks.

View Replies !    View Related
Timeline Effect - Movie Clip Fade Out?
I've been dissecting a flash template and have stumbled into an area I cannot grasp.

I have a timeline with a several keyframes referencing a movie clip comprised of several other movie clips. As the timelime advances, all the component clips that make up the referenced clip slowly fade to black. How does this happen? I don't see a tween controlling this, I don't see a timeline effect to edit... I'm not understanding something basic and want to make a simple change to that fade - from the black it is now is to another color shade.

Can someone please educate me - I've tried googling and forum sifting but I'm defeated right now.

I'd attach the fla to this post but the file size is exceeds the size restrictions. Here's a direct link to the .fla on my webspace - www.jassanius.com/menu.fla

The library is large, but I've edit everything down to the single layer and timeframe in question.

View Replies !    View Related
Want To Fade Out Movie Clip But Loop Isn't Working
Hi,

I am trying to get a movie clip to fade out and the code below is not working. Can someone tell me what I am doing wrong, or any other suggetions they might have for doing this? -- Thanks

var alphaCount = 100;
if (this._alpha<=alphaCount) {
this._alpha+5;
if (this._alpha>=alphaCount) {
stop;
}
}

View Replies !    View Related
Fade Motion Tween With A Button.. Movie Clip?
Hi.... i want a roll over button that produces a picture which fades in... i.e i can set up a simple button but when the mouse rolls over the image it turns immediatley to the image i have put in the over part of my Frame. What i actually want it to do is fade in slowly.

I have a site which u can have a look at as an example and please please if someone can help me on what is most likely sa very simple question then please do! Link to the example site is below.

http://www.merivale.com/slipinn/slipbar

View Replies !    View Related
SIMPLE Fade In Movie Clip Actionscript Needed
arrrrgggggggg!!!!! I've been searching for ages but can't seem to find some simple actionscript for me to place on my movieclips and for them to fade in, can anyone give me it? plsss x

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