Actionscript 3 :: Fading Out Volume On A MovieClip?

Aug 1, 2011

I've looked around the net on this issue, and came up with the following code to fade out the volume on my movieclip:

var myTransform = new SoundTransform();
myTransform.volume = 1;
loaderClip2[indexNumber].soundTransform = myTransform;
audioTween = new TweenLite(myTransform, 2, {volume:0});

My movie clip is stored in the Array loaderClip2 at index position determined by the variable indexNumber. This code does not produce the desired fade.

View 3 Replies


Similar Posts:


Actionscript 3.0 :: Fading Volume Creates Clicks And Pops?

Jun 22, 2010

when using a timer to fade volume, I get clicks and pops in the sound.The fade goes from 1 to 0 in 30 ms. Is there any way around this? Could it have something to do with the fla file's frame per second? This is set at 100.The fader timer is inside another timer (which varies from 150 to 1000 ms)

View 2 Replies

How To Make Fading Out Trail Behind MovieClip

Dec 6, 2011

How to make trail behind movie clip. I suppose it should be some kind of duplicate mc function but dont know how to write it. For example there is rectangle (mc) on screen when I click on it should move to the left but it should leave copies of itself behind it with different opacity, closer copies should be more visible and they all should fade out (I mean trail not main rectangle), it should look like circular animation which are often used in some flash video players where rectangles are rotating around center point but they aren't all same opacity.

View 2 Replies

ActionScript 2.0 :: Movieclip Fading To Transparent

Jan 9, 2009

I used a great tutorial posted on KIRUPA by Sam Kellett aka Sammo [URL] and i was wandering if i can make the snowflakes fade to transparent at the bottom of the movie?

View 4 Replies

ActionScript 2.0 :: [FMX] Movieclip Keeps Fading Down And Up Until On Rollout?

Feb 20, 2005

I made a button that fades up a movieclip and then the movieclip keeps fading down and up until on rollout where it fades it down. Now, i use a delete this.onEnterFrame; on the fade out button but im not sure if i should delete this.onEnterFrame in the functions where i fade up and down aswell. If so where/how?Here is the AS:

Code:
fadein = function(){
if (white_1._alpha<=100) {
white_1._alpha += 5;[code]....

View 2 Replies

ActionScript 3.0 :: Fading Out And Fading In 2 Flash Movie File

Mar 30, 2012

I'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.

Here is the script of it:

var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);

[Code]....

View 2 Replies

ActionScript 2.0 :: Fading And Disabling A Movieclip After Timelapse?

Aug 11, 2009

I am making a flyout menu and I have all the desired effects I need using actionscript but one: for the movieclip that fades in to fade out if the mouse has not been touching it for 3 seconds.

The way it works: The buttons in the navigation are movieclips. Each button movieclip has a submenu (which is also a movieclip). Each button movieclip is triggered to tween on Rollover and tween (alpha) in. As it is now, when the user rolls over a different button in the navigation, the submenu will disappear which is desired. The problem is that when a user rolls over a navigation item and triggers the submenu, but does not roll over another button, the submenu stays in view. What I want is for this submenu movieclip to fade out of view if the user hasn't had their mouse over it for 3 seconds.

View 6 Replies

ActionScript 2.0 :: Fading Out MovieClip When Button Pressed

Jul 2, 2004

on (release){
_root.drew._visible =false;
gotoAndPlay(31);
}
Above is my code which I am using to try and fade out a MC when a button is pressed. The button (and the picture it shows when pressed) are within the same MC. I have placed this MC on the root timeline and given the MC I want to fade out the instance name drew // but still not having any luck making invisible.

View 4 Replies

ActionScript 1/2 :: Fading In An MC Works, Fading Out Doesn't?

Apr 7, 2009

I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!

[Code]...

View 7 Replies

ActionScript 2.0 :: Flash Presentation - MovieClip With Logotypes Fading In / Out

Dec 10, 2004

I want to make a presentation in flash with all my work. Sort of a PowerPoint presentation but in flash. Yes, I know there is a built in PowerPoint function I flash. But I want it to be some more dynamic and most of all. I want it to run without pressing the "Spacebar" between all the MovieClips. I don't know if this is a good way, but my idea is to make a movie clip of each "thing" I want to present. I.e. I make a MovieClip with a logotypes fading in and out. And one MovieClip with another logotype fading in and out. Then I just want to add these external swf files in the main timeline and when the first external MovieClip has finished next ones starts. And when all the swf files have been played. It starts all over again.

View 1 Replies

ActionScript 2.0 :: Flash Presentation - Make A MovieClip With A Logotypes Fading In And Out?

Dec 10, 2004

this is what I want to achieve:I want to make a presentation in flash with all my work. Sort of a PowerPoint presentation but in flash. Yes, I know there is a built in PowerPoint function I flash. But I want it to be some more dynamic and most of all. I want it to run without pressing the �Spacebar� between all the MovieClips.

I dont know if this is a good way, but my idea is to make a movie clip of each thing.I want to present. I.e.I make a MovieClip with a logotypes fading in and out. And one MovieClip with another logotype fading in and out.Then I just want to add these external swf files in the main timeline and when the first external MovieClip has finished next ones starts. And when all the swf files have been played. It starts all over again.

View 1 Replies

ActionScript 1/2 :: Control Volume Of A Movieclip?

Jun 14, 2010

I was wondering if there is a way to control the volume of a movieclip directly without using the sound class?

Or is there a way to control the volume of the entire swf?

View 2 Replies

ActionScript 3.0 :: Simple Volume Slider That Controls The Master Volume Of The Entire Swf?

Oct 6, 2009

does anyone have an example of a simple volume slider that controls the master volume of the entire swf?

View 1 Replies

Flash :: Volume Slider - Volume Doesn't Change Until Mouse Over?

Nov 21, 2009

I've created a small music player with a sliding volume control. I'm having trouble with the volume. Though it does control volume properly, if I set the initial volume to less than 100%, the volume always starts at 100% until I move my mouse over the player. At that point, the volume changes to whatever the initial volume is set to.Is this a flash bug, or am I missing something? Here is the affected code (code for other buttons/functions omitted for brevity):

var song_initvolume:Number = 100;
slider_1._x = groove_1._x + song_initvolume;
playSong(0,song_play);[code]....

I'd like to be able to set the volume at say 50%, but the above mentioned behavior happens each time.

View 2 Replies

Flash :: Reverse Sound Volume Math For Volume Slider?

Feb 1, 2010

I'm building a video player and am kinda stuck at the volume slider part. It's a YouTube style vertical slider, meaning if the slider is in the top position volume should be 100% and if the slider is dragged to the bottom position sound should be 0. Currently it's doing the opposite of what I want :(

Dragging the slider down will make the sound louder, while dragging up lowers it.

Here is my code below dealing with the volume slider.

[Code]....

The (-4) is an offset value so when you drag it all the way to turn it off, it's 0 and not 4. I need to reverse this somehow, so the traces above will swap... going down will make userVolume = 4 and going up will make it 30.

View 4 Replies

ActionScript 2.0 :: [f5]fading Grid Not Fading?

Oct 11, 2003

when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in

View 5 Replies

ActionScript 2.0 :: Fading Grid Not Fading

Oct 11, 2003

i've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.

View 5 Replies

ActionScript 2.0 :: Mp3 Volume Controls Not Working In Loaded Movieclip?

Oct 15, 2010

I've created an Mp3 player with dynamic sound controls. Everything works fine when tested in the swf, but when I load the mp3.swf into a separate movieclip in another swf, the volume control does not work.

I've tried setting the lockroot to true and it still does not work.

Here's the code:

slider_mc.onMouseMove = function() {
myPoint = new Object();
myPoint.x = this._x;
myPoint.y = this._y;

[Code].....

View 9 Replies

ActionScript 3.0 :: Adjusting Volume Of Video Component Inside Movieclip?

Apr 16, 2010

How would I adjust the volume of a video component nested inside a movieclip? I've tried the following methods:

Code:
mcName.vidName.setVolume(0);
Result: ReferenceError: Error #1069: Property setVolume not found on flash.media.Video and

[code].....

View 4 Replies

ActionScript 2.0 :: Control The Volume Of A Movieclip Directly Without Using The Sound Class?

Jun 14, 2010

I was wondering if there is a way to control the volume of a movieclip directly without using the sound class? Or is there a way to control the volume of the entire swf?

View 1 Replies

Actionscript 3 :: Volume Controls - Volume On Or Off Through The Games?

Apr 12, 2012

I've got a serious of games which in turn load off a main main swf.I have mute and unmute buttons on the main menu and the same buttons in each game.When I unload/load a game I want the volume to stay as it is so they player doesn't have to keep turning the volume off. AudioOff is the button shown when the volume is off and AudioOn is the button shown when the volume is on.The code I've got now keeps the volume on or off through the games but the buttons aren't showing up correct with this code..

if (SoundVolume.volume == 1)
{
AudioOn.visible = false;[code].....

View 2 Replies

ActionScript 2.0 :: Volume Slides But No Volume Change?

Sep 10, 2011

I converted the slider bar and slider button to buttons. Then, I made the slider button into a movie clip.

Here is the code I placed while slider button was a button:

Code:
on (press) {
startDrag(this, false, left, top, right, bottom);
}

[Code]....

It seems right to me but I don't know. The movie button slides down the slider bar but it just doesn't affect the volume. Going to try to attach my FLA to offer better insight. Just tried to upload it and no matter if it's FLA or zipped FLA, it says it failed.

View 1 Replies

ActionScript 1/2 :: Change Movieclip._alpha Depending On Volume Output Of Music

Dec 24, 2011

how to change the volume, asking how to detect the actual volume (not the set 100 volume) of music/sounds. does flash even detect the actual volume output? So when the volume is 0 (e.g. maybe at the end of a song) the ._alpha is 0, so all I need is a variable for the output volume of a song.

View 1 Replies

ActionScript 2.0 :: 2nd Time Movieclip Loads Tweens - Half Fading In / Out And Half Jumping From One Alpha Value To Another

Jun 18, 2006

I have a movieclip with an image fading in and out (using an actionscript tween class set to yoyo). This movieclip is loaded into a dummy movieclip when a button is pressed. The first time you click the button the fading movieclip plays as it should, fading in and out continuously. However, the second or subsequent times the button is clicked the fading movieclip goes crazy, half fading in/out and half jumping from one alpha value to another.

View 7 Replies

CS3 Fading Out Music?

Apr 11, 2009

so I have this scene in Flash where a song plays. However, once everything is done on the scene, the screen fades and it goes to the next one. I put a layer in the next one that stops the music, but it just suddenly stops without fade. Also it doesn't matter if I select FadeOut because it will still suddenly stop. If I put Event instead of Stop, the song just keeps playing.

View 1 Replies

Fading Words In And Out?

Jul 15, 2009

Anyway, I want to do something really basic and simple. I want to have a word fade in then fade out. Then another word in another place fade in and fade out.

View 1 Replies

ActionScript 2.0 :: Fading Out After 5 Sec?

Jul 22, 2010

how I might fade this banner out automatically after 5 seconds if it isn't clicked on by the user?

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(main_image, "_alpha", Strong.easeIn, 0, 100, 1.25, true);

[Code].....

View 4 Replies

IDE :: Fading On Xml Gallery

Feb 21, 2009

Ive made myself an xml gallery already, i just wanted to put a fade on the thumbnails and main images after they are fully loaded, so they appear gradually. thought it would be simple using the onLoadStart, onLoadProgress and onLoadComplete functions that are envoked by my movieClipLoader, but having soe problems with the images and thumbs disappearing a short time after fading. a link to what ive got so far is here, have a look and wait a while and youll see the thumbs, mains disappearing [URL] my code for the gallery is such (all contained in one frame, no buttons involved):

[Code]....

View 4 Replies

IDE :: Xml Gallery Fading Out?

Mar 25, 2009

I'm trying to mix the simple photo gallery code with the xml gallery. i'm trying to get the images to fade in and out like the simple gallery, yet have all the features of the xml gallery. I'd like to do this without making two different movie clips/xml files, like the simple gallery. Again, any help would be terrific. I'll post the two codes.

simple gallery:

loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;

[code]....

View 2 Replies

ActionScript 2.0 :: Fading In And Out In MX?

Sep 24, 2003

i am basically half way home, but I can't quite figure out how to make my movieclip gradually fade out. What I want is an arrow to appear and dissappear when the user is around some buttons. Here is my code:

stop();
speed = 5;
_root.onEnterFrame = function() {
greenArrow._x += (_xmouse-greenArrow._x)/speed;
if (_xmouse > 0 && _xmouse < 340 && _ymouse > 0 && _ymouse < 60) {
greenArrow._alpha += 10;

[Code]...

View 3 Replies







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