ActionScript 2.0 :: Movie And Sound - Make The Sound Fade Away When The Mouse Is Rolled Away?

May 18, 2007

I use Flash MX 6.0

1) I have a button and when I put cursor over it, it must start looping a sound. When I drag away, the sound must stop. I would be even cooler if it was possible to make the sound fade away when the mouse is rolled away. I have no problem creating another sound file that fades my current sound away.

2) I have a button which represents a knife, that should stab something (a panel) once pressed. So fist the knife must be clean. but after one or more presses, the blood should remain as a movie clip (as I want to animate the dripping blood)

3) once rolled over a button, the sound must start looping (as I wrote in 1.) AND the knife should slowly go backwards (MC). BUT when I roll mouse away, the sound fades away (as in 1. again) PLUS the knife should slowly move back to its place in stead of just jump from one place to another.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: On Mouse Over Fade In Sound?

Nov 4, 2009

i have cd to introduce six songs what will be the code if i want on muse over on any picture of the songs album the sound will start with fade in effect

View 4 Replies

ActionScript 3.0 :: Make An Image Fade In And Out When A Button Is Rolled Over?

Jun 15, 2011

In an earlier post I mentioned I had solved my problem of finding out how to make an image fade in and out when a button is rolled over.I used this code:

image.addEventListener(MouseEvent.ROLL_OVER, imageOver);
image.addEventListener(MouseEvent.ROLL_OUT, imageOut);
function imageOver(event:MouseEvent):void{[code]....

Where the button is a movie clip containing a layer of stop actions, a layer of labels, and the image which fades in and out using a Tween and Alpha combination.It works great when the mouse rolls over the button, however if I roll over the area where the image fades in and out, the image will also appear! It's almost as though the 'hit' area is both the button and the image but I am unsure how to change this.

View 5 Replies

ActionScript 3.0 :: Make A Video And Sound Fade Out Smoothly In Flash Cs3

Jan 16, 2010

i have put a flv video put in a flash cs3 , i want is that when i press i a button ,ofcoure which i will create, movie and sound fade out smootly , rather then movie and sound stops at once, meaning the video fade out smoothly and sound volume slowly,lowers down ,until it is totally silent,what code should i use

View 3 Replies

ActionScript 1/2 :: Make Button On Rollover Starts Sound And Rolloff Stops Sound?

Jul 28, 2009

I have several buttons in a movie and I want to be able to rollover an individual button and play the sound for that button and when I rolloff I want the sound for that button to stop.

View 6 Replies

ActionScript 3.0 :: Controlling Sound Of Movie With Mouse Position?

Nov 26, 2009

is there a way in as3 to mute a video inside a movie clip if the mouse x position equals less than, say 200px?

View 1 Replies

ActionScript 2.0 :: Make Swf File Lager Than Its Original Size / When Mouse Is Rolled Over

Nov 2, 2009

can any one tell me that how to make an swf file lager than its original size when mouse is rolled over to it .eg)like yahoo.com they have flash banners when the mouse is rolled over to it the flash banner enlarges than tis original size.

View 0 Replies

ActionScript 3.0 :: Sound Fade In Fade Out On Frame

Dec 10, 2009

i am trying to hade in and fade out on the sertain frame. but i just can't figure out what's the problem.

ActionScript Code:
var soundFadeInTimer:Timer = new Timer(100,50);
soundFadeInTimer.addEventListener("timer", soundFadeIn);
var fadeInIncr = 5;
function soundFadeIn(e:TimerEvent){
[Code]...

View 0 Replies

Actionscript 3 :: Sound Latency - Set It For Any Silence Before The Actual Sound By Calling The Sound

Apr 16, 2011

I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:

[Code]...

All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?

View 1 Replies

ActionScript 3.0 :: NetStream Choppy - Make A Character Start To Talk When The Sound Starts And Stop Talk When The Sound Stops

Aug 5, 2010

Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:

[Code]...

View 2 Replies

Flash :: Make Movie With A Sweeping Sound?

Aug 26, 2011

I am trying to make a flash video with sound sweeping from 20Hz to 20kHz. The sound file is recorded with 44kHz sampling rate and stereo 16 bits resolution. I am hoping that the published Flash file would maintain the same sound quality. The problem is after I publish the design and play the swf file, the sound disappear around 3/4 of the way (near 4kHz). Could any one tells me what a good practice would be when dealing with sound files, is there any rules or prefered settings?

View 2 Replies

ActionScript 3.0 :: Sound On Mouse Over And Sound Off On Mouse Out?

Nov 29, 2010

I have been trying to code this so that when my mouse rolls over the invisible button, an external mp3 file ("roundandround.mp3") will play.....and once the mouse goes out of the invisible button hit area, the song will stop playing. I have the below so far, but it isn't working---nothing plays when I roll over the button. I understand you can just drag and drop the sound file into the "over" frame of the button, but if you do that, how do you stop the song from playing when your mouse goes outside of the button?

var mySoundReq: URLRequest = new URLRequest("tv-static-04.mp3");
var mySound:Sound = new Sound();
var mySoundChannel:SoundChannel=new SoundChannel();

[Code].....

View 0 Replies

Professional :: Sound Play One Time When The Movie Is Tested BEFORE The Mouse Is Even Over The Movieclip Object?

Apr 17, 2010

I am using Flash CS4. To illustrate, I created a new flash file and added a short tick sound to the library. I set the properties of the sound to export to Actionscript and named the class "overSound". I added a Movieclip object to the stage to represent a button and gave it an instance name of "overButton". On frame 1 of the main timeline I added the following code:

[Code]...

View 5 Replies

MX To Make Movie With Sound Start And Stop On Rollover?

Oct 18, 2009

im making a flash animation with a background two sets of text an invisible button and a song. im trying to make the the animation start when the mouse rolls over and have it stop and reset to the beginning when it rolls out. on my invisible button (first layer) i have

on (rollOver) {
play();
}

[code].....

View 1 Replies

ActionScript 3.0 :: Fade The Sound In And One That Will Fade It Out

Nov 2, 2007

I already have my streaming audio initialized using:

[Code]...

However, I want to write a function that will fade the sound in and one that will fade it out...

View 9 Replies

ActionScript 2.0 :: Fade In And Fade Out The Sound?

Sep 24, 2004

how to fade in and fade out the sound through actionscript?

View 1 Replies

ActionScript 1/2 :: Make The Sound Start Up Depending On When The Movie Was Played?

Apr 20, 2010

I am just a rookie in Flash, and came across a problem. I'm trying to create a flash movie that will display time like a TV ident does. I've successfully set it up to get the correct time and play a "tik-tok" sound as each second passes. However, it is to have some background music, and I can't get it to start when I need it - for instance, if the time is 18:00:00 it should start at 00 seconds, it time is 18:00:21 it should start at 21 seconds etc. This is the script I used for ticking:

[Code]...

What should I use for the complex situation as described above? My only guess is that I should sync it to the frames in the background video (behind the clock, running at 24 FPS), but I haven't got a clue how to set that up as well. Can someone please help? If necessary I can upload the .fla file.

View 3 Replies

ActionScript 3.0 :: Make Continuous Sound In A Looping Flash Movie?

Oct 31, 2010

I am having difficulty figuring out how to make a background soundtrack play continuously while my actual timeline will loop before the audio file is finished.

The way I have it set up now, every time the playhead loops back onto frame1, the audio track begins playing on top of the last one, making it utter cacophony. Even after a few seconds it becomes utter madness as 3 versions of the same song are playing simultaneously.

View 6 Replies

ActionScript 2.0 :: Make A Sound Control Panel In An SWF Movie That Toggles?

Apr 12, 2004

I have been trying to make a sound control panel in an SWF movie that toggles through about 4 different music tracks. I have not been able to get the if/else statements to work for the button. Could someone tell me what is wrong with this script(below)? 1-4 are the tracks in my library and I have made the export linkage for all them.

[Code]...

View 1 Replies

ActionScript 3.0 :: Get Sound To Fade?

Dec 23, 2010

I have been trying for a while now to get sound to fade. Right now the sound plays using this in one frame:

[Code]...

View 6 Replies

ActionScript 2.0 :: Fade In Sound Using It?

Sep 9, 2004

How to fade in sound using AS....i just try using coding inside [url]...tutorial/ website

View 2 Replies

ActionScript 2.0 :: Fade In And Out Sound Through It?

Sep 24, 2004

How to fade in and fade out the sound through actionscript?

View 1 Replies

ActionScript 2.0 :: How To Fade A Sound Out

Dec 17, 2003

how to fade a sound out, but they all involve buttons or sliders. Is there a way in a frame-AS to start a 5 second fade out on a sound that has been loaded in a new _level and is activated with:

[Code]...

View 6 Replies

ActionScript 3.0 :: Fade In/out Library Sound?

Apr 1, 2012

having real problems finding anything about fading in and out sound in flash, have searched for 3 days now and found mostly as2 related articles,i have the following

var myintSnd:introSound;
var sndintChannel:SoundChannel;
myintSnd = new introSound;

[code].....

View 2 Replies

Actionscript 3 :: Fade In Sound With The Function?

Jan 9, 2012

I have this problem when I try to fade in sound with the function below. It just doesn't work and I can't figure out where the problem is.I would like to fade in a looping sound but nothing happens.this is used to play a sound via events

dispatchEvent(new CustomEventSound(CustomEventSound.PLAY_SOUND, Main.SOUND_AMBIENT, false, true, false, 999999, 0, 0, setSoundVolume));

this is the function to play a sound. the stop-function is almost identical to this one.

public function playSound(soundName:String, isSoundTrack:Boolean = false, fadeIn:Boolean = false, fadeOut:Boolean = false,
loops:int = 1, offset:Number = 0, volume:Number = 1):void {
if (fadeIn) {
tempSoundTransform.volume = 0;

[code].....

View 1 Replies

ActionScript 3.0 :: How To Fade Sound In A Playing Flv

Nov 20, 2009

how to create a sound object from the audio of a flv so that the sound can be tweened using Tweener while the video is still playing.

how to fade sound in a playing flv.

View 0 Replies

ActionScript 2.0 :: Fade In Sound On RollOver?

Apr 5, 2011

Fade in sound on RollOver

View 0 Replies

IDE :: Fade Out Sound Clip Without A Button?

Jul 31, 2009

I have an animation with some sound attached to it from the library. I want to fade out the sound when the animation ends.. How do I do this? My code for starting the sound is:

var music:Sound = new Sound();
music.attachSound("mySound");
music.start(0, 5);

View 2 Replies

ActionScript 1/2 :: Sound Fade Bit Over Period Of Time

Oct 27, 2010

Any script in actionscript 2 that fades the sound level of a specific audio file over a specified period of time to a specified level? E.g.:
Set the level of mymusic.mp3 to 2 (on a scale of 10) over 4 seconds

View 5 Replies

ActionScript 2.0 :: How To Fade Sound Out (Loaded In New Level)

Dec 17, 2003

All the links and tips around here show how to fade a sound out, but they all involve buttons or sliders. Is there a way in a frame-AS to start a 5 second fade out on a sound that has been loaded in a new _level and is activated with:

MySound = new Sound(this);
MySound.attachSound("MusicClip");
MySound.start(0, 1);
MySound.setVolume(60);

I can set the overall volume here, but fade it out after it's been playing for 30 seconds...

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved