Mc.onPress In Order To A) Fade Out THEN B) GotoAndStop(#) THEN C) Fade In
I have five menu items, each a mc, each of which needs to link to a different frame on the main time line. When a menu item is clicked the screen should fade out, THEN the play head should go to and stop at the corresponding frame, THEN fade in. I've managed to accomplish the first two parts but in the wrong order, so that the play head goes to the indicated frame BEFORE fading out.
the following code is placed on frame 1 of the actions layer on the main time line:
stop();
//Set alpha of a rectangular mc with black fill to 0
//to be used as a fade out effect to cover whatever
//is on stage below main nav.
black._alpha = 0;
//behindthescenes is one of several menu item movie clips, each of which //should take the user to a corresponding frame on the main time line.
behindthescenes.onPress = function() {
if (!fadeOut) {
fadeOut = true;
// i previously had gotoAndStop(10); placed here but that caused the above
//mentioned problem. I've also tried writing a separate function that would
// advance the playhead if (fadeOut && black._alpha == 100) but this
// function seemed to be ignored wherever i put it.
}
};
_root.onEnterFrame = function() {
if (fadeOut && black._alpha<100) {
black._alpha += 20;
}
};
Thankyou,
Harvey
FlashKit > Flash Help > Flash MX
Posted on: 07-22-2007, 03:27 PM
View Complete Forum Thread with Replies
Sponsored Links:
- My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
- My Fade Out / Fade In Script. Fade Out Works, Why Not Fade In? Any Ideas?
- [F8] OnPress Movieclip Drag And Fade In And Out
- Alpha Fade In, Tint Fade In And Then Fade Out
- Alpha Fade In, Tint Fade In And Then Fade Out
- Alpha Fade In, Tint Fade In And Then Fade Out
- Actionscript To Load Random External Movie, Fade In, Wait, Fade Out, Repeat
- Newbie Question - Fade In Fade Out While Trning On And Turning Off A Music Loop
- Multiple Fade In Fade Out Events On Different Sentences From A Text File?
- AS2 - Refine My Code...it Sucks : Six Clips Fade. Rollover One...other Fade Out
- Photo Slideshow - Fade Out/fade In (alpha) - Flash5
- Actionscript To Fade In/fade Out Picture Depending On Frame?
- How Do I Create A Smooth Trasition Between My Pages - Fade Out / Then Fade In
- [CS3] My Code Sucks : Six Clips Fade. Rollover One...other Fade Out
- Xml Slideshow Fade In And Fade Out Assistance (code Supplied)
- Alpha Fade Image, Wait, Fade Out, Next Frame
- Dynamic Flash Fade In Fade Out Slide Show
- Fade Out And Fade In Bteween Scenes Or Movie Clips
- Refine My Code : Six Clips Fade. Rollover One...other Fade Out
- Photo Slideshow - Fade Out/fade In (alpha) - Flash
- Quick Fade In / Fade Out On RollOver / RollOut
- Dynamic Text - Fade In And Fade Out; Is This Doable?
- Fade In / Fade Out Multiple Movie Clips - Help Me
- Help With Content Fade In/fade Out Button Actionscript
- Button To Make One Animation Fade Out, Then A New One Fade In...
- Fade In Pic, Loadmovie, Timer, Fade Out Pic, Repeat
- [F8] Button Help: Simple Fade In Fade Out Problem
- Fade In/Fade Out Of A Movie Clip Of Buttons.
- Fade In And Fade Out External Jpgs With Preloader
- Buttons To Fade In And Fade Out Movie Clips
- Basic AS3 Stuff: Fade In, Hold, Fade Out, Next
- [FMX]Load Movie In Container With Fade In Fade Out?
- Fade Out Preloader And Fade In Main Interface ? How
- [newbie] Help With A Fade-in/fade-out Photo Gallery
- How Can I Fade In And Fade Out A Movie Clip Using Set Interval?
- Sound Fade In/fade Out - Fine, But Not First Time
- Fade Out Audio While Flv Is Playing, Fade In When Stopped
- [FMX]Load Movie In Container With Fade In Fade Out?
- Fade Out Preloader And Fade In Main Interface ? How
- Help Fade In And Fade Out Movie Clip With Buttons
- How To? Make A Tween Fade In And Fade Out
- Fade In Fade Out With Action Script
- Fade Out - Fade In Animation With Actionscrip?
- Random Images, Fade In, Fade Out...
- Fade In Fade Out Pictures With Actionscript
- MC Actionscript Fade IN / Pause / Fade Out
- Fade In, Pause, Fade Out W/ Actionscript?
- Image Fade In/fade Out Script
- Fade In Fade Out On Multiple Sentences
- How To Make Objects Fade In An Fade Out?
- On(Press) Fade In, Fade Out Problem, Please Help....
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
[F8] OnPress Movieclip Drag And Fade In And Out
Hi all,
I have a scene where I have movie clip photographs that can be clicked, dragged around and brought to the front. That part works fine. What I would like to do is have the inactive clips fade out just a little and the active clip fade in. So, the window in the front fade up, the window in the back fade out. I'm not sure what to add to get the fading effects.
Hopefully I've set this up correctly. I have 3 layers: Background, Pictures, Actions. 1 frame on each.
The photographs are on the same layer.
On the actions layer I have the following:
here's the Test link
coke001_mc.onPress = function(){
this.swapDepths(100);
this.startDrag()
}
coke001_mc.onRelease = function(){
this.stopDrag()
}
coke002_mc.onPress = function(){
this.swapDepths(100);
this.startDrag()
}
coke002_mc.onRelease = function(){
this.stopDrag()
}
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
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
Newbie Question - Fade In Fade Out While Trning On And Turning Off A Music Loop
Hello everyone,
This is what I want to accomplish. I want to make my music loop fade in when turning on and fade out while turning off. I'm attaching the .fla of what I have now.
Currently the music loop stops abruptly when the pause button is clicked and starts suddenly when the play button is clicked. I want to smooth this action out and make it fade in when play button clicked fade out when pause button clicked. Hope you got my point.
I have added my sample .fla to show how have I added the music loop and the buttons.
Have this chunk of action script in it to load the music loop and play it infinitely.
PHP Code:
mySound = new Sound();
mySound.attachSound("myloop");
mySound.start("0", "999");
This bit on the puse button with an instance name pauseBTN
PHP Code:
on (release) {
mySound.stop();
playing = false;
playBTN._visible = true;
pauseBTN._visible = false;
}
and this bit on to the play button with an instance name playBTN
PHP Code:
on (release) {
if (playing != true) {
mySound.start(0, 999);
playing = true;
playBTN._visible = false;
pauseBTN._visible = true;
}
}
Please find my attachment here:
Thanks in advance
View Replies !
View Related
Multiple Fade In Fade Out Events On Different Sentences From A Text File?
Hi there
i've just learned to use flash to produce a flash doc that displays the tibetan mind training slogans. they're basically 59 sentences: be a child of illusion, always maintain a joyful state of mind etc etc.
anyway, i'm wondering if anyone knows how i can make it easier to achieve this. at present i've done it by creating individual fade in fade out events along a time line. but it strikes me that it should be possible to create just one fade in, fade out event and get flash to apply this event to all subsequent sentences. even better would be if i could just get flash to pull each sentence from a plain text file. does anyone know how to do this? maybe actionscript can do this. then it would be easy to create a flash file for learning anything from vocabulary to history quotes!
you can view it here:
http://www.geocities.com/tamsin_dev...saverfinal7.swf
here's the flash file
http://www.geocities.com/tamsin_dev...saverfinal7.fla
also, how can introduce a random element into this, so that any of the 59 slogans will be picked.
if you need any further info please contact me at tamsin_devas@yahoo.co.uk i can send you the slogan source files as well if you want.
eventually i want to create a screen saver.
thanks for any help you can provide. i'll write your name in tibetan if you want.
tamsin
View Replies !
View Related
AS2 - Refine My Code...it Sucks : Six Clips Fade. Rollover One...other Fade Out
So I have six movie clips. When you rollover one I want the other five to fade out. this code that I did works but it has a potential to break with quick strokes. Any help would be great thanks. I also have a button surrounding the six clips that fade all back up. The reason for that is while they are going from clip to clip i dont want them to fade in a out.
------Here is a link of what im trying to acheiving.------
http://www.stellamccartney.com/us/en/beauty/
Thanks alot everyone.
------And here is my code-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fadeOut(mc) {
var begin = 100;
var end = 25;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeOut, begin , end , time , true);
}
function fadeIn(mc) {
var begin = 25;
var end = 100;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeIn, begin , end , time , true);
}
btnOff.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by6._alpha != "100") {
fadeIn(by6);
}
};
by1.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by2.onRollOver = function() {
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by3.onRollOver = function() {
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by4.onRollOver = function() {
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by5.onRollOver = function() {
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by6.onRollOver = function() {
if (by6._alpha != "100") {
fadeIn(by6);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
};
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
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
How Do I Create A Smooth Trasition Between My Pages - Fade Out / Then Fade In
Hi
I'm trying to make a mask reveal content1 on my Flash site
Then when i press a button i want the maske to play in reverse, so it hides the content1 before revealing content2.
I have seen lots of templates do this but havent been able to figure out how it is done in a simple fashion.
i guess it would be something like using the IF statement and the <>
but could someone write the FULL script to my button.
Lets say i have a MC that has 4 labels.... label1, label2, label3, label4.
I'm in the label1 frame
and when i press the label4
i want label1 to mask out (hide content of label1)
and once that is done i want a mask to reveale the content of label4.
If someone has a small .fla that does this in a simple way please email it to me.
THANKS
Mirrorman
Jimmy
View Replies !
View Related
[CS3] My Code Sucks : Six Clips Fade. Rollover One...other Fade Out
So I have six movie clips. When you rollover one I want the other five to fade out. this code that I did works but it has a potential to break with quick strokes. Any help would be great thanks. I also have a button surrounding the six clips that fade all back up. The reason for that is while they are going from clip to clip i dont want them to fade in a out.
------Here is a link of what im trying to acheiving.------
http://www.stellamccartney.com/us/en/beauty/
Thanks alot everyone.
------And here is my code-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fadeOut(mc) {
var begin = 100;
var end = 25;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeOut, begin , end , time , true);
}
function fadeIn(mc) {
var begin = 25;
var end = 100;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeIn, begin , end , time , true);
}
btnOff.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by6._alpha != "100") {
fadeIn(by6);
}
};
by1.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by2.onRollOver = function() {
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by3.onRollOver = function() {
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by4.onRollOver = function() {
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by5.onRollOver = function() {
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by6.onRollOver = function() {
if (by6._alpha != "100") {
fadeIn(by6);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
};
View Replies !
View Related
Xml Slideshow Fade In And Fade Out Assistance (code Supplied)
Hi all,
Can someone help me out here - needing someone to point out (or offer!) the solution. I'm working with the following code, and want to have my slideshow images fade into each other. At the moment, the picture before, after it's reached its delay setting, just switches off and the next one fades in, meaning the background displays (which isn't desirable)
CODE BEGINS ------------------------------------------------------
delay = 4000;
//-----------------------
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");
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
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;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
function moveSlide() {
current_mc = _root.myClips_array[_root.target_mc];
new Tween(current_mc, "_alpha", Strong.easeOut, 100, 0, 1, true);
_root.target_mc++;
if (_root.target_mc>=_root.myImagesNo) {
_root.target_mc = 0;
}
_root.myText_txt.text = _root.myImages[target_mc].attributes.title;
next_mc = _root.myClips_array[_root.target_mc];
new Tween(next_mc, "_alpha", Strong.easeOut, 0, 100, 1, true);
}
}
}
CODE ENDS ------------------------------------------------------
Any help, HUGELY appreciated
Thanks in advance
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
Refine My Code : Six Clips Fade. Rollover One...other Fade Out
So I have six movie clips. When you rollover one I want the other five to fade out. this code that I did works but it has a potential to break with quick strokes. Any help would be great thanks. I also have a button surrounding the six clips that fade all back up. The reason for that is while they are going from clip to clip i dont want them to fade in a out.
------Here is a link of what im trying to acheiving.------
http://www.stellamccartney.com/us/en/beauty/
Thanks alot everyone.
------And here is my code-------
import mx.transitions.Tween;
import mx.transitions.easing.*;
function fadeOut(mc) {
var begin = 100;
var end = 25;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeOut, begin , end , time , true);
}
function fadeIn(mc) {
var begin = 25;
var end = 100;
var time = .1;
var myTween:Tween = new Tween(mc, "_alpha", Regular.easeIn, begin , end , time , true);
}
btnOff.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by6._alpha != "100") {
fadeIn(by6);
}
};
by1.onRollOver = function() {
if (by1._alpha != "100") {
fadeIn(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by2.onRollOver = function() {
if (by2._alpha != "100") {
fadeIn(by2);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by3.onRollOver = function() {
if (by3._alpha != "100") {
fadeIn(by3);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by4.onRollOver = function() {
if (by4._alpha != "100") {
fadeIn(by4);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by5.onRollOver = function() {
if (by5._alpha != "100") {
fadeIn(by5);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by6._alpha != "25") {
fadeOut(by6);
}
};
by6.onRollOver = function() {
if (by6._alpha != "100") {
fadeIn(by6);
}
if (by1._alpha != "25") {
fadeOut(by1);
}
if (by2._alpha != "25") {
fadeOut(by2);
}
if (by3._alpha != "25") {
fadeOut(by3);
}
if (by4._alpha != "25") {
fadeOut(by4);
}
if (by5._alpha != "25") {
fadeOut(by5);
}
};
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
Quick Fade In / Fade Out On RollOver / RollOut
While taking a break from trying to figure out how to accomplish something in Flash MX 2004, I stumbled upon a site that is a perfect example of what I'm trying to do.
http://www.aperfectcircle.com
The project I'm working on has a circular navigation system with eight buttons around the circumference of the circle. The actual buttons are just symbols, so I want to have the name of the link quickly fade in above the middle of the circle when you mouseover a button, and then the name quickly fades out when the mouse leaves that button's hit area. I don't want to use tweened animation in a MC on the button's over state, because I want the fading to be totally smooth if you quickly move from one button to another, or if you move the mouse out of the hit area before it has fully faded in. I know there is a way to do this with hitstate and _alpha, but I have never used these commands before, and I can't find a very clear example of how to implement this behaviour with them.
So, in short, I need to put a script on a button, that will fade in another MC on rollover, and fade it out on rollout.
Please look at the site mentioned above to see exactly what I'm talking about, and thanks for any insight you can provide.
View Replies !
View Related
Dynamic Text - Fade In And Fade Out; Is This Doable?
All,
I've written a Flash file that reads variables from a txt and places these into a dynamic text box...I use setInterval to move from value to value. The movie works/looks fine, but I would like to jazz it up by having the text fade in and out of the dynamic text box (or slide in and fade out)....
My code, which appears in a single frame, looks like this:
// load the live update scores variables
function drawMe() {
loadVariablesNum("live_scores.txt", 0);
}
// load the variables defined in the drawMe function
var quitID;
quitID=setInterval(drawMe, 1000);
// set the counter
fscommand("allowscale", "false");
loadVariablesNum("player_stats.txt", 0);
count = "0";
// load the individual scores variables
function statMe() {
if (Number(count)==Number(numvars)) {
count = "0";
loadVariablesNum("player_stats.txt", 0);
} else {
count = Number(count)+1;
set("var", eval("var" add count) );
}
}
// load the variables defined in the statID function
var statID;
statID=setInterval(statMe, 5000);
stop();
Is there anyone out there who knows how to add fade in / fade out functionality to my movie? Any assistance would be greatly appreciated...thx in advance for your help...!
Regards,
Mike
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
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.
View Replies !
View Related
Button To Make One Animation Fade Out, Then A New One Fade In...
I know there's a way, just not in Action Script, I could do this. I want to have a Menu Button, when pressed, tells on movie clip, to go to it's ending animation where it fades out, and then, when that's finished, go the movie clip the button was originally pressed for. The movies are being put into an empty container movie.
So, it goes like this:
Press button > Movie clip one goes to ending animation and fades out > then plays Movie clip that the button was pressed for > which has a fade in animation.
Is that confusing enough yet...
View Replies !
View Related
Fade In Pic, Loadmovie, Timer, Fade Out Pic, Repeat
Hi,
What I would like to do is load a jpeg in place, wait a while, load a new jpeg in its place, once loaded, fade out the old pic, fade in the new pic, wait a while and repeat?
Please can anyone advise the best way to achieve this effect?
Many thanks.
Steve
View Replies !
View Related
[F8] Button Help: Simple Fade In Fade Out Problem
I really hate to even ask this question because it's one of the more simplistic things you can do in Flash but I've been having trouble getting it to work properly.
I just want to have a button that fades in on rollover and out when the mouse leaves the button. The fade in part works fine but the fade out doesn't work. Funny thing is I got it to work fine on one button but following the same procedure it did not work on the others. I'd prefer to do it with the timeline as it should be simple.
Here's what I'm using
-Movieclip Fade in
-Movieclip Fade out
-Button
I put the fade out in the Up frame. I put the fade in in the Over and the graphic of the button in Hit. It works fine on one but I've been unable to reproduce it on the others. I've closely examined the one that works right and I can't see any difference between the buttons. Is there some idiosycratic procedure of which anyone knows?
Any help or suggestions would be great. I'm sure it's not too much trouble to do it in actionscript but the fact that the basic method isn't working is just frustrating me.
Thanks,
Dave
View Replies !
View Related
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
View Replies !
View Related
Fade In And Fade Out External Jpgs With Preloader
Hi,
I’ve spent ages doing a search on this but haven’t, as yet, found exactly what I’m looking for.
I’m working on a large image gallery consisting of the usual thumb buttons. For speed, I’m keeping all the main JPGS in an external folder; these files load well, but the effect is not particularly attractive. I would like the images to fade in and out, and whilst the transition is taking place keep the viewer informed by way of a preloader (perhaps, just numbers from 1-100 in a box).
I don’t want to use XML – at least, not yet – as I want to keep things as simple as possible due to my level of AS knowledge (beginner).
This first fading effect looks perfect, but it’s continuous and doesn’t include a preloader. Could it be easily adapted? http://www.actionscript.org/forums/s....php3?t=107269
Any help would be very, very much appreciated.
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
Basic AS3 Stuff: Fade In, Hold, Fade Out, Next
Help. I've been teaching myself AS3 using online tutorials and am at a point similar to understanding the individual words and expressions of a foreign language but not being able to put them into a workable collection of sentences. Used to working on a timeline, working to graduate to working entirely in code. And using external AS files.
I'm supposed to create a simple animation in a hurry. So far it's been 8 hours. Four text movie clips, sentences. One fades in (.5 second), sits (2 seconds), fades out (.5 second), then two does the same, then three, then four. Four says "click to replay" which, on click, starts everything over again.
I figured on giving caurina a try. So far, I can make each movie clip fade in and go to the next movie clip, but I fail when I get to making them sit 2 seconds and fade out.
Would any of you know where online I might go to see a similar example and check the code to find out how it's done. I know it's basic, I'm just not getting it. Sorry and thanks.
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
[newbie] Help With A Fade-in/fade-out Photo Gallery
Hello everybody,
I'm trying to improve Kirupa's photo gallery by using an XML file.
(http://www.kirupa.com/developer/mx/photogallery.htm)
It is more or less working except at the beginning of the flash animation. I got a error message. Then when I use the arrow buttons, it's working fine.
This is the piece of code :
#############
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = parseXML;
myXML.load("slideshow.xml");
function parseXML(success) {
if (success == true) {
rootNode = myXML;
_root.slide_names = new Array();
_root.slide_titles = new Array();
if (rootNode.firstChild.nodeName.toLowerCase() == "slideshow") {
var nm = rootNode.firstChild.childNodes;
for (i=0; i<=nm.length; i++) {
if (nm[i].nodeName == "slide") {
_root.slide_names.push(nm[i].attributes.img_name);
_root.slide_titles.push(nm[i].firstChild.nodeValue);
}
}
}
_root.nextFrame();
play()
}
}
this.pathToPics = "animation/";
this.fadeSpeed = 20;
this.pIndex = 0;
// MovieClip methods ----------------------------------
// d=direction; should 1 or -1 but can be any number
//loads an image automatically when you run animation
loadMovie(this.pathToPics+_root.slide_names[this.pIndex], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%_root.slide_names.length;
if (this.pIndex<0) {
this.pIndex += _root.slide_names.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p = _root.photo;
//------------------------------------------
p._alpha = 0;
p.loadMovie(this.pathToPics+_root.slide_names[this.pIndex]);
currentIndex = this.pIndex;
imageText = _root.slide_titles[this.pIndex];
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
// Actions -----------------------------------------
// these aren't necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};
Key.addListener(this);
#############
This is the error message I got :
Error opening URL "file:///H|/Photographie/flash%5Fkit/kirupacom/animation/"
It looks like it can read the array in the following command:
loadMovie(this.pathToPics+_root.slide_names[this.pIndex], _root.photo);
I would appreciate any help.
Many thanks.
Gohan
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
Sound Fade In/fade Out - Fine, But Not First Time
I followed Kenny Bellows tutorial on fade in/fade out: http://www.kennybellew.com/
Everything seems to work fine, except it won't fade out the first time i click. After the first time, it fades fine.
Anyone had this problem?
Code:
this.onEnterFrame = function () {
//fade out and in
if (daveFadeOut == 1){
daveSoundVolume = daveSoundVolume - 1;
daveSound.setVolume(daveSoundVolume);
}
if (daveSoundVolume < 1){
daveSoundVolume = 0;
daveFadeOut=0;
}
if (daveFadeIn == 1){
daveSoundVolume = daveSoundVolume + 1;
daveSound.setVolume(daveSoundVolume);
}
if (daveSoundVolume > 29){
daveSoundVolume = 30;
daveFadeIn=0;
}
//finish fade out and in
}
Cheers,
Dave
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
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
Fade In Fade Out With Action Script
Is there a way to create a "slide show" effect fading in and out from one image to another using action script? Using motion tween to create such an effect is too time consuming especially when you have over 15 images you'd like to fade in and out from.
There must be a way to use action script telling each frame to fade in from 0% to 100%, pause for 5 seconds and than fade out 100% to 0% and go to the next frame.
I would appreciate any of help with this.
Thanks
View Replies !
View Related
Random Images, Fade In, Fade Out...
Hi guys! please helpme....
I need to have 20 or so pictures from a directory fading in then out in a random order into a movie clip.
I have stumbled across this script and it is excellent, but it is not quite right,
// load random jpg/png at random, with fade this assumes you are using a
// naming convention like myfile1.jpg, myfile2.jpg, etc.
MovieClip.prototype.myloadRandomImage = function(src, format, seed) {
seed = random(seed);
loadMovie(src + seed + format, this);
_alpha = 0;
onEnterFrame = function() {
if (_alpha <= 100) {
_alpha += 10;
}
}
}
usage /
_root.createEmptyMovieClip("test",1);
_root.test.myloadRandomImage("bks/bk", ".jpg", 2);
This great script only fades in the pictures and i need them to fade out as well. Please can someone help me with the missing stuff.
I can set the property of _root.test to 0 and it goes, but not fading.
Please help
Thanks in advance.
And sorry if this has been covered but i can't find anything quite right.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
Image Fade In/fade Out Script
hi all! im new to this forum and a newbie on flash so please bear with me.
i'm wondering if i can create an image fading script which reads a text file that contains the path to the images and display it continously (i.e. loop). additionally, each of the image has a corresponding url so that if a particular image appears and the user clicks that image, the page will go to the specified url.
probably the text file should look like,
syntax: [path|url] delimited by pipe (|)
-----------------------------
/images/pic1.gif|http://www.yahoo.com
/images/pic2.gif|http://www.google.com
/images/pic3.gif|http://www.altavista.com
is this possible? thanks.
View Replies !
View Related
Fade In Fade Out On Multiple Sentences
Hi there
i've just learned to use flash to produce a flash doc that displays the tibetan mind training slogans. they're basically 59 sentences: be a child of illusion, always maintain a joyful state of mind etc etc.
anyway, i'm wondering if anyone knows how i can make it easier to achieve this. at present i've done it by creating individual fade in fade out events along a time line. but it strikes me that it should be possible to create just one fade in, fade out event and get flash to apply this event to all subsequent sentences. even better would be if i could just get flash to pull each sentence from a plain text file. does anyone know how to do this? maybe actionscript can do this. then it would be easy to create a flash file for learning anything from vocabulary to history quotes!
you can view it here:
http://www.geocities.com/tamsin_deva...averfinal7.swf
here's the flash file
http://www.geocities.com/tamsin_deva...averfinal7.fla
also, how can introduce a random element into this, so that any of the 59 slogans will be picked.
if you need any further info please contact me at tamsin_devas@yahoo.co.uk i can send you the slogan source files as well if you want.
eventually i want to create a screen saver.
thanks for any help you can provide. i'll write your name in tibetan if you want.
tamsin
View Replies !
View Related
On(Press) Fade In, Fade Out Problem, Please Help....
I am using Macromedia Flash MX...
I am trying to create a menu of buttons that I can click on any button and it will fade out the previous page and then fade in the new page that the button is related to...
I've attached what I have done so far, and I can't seem to have it right. I tried so many things and I am out of ideas.
I either get it to just fade in or just fade out, never do both. If possible please help. Currently I have the button setup on the top left corner. So if you click on Home I want it to fade in that picture under it and fade back in since your clicking for the same thing. Currently it won't do that, I don't know what I am doing wrong.
Please help, thanks.
View Replies !
View Related
|