ActionScript 2.0 :: Unmute - Button That Disappears On Click?

Jul 20, 2010

I am doing a video that I need to start playing automatically, but it has to start playing muted.For this part I am using the following code

Code:

vid.playPauseButton = playpauseVid;
vid.volume = 0;
vid._uiMgr._isMuted = true;
vid.muteButton = mute;
vid is my video instance name.

This works great so far. But now the client wants to ad a big button over the video that says PLAY WITH SOUND. And that button has to serve the same function as the unmute button but it has to disappear once it is clicked.

I tried using this

Code:
cover.onPress = function(){ this._visible=false}

But that only makes a button that disappears when I click it, how do I make that button unmute my video or how do I link it to this


Code:
vid.volume = 0;
vid._uiMgr._isMuted = true;
vid.muteButton = mute;

I tried to add that disappear code to my already functioning mute button, what is happening is that it is applying the this._visible=false before it unmutes. So the button disappears before it has a chance to unmute the audio Got it working.

Code:
cover.onPress = function(){
this._visible = false;
vid.volume = 100;
};

[code]....

View 1 Replies


Similar Posts:


Professional :: Whenever Click Button Image Appears But It Disappears

Mar 22, 2011

I want to create a button which in a press state shows an image and removes it when its unpressed.Now the problem im facing is whenever i click the button the image appears but it soon dissapears as i lose the click.

View 5 Replies

ActionScript 2.0 :: When Click On A Button The Current 'site' Disappears Befor The Next One Loads

May 10, 2006

Take a look at this site. [URL] You notice when you click on a button the current 'site' you are on dissapears befor the next one loads. How is this done? It's like the code tells flash first to 'close' the current page and then load the page you clicked on.

View 1 Replies

Professional :: Loading CSV Works On Enter Frame But On Button Click Text Disappears

Nov 17, 2010

I have a files that is loading and parsing a huge amount of data from a csv file and creating and plotting a graph using the data.  All is well if I have the file loaded on the first frame of the movie.  But if I pass in the URL by entering the file name in a text input field and clicking a button.  The X and Y axis values disappear as do intermittent notes placed above the bar graph.  I still see the x and y axis and it's hash marks and the bar graph (shapes)  but all of the text is gone.

View 3 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 And Unmute Button?

Apr 10, 2009

I am wondering how to make a mute and unmute button is actionscript 3.0.  I did it before in actionscript 2.0 but not in 3.0. Here is my actionscript 2.0 code.
  
var sound = 1;
var slashMC = _root.attachMovie("slash","slash01",99);
slash01._visible = false;
slashMC._y = btn._y;
slashMC._x = btn._x;

[Code]...

View 14 Replies

Professional :: Flash Mute/unmute Button?

Jul 5, 2010

I have just installed Flash Professional CS5. I have set up a short 3 second Flash .swf file and incorporated it into my website using Dreamweaver CS5. The Flash file has a background sound file and the Flash program loops. I see how to set up a mute button and have done that, yet when the file loops the sound begins again. I have looked through the many tutorials and forums and simply cannot find out how to set up the button so that when the "Mute Sound" button is clicked the sound stops even after the file loops. I am guessing it might have something to do with setting up my timelines, yet I have played around with that and did not get anywhere.

View 4 Replies

ActionScript 3.0 :: Mute/unmute The Volume For An Internal Aif Music File Using A Button?

Mar 9, 2009

I need the code to mute/unmute the volume for an internal aif music file using a button.

View 2 Replies

ActionScript 2.0 :: Create An Faq Page Using Xml - When You Click Again It Disappears?

Sep 27, 2011

i am trying to create an Faq page using xml.. and actionscript 2.0. the question and answers are laid out in a tree stucture form.on clicking a question answer appears below it when you click again it disappears..how should i go about it..i have very litlle knowledge in xml parsing..

View 1 Replies

ActionScript 3.0 :: Embedded FLV Playback Disappears On Click

Jul 22, 2011

I have a movieclip-button with these functions:
Code:
Select allfunction onRollOverHandler1(myEvent:MouseEvent){
Object(root).service.service_info.gotoAndPlay("earth");
}function onClickHandler1(myEvent:MouseEvent){
Object(root).service.service_info.gotoAndPlay("ninja");
} function onRollOutHandler1(myEvent:MouseEvent){
Object(root).service.service_info.gotoAndPlay("noinfo");
}

The problem is that when I click the button and rollout of the button, the embedded FLV which starts playing when I click disappears immediately. I would imagine its because I have a onRollOut-function who overrides the onClick.

View 13 Replies

IDE :: Timeline And Click On Frame It Shows Up Again / If Draw Again It Disappears

Apr 9, 2011

Okay, so I have used this many times before but I cannot figure out how to fix this. This is what happened. after i open up any type of document like an actionscript 3.0 document or anything, if i draw with the paint brush as soon as i let go of the mouse button the line disappears. If i go into the timeline and click on the frame it shows up again, but if i draw again it disappears and i have to click on the frame to see it.

View 2 Replies

ActionScript 2.0 :: Add Mute Sound And Unmute Sound Script In A Single Button?

Sep 21, 2011

how to add mute sound and unmute sound script in a single button?

View 2 Replies

Professional :: When Click On A Field To Edit The | Symbol That Allow To Type New Text (for Example, A Timeline Folder's Name) Disappears As Quickly As It Appears?

Feb 8, 2011

When I click on a field to edit, the | symbol that allows you to type new text (for example, a timeline folder's name) disappears as quickly as it appears, therefore no way to edit anything.

View 9 Replies

ActionScript 1/2 :: Click A Button On 2 Different Ways Shift Click Or Ctrl Click?

May 12, 2010

Lets say i have a button on frame 1. And if you press it normal, you ll get to frame 2. But then if you click it on another way, you ll get to frame 3. How do i do that easy?! With another way i mean like shift click or ctrl click or is it an easier way?

View 3 Replies

Actionscript 3 :: My Flash Button Disappears

Sep 30, 2010

I'm following this tutorial on Flash Pro CS4[url]...

I have a button. I pressed CTRL + E in this button, I clicked the 'hit' frame on the 'Text' layer and I created a new frame going in 'Insert > Timeline > frame' as said in the turorial. Like ins the image below.

But after I create a new Frame(F5), as said in the tutorial, the button disappears, like the image below.

( Btw, is this kind of question allowed in SO? This is not exactly a source code question, but in the FAQ it's written that 'software tools commonly used by programmers' questions are also allowed. I don't know if Flash Professional would be a tool commonly used by programmers but I thought wouldn't hurt asking.

View 1 Replies

ActionScript 2.0 :: Button Disappears On Tween

Feb 8, 2007

i've got a function that tweens the _x and _yscale of whatever button is rolled over and a fuction to tween them back, basically grow and shrink the button. the problem is that on rollover the button completely disappears and when i rollout it reappears at the correct "grown" size and then shrinks correctly.

Code:

for(var b=1;b<=47;b++){ // works on ALL buttons
_root.map["btn"+b].onRollOver = function()
{
var bt:Tween = new Tween(this,"_yscale",

[Code].....

View 1 Replies

ActionScript 2.0 :: When Click On The The Text Field To Type Something In, The "title" Disappears ?

Aug 25, 2004

You've seen those Input Text Fields on web sites that have titles on them, i.e. Name, Email, Message, in the Text field itself.Then, when you click on the the text field to type something in, the "title" disappears and you can type your info in.

View 14 Replies

Caption Button In FLVPlayback Skin Disappears

Feb 24, 2011

I am working in CS5/AS3 with an FLVPlayback component and a pre-made skin with some custom colors. It is a skin with the caption button included (SkinUnderAll to be exact). I'm using Timed-Text files for the caption content. The captions work just fine. All other buttons on the skin show up, but the toggle button isn't showing up.

I checked all of the linkage in the skin's FLA, checked the AS that creates the FLVPlayback and FLVPlaybackCaptioning objects. All seems fine there.

I've checked the paths and SWF locations to be sure all are in the right places.

I've also included a SKIN_LOADED event listener to get around the default captions-on issue. I'm just not seeing what the issue is. I'd prefer to not go back through my code and make a custom control panel with button components. Started this in CS3 and moved the file to CS5, so I'm not sure if there's something I overlooked in the documentation that spells this out.

View 4 Replies

Actionscript 3 :: Flex Tooltip Disappears When Button Is Clicked

Jul 28, 2011

I have tooltips in flex but when a component is clicked the tooltip disappears and the user has to move mouse out of the control and then back into the control to display the tooltip.
Is there a way to prevent the tooltip from getting destroyed on mouse click. I tried calling e.stopImmediatePropagation(); e.preventDefault(); on mouse click event of button. also tried handling and preventing tooltipEnd and tooltipHide events but they are not fire when the button is clicked.

View 1 Replies

ActionScript 3.0 :: Dynamic Text Disappears When Clicking Bold Button?

Jun 28, 2009

I have dynamic text inside a movieclip, that I can make it rotate.

the dynamic text properties are : anti-alias for anmations and I emdedded all characters.

When I click on the bold button the the text disappears.

bold_btn.addEventListener(MouseEvent.Click, on_bold);
function on_bold(e:MouseEvent):void
{

[Code].....

View 3 Replies

Professional :: Mute/unmute Embedded Flv?

May 25, 2011

I have an flv embedded onto my timeline (it's short, the only video to be played and has an animation synced up to it) but now I need to mute/unmute it. Is this even possible with the video being embedded? If so, how?

View 2 Replies

ActionScript 3.0 :: MUTE On Load And Then UNMUTE?

Sep 3, 2010

I just joined today to look for a solution on how to mute a flash video when it starts/loaded and then unmute it anytime a user wishes. I've tried searching for "mute" but only discussions I see are how to make mute button etc. My mute button works flawlessly but some web ad banners nowadays require the flash video to be muted from the start and an unmute button be available.

[Code]...

View 1 Replies

ActionScript 2.0 :: FLVPlayback: Unmute & Restart?

Jul 18, 2006

I'm trying to load an FLV that will start playing muted, but on click of the unmute button will restart from the beginning, with sound, I've got it working except that I can not seem to get it to restart... can anyone tell me what it is I am doing wrong here? I've been fighting with this for two days now! [URL]

View 1 Replies

ActionScript 3.0 :: Click On The First Button Loads Ok But When Click On Second Still Showing The First Movie Clip In The Back

Dec 14, 2011

I have read all threads and can not find a solution but i am not somebody with a lots of knowledge about actionscript so here is my problem i am using this script .

[code]....

the problem is that when i click on the first button loads ok but when click on second still showing the first movie clip in the back ,,,,, i have try everything without luck ,,,, i guess i need to keep reading but will like to find an answer to this situation ,

View 3 Replies

Actionscript 3.0 :: If Function - When Click On The Button Takes To Another Page Without Showing The Click Animation

Sep 11, 2010

I created a movieclip animation that only activates when i rollover the movieclip button. I further extended the frames and created another frame animation that i active only when user clicks the button. So i have a roll over/out animation and click animation in the same movieclip in the same layer. Now the problem is that when i click on the button, its supposed to take me to another page, and it does, unfortunately without the click animation. That means after i click on the button its supposed to first finish the click animation and then go to another page. But when i click, it takes me to another page without showing the click animation

SO I tried the If function, but i seem to make a mistake somewhere and i dont know what to do. Now there is no error in script, but onw there is a problem in link, the button finishes the click animation but it does not go to the tarrgeted"about" frame. here's the code

[Code]...

View 1 Replies

Flex :: Menu Control - Click A Button And A Menu Is Displayed. Click That Button A Second Time And Hide That Menu?

Jun 20, 2010

Basically, I have a button and on click it displays a menu. I want to click that menu a second time and the menu closes. Currently, every time you click the button, the menu reopens. I pasted the Flex livedoc example below. If you click the button, the menu keeps reopening.Now, I rigged it up by setting a var to open and closed, so when clicking the button it does a check. However, if you click away from the screen, the HIDE event gets dispatched, and the menu closes. This messed up the open close var being set.

How could I make this Flex example below show the menu on button click, and then on a second button click, it closes the menu? Take into affect that if you click away from the menu, it closes it.Also, I played around with the MOUSE_DOWN_OUTSIDE event for the button and set the preventDefault, and the FlexMouseEvent event.cancelable is set to false.Changing to a PopUpMenuButton is not an option. I have to much skinning involved.Here is the Flex example:

<mx:Script>
<![CDATA[
// Import the Menu control.
import mx.controls.Menu;

[code]....

View 1 Replies

ActionScript 2.0 :: Input Text - "title" Disappears When Click On The The Text Field To Type

Aug 25, 2004

You've seen those Input Text Fields on web sites that have titles on them, i.e. Name, Email, Message, in the Text field itself. Then, when you click on the the text field to type something in, the "title" disappears and you can type your info in. Perfect example: [URL] (Under "contact")

View 14 Replies

ActionScript 2.0 :: Mute A Sound That Is Looping And Unmute It Again?

Jan 29, 2009

I have a small loop of a beat. it automatically loops in flash, i need a button to mute this specific sound (so i can put other different sounds) and another button to unmute it... i've seen how to mute a sound (or set volume to zero) but that only works if the song is beiing played on the timeline, but this sound is looping!

View 9 Replies

ActionScript 3.0 :: Mute / Unmute Sound On FLV Player

Mar 18, 2009

I've built an FLV player using Lee Brimelow's AS3 video basics tutorial. I've pieced together my play/pause buttons, but I haven't been able to figure out how to mute the sound. I've tried using soundTransform a bit, but I'm not sure if that only works for the flvPlayback component. My mute/unmute toggle button is working, but the actual muting functionality not. Here's my current failed attempt.

var soundVolume:Number = 1;
var muted:Boolean = false;
mute.buttonMode = true;
mute.addEventListener(MouseEvent.MOUSE_OVER, muteoverToggle);
mute.addEventListener(MouseEvent.MOUSE_OUT, muteoutToggle);
mute.addEventListener(MouseEvent.CLICK, mutetoggleClick);
mute.buttonState = "On";
[Code] .....

View 1 Replies

ActionScript 2.0 :: CS3 Movieclip Button - Click To Play, Click To Stop?

Jun 21, 2010

I am building a flash interface and I would like a menu where it is hidden to begin with (just a tab). You click the tab to expand it, and click again to collapse it. I've made a movieclip with animation of the menu opening up and closing, but I can't seem to work out how I'd go about making the movieclip open and close properly.

View 4 Replies







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