Fading Music
I'm trying to fade a background music track when a user selects a button to hear other audio content. I don't want the background sound to shut-off completely, just fade about 50% or so to not interfere with the users selection.
When the user moves on to another section the background will fade up again.
I've tried a few different thing's and I'm not the getting the desired result.
Currently I have a movie clip in the main timeline that is playing the background music with an on/off controller. Another movie clip in the main timeline has a content section with buttons that play other music tracks.
Hope someone can help?
Ultrashock Forums > Flash > Flash Professional
Posted on: 2005-11-03
View Complete Forum Thread with Replies
Sponsored Links:
Fading My Music Up
terrible trouble trying to fade my music up. When the time line enters the frame I have this code to start the music.
mySound = new Sound();
mySound.attachSound("music");
mySound.start("", 999);
the time line moves to the next frame and stops.
Please help.
View Replies !
View Related
Fading Music Out
I'm using this code to loop music in my project and I stop it at the end with:
loopSound.stop();
but there are instances where I need to fade the music out so it doesn't sound like it's being cut off, can I fade the music out as opposed to just stopping it or setting the volume?
this.createEmptyMovieClip("loopHolder", this.getNextHighestDepth());
var loopSound:Sound = new Sound(loopHolder);
loopSound.attachSound("loop");
loopSound.start(0,99);
loopSound.setVolume(80);
View Replies !
View Related
Fading Music?
Hiya,
I found this really beautiful site: www.flashtown.org
It's fairly a simple site as far as I can tell, with how it works...looks more impressive than it probably is. However what I thought was really cool was how when you turn the sound on and off it fades.
Has anyone got any idea how you do this?
Thanks!
Matt
View Replies !
View Related
Fading Out Music
As of right now, i am using the following code to fade out my music. The problem is it really doesnt fade it out. It seems to just mute the sound.
ActionScript Code:
function fade_out() {
volumen = my_sound.getVolume();
this.onEnterFrame = function() {
if (volumen>=0) {
volumen -= 5;
_root.my_sound.setVolume(volumen);
stopAllSounds();
} else {
delete this.onEnterFrame;
}
};
}
How would i get my music to fade out. (maybe 30 seconds)
any help would be great!
thanks!
austin
View Replies !
View Related
Fading Out Background Music
when i press a button i want this particular scene to come to an end (i just did goToandPlay which jumps to a frame that fades out everything on the screen
works great
but i want the music that's playing in the background to fade out also...
how do I do that?
View Replies !
View Related
Auto Fading Background Music
i think i saw it somewhere arounf flashkit but couldn't find a tute on it so...
i'm trying to have my movie automatically fade the background music EVENT when it hits a certain frame, then the same music fades back in once it hits another frame somewhere further down the timeline. so i don't want the backgroudn music to stop compeltely but just turn down in volume temporarily.
anybody know how?
thanks
View Replies !
View Related
Fading In Sound W/ Music Controls
i need 2 know how 2 make my looping music fade in when the the movie starts, fade in when the music on button is clicked, and fade out when the music off button is clicked. all i have so far is:
Frame 1:
mySound = new Sound();
mySound.attachSound("musicLoop");
mySound.start(0, 9999);
Music On Button:
on (release) {
mySound.start(0, 9999);
}
Music Off Button:
on (release) {
mySound.stop();
}
if u don't mind write tha exact script fa each frame
View Replies !
View Related
Fading Music Out And In Via Mute Button ?
Hey,
I need to have the music for a site fade out, when you click mute, and fade back in when you click it again ( after it's been muted ).
Just wondering the best / easiest way to go about this.
Well, wondering if there is a fairly easy way to go about this I guess.
Thanks
shane@gw
View Replies !
View Related
Animation W/fading Images And Background Music
Hi there!
Please help me, I'm a total n00b trying to make my first flash animation.
The animation I have in mind has
2-3 changing images
looping background music
a fading transition between the images
a sound on/off button
Something like this:
http://www.freeforumzone.com/viewmes...82&idd=426&p=8
(scroll down to post #2)
I was wondering if there is a simple template available in Flash 8(or any other program) that allows you to create these types of animations quickly and easily?
Or you can recommend me any tutorials to read, anything to start me off. I'm willing to learn ...
View Replies !
View Related
[CS3] Fading Background Music During Video Playback
Hello,
I'm building a site that has background music and the site also contains video. I want have the music fade during video play and when the video is finish or user decides to move off the clip section have the music fade back.
The music can be control by a graphic button located at the bottom of the site. When you hit the control button it turns off all sounds including the videos.
Here is the site.
http://robertlehrer.org/
Any help is greatly appreciated.
Karnuckle
View Replies !
View Related
Fading And Reverse Fading Text
I'm so new to this it's sick. But I figure I can take a few days and learn as much as I can. I'm building a website wherein I'll have a splash page before entering the main contents of the site.
I'm using Flash 5. On the splash page I want to know how to create a text object that appears in a 'reverse fade' fashion. I imagine a 'reverse fade' function can be done with any object or graphic - I've seen it on these awesome websites listed at FK.
I don't know if I'm evening asking this question right. I'm able to use CoffeeCup Firestarter and make things appear and fade easily (duh - who couldn't with that program) but can't view the code the Firestarter program produces in order to learn how it happened.
Appreciate any help someone could give me.
Thanks,
Jeff
View Replies !
View Related
Can I Loop A Specific Section Of Music In Flash After The Music Intro Plays?
Hi! My question involves looping audio in flash. I already know how to make a section of audio in an audio-editing program that loops and make it loop continuosly in Flash. What I would like to do now is take an audio clip that has an intro section and a "body" section and after the intro has played, loop back to the beginning of the "body" section continously. I assume it would involve sending it back to a specific millisecond?
Anyway, can anyone help me out with this one? Or is it even possible?
Thanks,
aswhitehead
View Replies !
View Related
Display Music's Details As The Music Playing?
Hi
I saw something similiar at Flashkit - Sound FX, when you click on it, you would be able to play the music yet at the same time, display the music "detail", when the it high tone, the display go up high when the tone is low, the display go down?(Hope im not wrong in describing it)
http://www.flashkit.com/soundfx/Interfaces/
Can someone teach me how it work? Thanks
View Replies !
View Related
Alpha Fading Not Fading
Hi im designing a flash intro/header for a website although the alpha fading effects im using show up and work perfectly while viewing the animation in flash mx when exported to .swf the fades do not take place at all. Any suggestions as to what the problem might be the main animation is in a movie clip (ive done this laods of tiems before and it works).
View Replies !
View Related
Fading In, Fading Out, Resize...
hi there... because no one reacted on my previous topics i decided to start all over again... this time i actionscripted the whole thing... let me discribe 'the thing' and 'the problem'. happy reading
The thing is a kind of photogallery ( i know that there already are a lot of gallery, but i wanted to make one myself...). I want to let photo's to fade in and to resize when loaded en to fade out when loading another one... fading in and resizing isn't to difficult... but sometimes it won't fade in and won't resize... i really don't get it. This only happens 1 out of 10 times. But when i try to intergrate the fade out it goes wrong 50% of the time... who can help me??
actionscript:
Code:
_root.finished = 100;
time = 0;
foto = new Array("foto6.jpg", "foto1.jpg", "foto2.jpg", "foto3.jpg", "foto4.jpg", "foto5.jpg");
current = 0;
function checkfadein(){
if(_level2._alpha = 0.000000000){
fadein = setInterval(fadeIn, 60);
} else
_level2._alpha = 0.000000000;
fadein = setInterval(fadeIn, 60);
}
function resizepic(){
_root.finished = 0;
_level2._alpha = 0.000000000;
checkfadein();
_level2._y = 100;
_level2._x = 100;
_level2._yscale = 20;
_level2._xscale = 20;
}
function fadeIn() {
_root.fade = "fading in";
_root.finished = 0;
_level2._alpha += 10.00000000;
if (_level2._alpha>=95) {
_root.finished = 100;
_root.fade = "faded in";
clearInterval(fadein);
}
}
function fadeOut() {
_root.fade = "fading out";
_root.finished = 0;
_level2._alpha -= 10.0000000000;
if (_level2._alpha <= 5) {
_root.fade = "faded out";
clearInterval(fadeout);
}
}
function preload() {
loadMovieNum("zwolle/"+dir, 2);
_level2._y = 500;
attachMovie("loader", "loader", 1001);
loader._y = 150;
loader._x = 300;
loaded = 0;
total = 100000;
this.onEnterFrame = function() {
total = _level2.getBytesTotal();
loaded = _level2.getBytesLoaded();
percent = (loaded/total)*100;
loader.txtpercent = Math.round(percent)+"%";
loader.balk._xscale = percent;
if (loaded>=total) {
removeMovieClip("loader");
resizepic();
delete this.onEnterFrame;
}
};
}
function changepic() {
_root.finished = 0;
if (current<foto.length-1) {
current++;
} else {
current = 0;
}
dir = foto[current];
//fadeout = setInterval(fadeOut, 60);
preload();
}
stop();
i also attached the fla... when you use it... make a folder with the name "zwolle" and put some .jpgs in the folder with the name foto1.jpg, foto2.jpg... foto6.jpg
i would really appreciate any kind of help please...
View Replies !
View Related
Picture Fading In/ Fading Help
Hey gang I am trying to get a picture to fade in on my intro. And for the life of me cant get it done. I am have adjusting the easing but that seems to have no effect. I just have images popping up essentially I just can get them to start from a point where they are invisible, how do I do it?
View Replies !
View Related
Fading In, Fading Out, Resize...
hi there... because no one reacted on my previous topics i decided to start all over again... this time i actionscripted the whole thing... let me discribe 'the thing' and 'the problem'. happy reading
The thing is a kind of photogallery ( i know that there already are a lot of gallery, but i wanted to make one myself...). I want to let photo's to fade in and to resize when loaded en to fade out when loading another one... fading in and resizing isn't to difficult... but sometimes it won't fade in and won't resize... i really don't get it. This only happens 1 out of 10 times. But when i try to intergrate the fade out it goes wrong 50% of the time... who can help me??
actionscript:
Code:
_root.finished = 100;
time = 0;
foto = new Array("foto6.jpg", "foto1.jpg", "foto2.jpg", "foto3.jpg", "foto4.jpg", "foto5.jpg");
current = 0;
function checkfadein(){
if(_level2._alpha = 0.000000000){
fadein = setInterval(fadeIn, 60);
} else
_level2._alpha = 0.000000000;
fadein = setInterval(fadeIn, 60);
}
function resizepic(){
_root.finished = 0;
_level2._alpha = 0.000000000;
checkfadein();
_level2._y = 100;
_level2._x = 100;
_level2._yscale = 20;
_level2._xscale = 20;
}
function fadeIn() {
_root.fade = "fading in";
_root.finished = 0;
_level2._alpha += 10.00000000;
if (_level2._alpha>=95) {
_root.finished = 100;
_root.fade = "faded in";
clearInterval(fadein);
}
}
function fadeOut() {
_root.fade = "fading out";
_root.finished = 0;
_level2._alpha -= 10.0000000000;
if (_level2._alpha <= 5) {
_root.fade = "faded out";
clearInterval(fadeout);
}
}
function preload() {
loadMovieNum("zwolle/"+dir, 2);
_level2._y = 500;
attachMovie("loader", "loader", 1001);
loader._y = 150;
loader._x = 300;
loaded = 0;
total = 100000;
this.onEnterFrame = function() {
total = _level2.getBytesTotal();
loaded = _level2.getBytesLoaded();
percent = (loaded/total)*100;
loader.txtpercent = Math.round(percent)+"%";
loader.balk._xscale = percent;
if (loaded>=total) {
removeMovieClip("loader");
resizepic();
delete this.onEnterFrame;
}
};
}
function changepic() {
_root.finished = 0;
if (current<foto.length-1) {
current++;
} else {
current = 0;
}
dir = foto[current];
//fadeout = setInterval(fadeOut, 60);
preload();
}
stop();
i also attached the fla... when you use it... make a folder with the name "zwolle" and put some .jpgs in the folder with the name foto1.jpg, foto2.jpg... foto6.jpg
i would really appreciate any kind of help please...
View Replies !
View Related
Preload Music And Fade In Music
Hi, i'm looking for a script that preloads my music. once it's loaded it should start playing the music with a fade in.
Anybody can help me with this. My actionscript-skills are very poor.
This is the code that i'm using for the moment, without preload and fadein. It uses a random of 3 tracks.
Loops = new Array("track01.mp3","track02.mp3","track03.mp3");
choice = random(Loops.length);
mySound = new Sound();
mySound.loadSound(Loops[choice], true);
thx
scarlac
View Replies !
View Related
Color Burn Using SetTransform. Can Burn Fading In But How Do You Burn Fading Out ? :)
I have found out how to burn multiple movie clips using this code:
PHP Code:
MovieClip.prototype.fadeIn = function() {
var t = 0;
var ease = 25;
var myColor = new Color(this);
var cto = myColor.getTransform();
myColor.setTransform({ra:100, rb:255, ga:100, gb:255, ba:100, bb:255, aa:100, ab:0});
var cWhite = myColor.getTransform();
this._alpha = 0;
this.onEnterFrame = function() {
this._alpha += 10;
if (this._alpha>100) {
this._alpha = 100;
t++;
for (var c in cWhite) {
cWhite[c] += (cto[c]-cWhite[c])/ease;
}
myColor.setTransform(cWhite);
if (t>400) {
myColor.setTransform(cto);
delete this.onEnterFrame;
}
}
};
};
pic1.fadeIn();
pic2.fadeIn();
This burns/fades in... however i need a similar function to burn/fade out...
If anyone can help me that would be great
Many Thanks
View Replies !
View Related
Fading
Hello all!
Hmm, posted this in the correct section but nobody replied! Thought I'd try here seeing as though this is where the people are!
Quite a simple one this (I imagine!), but then I am new to this music lark. How can I get a song to fade in at a certain frame and fade out at another?!
Figured it be quicker asking you lot than messing around with flash for ages!
Cheers!
telekin:
__________________________________________________ __________
View Replies !
View Related
Fading Between Jpg's
Help!!
I'm a photographer building my on-line gallery with simple 'goto frame number' actions.
I would like to play around with fading from one image to another and can't seem to find out how to do if it can be done?
Any help would be appreciated !
Thanks
Ernie
View Replies !
View Related
Fading ?
hi, how do i fade out a txt.
ex: black txt to white (white background)
im a newbe and dont know much about flash.
i have a guidebook but it st*nks.
pls help me.
View Replies !
View Related
Help On Fading
got couple of questions:
1. how to make a mask that can cover a pic to make the pic blur, in other words, how to make a see through mask and use on a pic?
2. how to make a video frame or a pic frame to fade out at the end of play and call an other frame to start play? Please help!
View Replies !
View Related
Fading In And Out
I'm new to Flash but learning things fairly quickly.....now my question is......if I wanted to create a intro page and I want to fade things in and out....what is hte best method to use to do this? any suggestions will be greatly appreciated
View Replies !
View Related
Fading
Hi
I'm having a few problems trying to work out how to get an image to fade. What I want to do is have a button where an image fades in when the user rolls over it and then on the mouseout state I want the image to fade out again. Is this possible to do without too much complicated actionscript? I'm using MX.
Thanks
View Replies !
View Related
Fading In And Out
hey im working on making my website pretty much flash based, and ive got a lot of nice tricks ive mearned from other peoples sites and such. One thing i cant figure out how to do is make a picture fade in or fade out, and i was wondering if maybe someone could point me to a tutorial or explain how. I have Flash MX incase you need to know.
thank you
View Replies !
View Related
Fading
Okay, this is probably really obvious, but... I've just begun to work with MX and I can't get something to fade in. I have a word (it's a button) and I want it to fade in. How do I just make it fade in? Thanks!
View Replies !
View Related
Fading In And Out
Cheerz for the response to my last query about loading bars - most helpful thanks.
Ive gotta do a snazzy flash animation for college which is great, but i wanna really impress the lecturer. How do i make things fade in and out??
Im sure that with ur help guyz i can rly drop their jaws!
Laterz
View Replies !
View Related
Fading
i am trying to do something very simple and have my images fade one after the other and i can't figure out how to do i. It just goes to an abrupt change i want it to fade ?
View Replies !
View Related
Fading
I'm using Flash MX and would like to know how I would go about Fading in and out of movie clips, or between scenes? If someone could help me out I would appreciate it!
View Replies !
View Related
Fading Help PLZ
Lets make this easy....
MAKE A BUTTON
MAKE TEXT w/ALPHA = 0
ON MOUSE OVER BUTTON
MAKE TEXT FADE IN ex: ALPHA +5 EVERY 5 FRAMES...
NOW....
CAN SOME-1 PLEASE!!!!! HELP ME DO THIS?!
View Replies !
View Related
Fading
hello,
i have a problem. I am using 6 different swf for my website. They are 6 different swf pages for my website. Im am loading the pages with:
loadVariablesNum();
Now. The problem is coming. I want to use a fading effect while going from the one page to another. How can I do this with the 6 different swf files?
View Replies !
View Related
|