IDE :: Mute And Dragger Not Working Together?

Oct 11, 2009

My sound object (below) is working with my volume dragger, but not with the mute button as well. The mute button works without the dragger, but they don't work together.

Code:
t1 = new Sound();
t1.attachSound("mysound");
t1.start();

[Code]....

why does the sound not play when this SWF is externally loaded.

View 1 Replies


Similar Posts:


Mute Button Not Working?

Aug 9, 2009

This is a simple mute toggle button for an mp3 player.
 
I first var sound: Sound 
Then I have the function 
//mute the current sound
function muteSound ()

[Code]...

View 3 Replies

ActionScript 2.0 :: Mute Flv Not Working?

Sep 4, 2007

I have an flv that is playing through a playback component with the instance name of "player". The whole goal here is to have the audio muted when the file begins, and have an mc button ("noise") allow the user to toggle the audio on and off. I'm not having any video controls on here, just the home-made audio toggle. Here is the code I have:

player.volume = 0;
noise.onRelease = function(){
if (player.volume = 0){
player.volume =100;

[code]...

I have tried switching the 0's to 100's and vise versus, I sometimes can get it to play but then not mute, or mute then not play.I have also tried switching the function to setVolume, with no results. I know I am close, disregard the gotoAndPlay's, it just controlls an animation for the button.

View 3 Replies

ActionScript 1/2 :: Mute Button Is Not Working?

Oct 9, 2010

I tried using a form of "volume = 0" kind of code but one thing it doesn't mute is the sounds I have in buttons (or symbols). Those seem to continue playing even when the mute is active.So whats a form of code I could use to shut off all volume?If there isn't a solution then what can I do to mute symbol sounds?

View 1 Replies

ActionScript 2.0 :: Mute Button Not Working In Embedded SWF

May 19, 2010

The mute button code I have works perfect when the SWF is played itself, but when it is embedded in a wrapper SWF it no longer works. I know that it is the code that references _loc1. I have the root locked in the first frame of the embedded swf with this:

Code:
this._lockroot = true;

Here is the code in question. I just need to know how to change this code to make it work when this SWF is embedded in another SWF:

Code:
btn.onPress = function () {
var _loc1 = _root.snd.getVolume();
_root.snd.setVolume(Math.abs(_loc1 - 100));

[Code].....

View 1 Replies

Actionscript 2.0 :: Mp3 Player - Keep The Mute State Unchanged When The Songs Are Playing Until The Mute Button Is Pressed Again

Feb 3, 2009

I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.

View 6 Replies

ActionScript 3.0 :: Mute Button Toggled To "mute" By Default?

Aug 5, 2010

So i have a flv playing on a flash load. I need the mute button toggled to "mute" by default.

Code:
my_FLVPlybk.muteButton = mutebtn;

that is the mute button instance i am using.

View 1 Replies

ActionScript 3.0 :: Image Dragger Gallery?

Mar 1, 2011

do anyone know where i can download the code of a image gallery which works by dragging the photo on stage only?I don't want scroll bar control or mouse move detection, i just want to drag the thumbnails along x-axis

View 5 Replies

ActionScript 2.0 :: Custom Text Scrollbar With Dragger

Feb 6, 2007

I am trying to make my own text scrollbar with dragger. I don't want up or down buttons just the dragger. I've done this so far...
Code:
var scrollHeight:Number = scrollTrack._height;
var ms:Number = newsText.maxscroll;
var left = scrollTrack._x;
var right = scrollTrack._x;
var top = scrollTrack._y;
[Code] .....
It scrolls till the end of text but not to the beginning....

View 1 Replies

ActionScript 2.0 :: Volume Dragger With Percentage Output

Aug 14, 2009

Im trying to make a volume bar that shows the volume percentage in a dynamic text box (with an instance of 'percOutput') while you are dragging. I cant even see how to do this, im having real trouble.[code]

View 4 Replies

ActionScript 2.0 :: Visualised Reaction To A Dragger/slider?

Jun 8, 2011

set up a draggable slider in Flash CS4 that, when dragged through 10 years (1990 - 2000) will make a series of circles grow or shrink accordingly.

View 3 Replies

ActionScript 1/2 :: Getting Custom Dragger To Work On Audio Player

Aug 24, 2009

I am trying to get this dragger to work on the play head of my audio player. I get it to drag but when i let go it jumps back to the place it was before. You may need to change the sound file to get it to work but I have attached all other files needed to get it to work.

var XMLLoaded:XML = new XML();
XMLLoaded.ignoreWhite = true;
var timesLoaded:Number = 0;
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth);
var sound_mc:Sound = new Sound();
[Code] .....

Attachments: AudioPlayerOnline.zip (14.2 K)

View 3 Replies

ActionScript 2.0 :: Slider Bars - Dragger.OnPress Function

Mar 4, 2005

I am currently working on the Slider Bars tutorial at [URL]. I got dragger to work, I just want to better understand the dragger.onPress=function() part. With a normal function you have:
function hello(){
trace("hello");
}

Then when I wanted to run the function, I would use:
hello();
Ok so if dragger is pressed (onPress) then it creates a function, right? So how do you run the function? Or is the function running as I'm pressing dragger?

View 3 Replies

ActionScript 3.0 :: Stage Objects Prevent Scroll Dragger To Work

Jan 14, 2010

I created a custom scroll bar, you can see it here [URL] My scroll dragger is not working. First, I have removed all of my code except my scroll bar code and my scroll dragger still doesn't work. If I remove all of my stage elements and leave my custom scroll bar on the stage, the scroll dragger works. If I try to add an object back onto the stage the scroll dragger stops working. It doesn't seem to matter what object I add back to the stage. There are no compile errors or output errors to fix. I even created a new fla and I am getting the same issue. Adding movie clips from the library to the stage prevents the dragger from working. I am really puzzled by this. I am using Flash CS3. I have added a zip file of my fla.

View 3 Replies

ActionScript 2.0 :: Targeting Mc - Scrolling No Longer Moves When Slide The Dragger

Nov 9, 2004

I took the kirupa end of days scroller tutorial and modified it to create a scrollbar for text and movieclips. It worked fine if everything was in the root, but I had to drop it in its own movieclip and re-target everything. Since doing so, the mc that should be scrolling no longer moves when I slide the dragger.

View 1 Replies

ActionScript 3.0 :: Custom Dragger With TimerEvent. Drag From Original Position?

Apr 8, 2009

I prefer to build custom drag functions using the TimeEvent etc. Below I have some code where as when I click on a MovieClip it fires the imageStartDrag function which then begins the imageDrag function consecutively.Currently when I click and drag it moves the image fine, however it is snapping to the far left of the image.What I would like is to be able to click and drag so that the image drags from it's original point. My brain is a bit confused, what do I edit in 'imageLoader.x = mouseX;' to have it starting from it's original position and moving. (Note, I'm only testing with the X Axis atm, later it will use the Y Axis too.)

Code:
// Image StartDrag Handler.
private function imageStartDrag(e:MouseEvent):void {

[code]......

View 1 Replies

ActionScript 2.0 :: Change The Color Of The Dragger , Drag-path And The Two Up And Down Buttons Of UIscrollBar?

Nov 22, 2010

Is it possible to change the color of the dragger , drag-path and the two up and down buttons of UIscrollBar from white to any other color.

View 2 Replies

ActionScript 2.0 :: ScrollBar Dragger To Be Positioned In Relation To The Info._y As The User Scrolls Info?

Jun 24, 2010

I have some scrolling content (info). I've also made my own scroll bar.I want the scrollBar dragger to be positioned in relation to the info._y as the user scrolls info.I have created two vars: one that worsk out where info._y is as a percentage and the other that works out where the scroll._y dragger should be as a percentage...

Actionscript Code:
var scrollBarPercent = Math.round(scrollBar.dragger._y / [code]........

also onMouseWheel working too.I need a small bit of code that takes the % of info._y and moves the scrollBar dragger to the same % but in relation to the Stage.height...so if projectGalleryPercent = 50%, make dragger._y 50% of Stage.height using scrollBarPercent.

View 1 Replies

ActionScript 2.0 :: Setting The "dragger" In A Scrollbar To A Position?

Feb 8, 2007

i've donwloaded a scrollbar from the forums and i need help on how to make the scrollbar go to the top when you push a button.

View 1 Replies

IDE :: How To Mute The Sound

Sep 25, 2005

I'm working with the FLVPlayback component but the mute functionality is a bit of a black box to me and it seems Macromedia has forgotten to mention anything about it in the help files.I'm trying to mute a playing movie with actionscript. The closest I got is using myFLVplayback.volume = 0. However volume 0 is not the same as mute and pressing the mute controller will do nothing and leave the volume at 0.I can use the volume slider but I can't stand not knowing how to mute the sound through actionscript.

View 6 Replies

Create A Mute Button?

Feb 1, 2002

How to create a mute button in flash so that when its clicked all sounds are muted, however, when clicked again all sounds resume but without starting again from the beginning.

View 4 Replies

Fla That To Add A Mute / Unmute Button

Jan 10, 2011

something probably quite simple. fla that I need to add a mute/unmute button to. It would be even better if mute/unmute occured onmouseover, but no doubt this is a more complex question?

View 2 Replies

ActionScript 3.0 :: Mute All Sounds?

Sep 16, 2008

anybody knows the AS to mute all sounds?

View 2 Replies

ActionScript 3.0 :: Mute All Sounds In A Swf Except For One?

Mar 31, 2010

To stop all sounds in a swf, I'm using the following code.
 
var transform1:SoundTransform=new SoundTransform();transform1.volume=0;flash.media.SoundMixer.soundTransform=transform1;

This mutes all sounds. Now there is an issue, I want to stop all sounds but one (i.e. "music.mp3").

View 1 Replies

Actionscript 3 :: Way To Mute A Movieclip

Nov 25, 2010

I load a movieclip in another project. this loop.swf has music in it.[code]...

After some seconds, I want to unload or easier "mute" this clip.

When I unload it, even when I load a new clip in it, the music continues to play.

View 3 Replies

Flex :: How To Mute The Speakers

Jan 18, 2011

In the following code how to mute the speakers

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"

[code]....

View 1 Replies

As2 :: Mute Sound In Flash?

Feb 10, 2011

I want to mute the sound not pause....i already using setVolume script on other buttons.

View 1 Replies

Flex :: Can't Mute A NetStream?

Apr 26, 2011

I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work. I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.I tried setting the mx VideoDisplay volume to 0 and that does not work.I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.

View 1 Replies

Actionscript 3 :: How To Mute The Flv On Start Up

Jun 15, 2011

I'm trying to work on a AS3 file with a video in it.how to have the flv muted on start up?So far I have this script:

import flash.events.*;
import fl.video.*;
//-----------------

[code]....

View 1 Replies

ActionScript 2.0 :: How To Mute Buttons

Jan 6, 2010

i have 5 buttons all that do there thing, they have sound on over and hit.but i need a way to mute and unmute everything (including these buttons sounds) iv tried everything. The button changes state to mute and unmute, but the sound still plays for over and hit. This is where I am now. PLEASE HELP!!! urgent for coursework.

1st Frame of main timeline:

var globalVolume:Sound = new Sound(_root)
vol = true;

Mute movie clip:

on (release) {
if(vol == true) {
globalVolume.setVolume(99);
gotoAndStop(0)

[code]...

View 6 Replies







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