ActionScript 2.0 :: Sound Muted As Default On FLV Component

Jan 9, 2009

I have a custom Flash Video Player and I have the play and mute button as controls. Currently my player has the sound on, I want to set it as muted by default.

This should also show my mutebutton as on as a visual cue. The only line of code I am using for the mute button is this

myVideo.muteButton = mute_btn; // which is just telling the flv component which button needs to act as the mute button

Using Flash CS3 , Actionscript 2.0

I got extremely two easy lines of code that I put in my action Frame 1 which fixed everything.

myVideo.volume = 0;
myVideo._uiMgr._isMuted = true;

myVideo is the name of my FLVPlayback component

View 8 Replies


Similar Posts:


ActionScript 3.0 :: Loading A Sound And Having It Muted?

Mar 12, 2012

i have a project that i'm working on for school in a multimedia class. everything in the project is essentially done except i need to load a few sounds into the project file all at the same time. as this would be rather unpleasent to listen to, i want them all to be muted when they are loaded (externally or internally, it doeesnt really matter) in. my professor doesn't seems to be very helpful so i decided to come to the source. the program i'm using is flash pro cs5.5 with as3. i think there is some code for controlling the volume, and optimally that is what i would like to use, like "setVolume = 0" and then later when i want the sound(s) to be heard "setVolume = 100", or something along those lines.

View 5 Replies

ActionScript 3.0 :: Detect When User Has Muted Sound?

Jul 18, 2010

I need to check that the user has not muted the system before running my main movie (as indicated by the red bar over the speaker icon on the lower rgiht) and if so prompt to unmute with pop up. Is that something I can do with Actionscript 3 or is it sometihing that needs to be addressed with JavascriptWSH?

View 3 Replies

Actionscript 3 :: Soundspectrum Animation Playing But Sound Muted?

Nov 8, 2011

I am looking for my soundspectrum animation to play but my sound will be muted...This will be inserted in a banner ad, so their are specific rsestrictrictions with vendors where the sound has to be user initiated...

var SpectrumLineWidth:Number;
var SpectrumLineColor:Number;
var SpectrumGlowDirection:String;

[Code].....

View 1 Replies

ActionScript 3.0 :: Sound Off By Default

Aug 19, 2009

I want sound on my site but want it off by default. That way the user can choose to listen or not.[code]...

View 5 Replies

IDE :: What Is The Default Component Label Font

Jan 14, 2009

what the default label font that flash uses when you add a component? Ive searched around Im trying ti match it as it looks much better than other fonts?

View 3 Replies

AS3 :: Flash - Extending Default ScrollBar Component

Jun 24, 2010

I'd like to adjust the width of the default ScrollBar that appears inside of a Flash ComboBox. From my research on various forums, it seems like the best approach would be to subclass fl.controls.ScrollBar, which I've tried doing here:

package helpers {
import fl.controls.ScrollBar;
public class CustomScroller extends fl.controls.ScrollBar {

[Code].....

Then, in my library, I've taken the "ScrollBar" movie clip that appears upon initial creation of a ComboBox and changed the base class to "helpers.CustomScroller". I've got three ComboBox instances on the stage; however, none of them are showing anything but the default width, nor am I seeing the output from the trace() statement in my constructor.

View 2 Replies

Flex :: Default Sorting Within OLAPDataGrid Component

Oct 7, 2010

I'm trying to provide some default sorting within the OLAPDataGrid component in Flex. There appears to be a dataCompareFunction on OLAPAttribute, but nothing I do seems to actually trigger calls to that method. Any suggestions around using this method or any others to provide sorting of the dimensions on OLAPDataGrid?

View 2 Replies

ActionScript 3.0 :: Make A Default Selection In A List Component?

Feb 27, 2011

I need that when the list appears is shows a selected cell, I tried this but didn´t worked: list.isItemSelected(0)=true;

View 1 Replies

Flex :: Fcreate HBox Component With Default Values

Dec 7, 2009

I want to create an HBox component; for example HLBox that behaves exactly like an HBox but has as default width and height 100%.

View 1 Replies

IDE :: Toggle On/off A Checkbox Component With ENTER Instead Of The Default SPACEBAR?

Jun 17, 2009

how do i toggle on/off a checkbox component with ENTER instead of the default SPACEBAR? so ENTER key is the key to toggle..

View 2 Replies

Actionscript 3 :: Setting A Default Skin For A Custom Component In Flex 4?

Aug 18, 2010

How do you set the default value of skinClass for a custom component in Flex? I've extended the DropDownList with my custom component, but I would like to specify a default skin to go with it instead of always setting the skinClass value for each instance.

View 1 Replies

Actionscript 3 :: Select Multiple Items As Default In List Component?

Feb 3, 2012

I set my list to allow multiple selection. But when I load data in my list, I want to set a few items as selected. Normally you can set only one item selected by using list.selectedIndex. It only accepts int. How can I set multiple items as selected?

View 2 Replies

ActionScript 2.0 :: Set A Default Date (day Month Year) To A DateField Component?

Sep 3, 2010

how can I set a default date (day month year) to a dateField component?

I want to load date from a xml file, and show it on the component, and ofcourse, let the user change it...

View 2 Replies

ActionScript 2.0 :: Tree Structure Component Style - Replace Default Icon With A MovieClip?

Oct 11, 2006

Here i'm setting the disclosureClosedIcon as null setStyle("disclosureClosedIcon", "nullicon"); Anybody have idea about how to replace this default icon with a movieClip?

View 1 Replies

Set A FLV Player To Be Muted Automatically?

Jul 16, 2009

How do you set an FLV player to be muted automatically on load? I know how to make the volume 0 on load but I actually want to set the mute button state to muted so the user can click on it to unmute it.

View 2 Replies

Actionscript 3 :: Prevent MXML Custom Component In Flex Library Project Always In Default Package??

Mar 31, 2010

I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess.Is there a way to set a package declaration for MXML files? After all it just gets translated into AS3 classes. This seems to work in regular Flex projects using a namespace declaration so I'm at a loss how that is supposed to work. The other option is building out all the components in AS3 which I'd like to avoid.

View 1 Replies

ActionScript 1/2 :: Captivate SWF Audio Can't Return After Muted And Unloaded In Flash

May 4, 2010

I'm having a problem with audio of Captivate demos created in Captivate 4 loaded into a Loader component using Flash 8 and AS2. Problem is if someone is viewing a Captivate demo and hits the Audio On/Off button on the playbar to turn the audio off and then returns to the menu, the next Captivate demo loaded has no audio until the user click the audio Off/On button a couple of times. Even though when loaded, the playbar audio is shown as on.
I've already tried cpCmndMute and cpCmndVolume to no avail. Is there another audioOn variable I'm missing?[url]...

View 2 Replies

ActionScript 1/2 :: Turn On Audio For External Flv On Replay When Previously Muted While Playing?

May 3, 2011

I have a project where an external video plays with cue points that  trigger the elements on my main timeline (captions). I have a custom mute button  for the video so that the guy talking on the video can be muted if necessary (did not use a skin for video controls but set it up as a button). The problem is, when I reach the end of the video and I click  a "replay" button to restart at the beginning, the timeline and video start but if the video was muted previously, the video remains muted while my button shows that it isn't. How do I  get the audio to turn back on automatically when restarted, or at a minimum show that it's still muted when replaying? My replay button AS2. mcPlayer is my flv.

[Code]...

View 9 Replies

Actionscript 3.0 :: Creating Simple Component - Can't Get The Default Parameters "loaded" In The Class ?

Mar 18, 2010

I want to create a simple component in as3, cs4. There are 2 problems I cant solve:

1.)I can't get the default parameters "loaded" in the class for the component so lets say if I have w = 10 in the parameters how can I refer to it in the code?

2.) How can I get the tool with which I can set which corner of the component should stay the same : it looks like this in the default

flash button component
theLinesTool.png (11.82 KiB) Viewed 290 times

View 2 Replies

Professional :: Set Captions To Be OFF By Default, Using The Captions Component In Flash CS3?

Dec 12, 2008

Using Flash CS3, v9, AS 3. I have got a Flash movie that I have set up to have captions display over it.I am using the included FLVPlayback component for the movie, and the included FLVPlaybackCaptioning component to set up the captions. My movie uses the included

[Code]...

View 1 Replies

ActionScript 3.0 :: Remove Sound In FLVplayback Component?

Nov 24, 2011

How do you remove the sound from "specifically" from FLVplayback component? Since the sound wont stop playing when I'm on different page(assume that if the person didnt click the pause button and navigate to other pages)....Normally I would add SoundMixer.stopAll(); for every button in my main and loaded swf but this will stop my background music as well....
 
The flvplayback component is located in another swf file and the code was added on the second frame of the movieclip call "scrollGroup"
 
//////////////////////////////////////////
import fl.video.FLVPlayback;
import flash.events.Event;

[Code]....

View 4 Replies

ActionScript 3.0 :: Sound Position And Length On Slider Component?

Sep 11, 2011

I have the following working great:
 
stop_btn.setStyle("icon", square_mc);player_btn.setStyle("icon", next_mc);
import flash.events.Eventimport flash.events.MouseEvent;import flash.media.SoundTransform;
var alreadyDefined:Boolean;volumen.value = 1;

[Code].....
 
I have another slider component on the movie with instance name PROGRESO

I would like for PROGRESOnto indicate (update) the sounds progress as it plays and be able to scrub through the sound.

View 7 Replies

Flv - Flowplayer Flash Component Plays Sound But Not Video?

Jan 17, 2010

The flow player will play the audio of a *.flv, but doesn't play the video and I've no idea why. The initial example page using the default flowplayer flv url works fine. When I change the url to my godaddy site, it doesn't work. I'm using Movavi Video Suite 8 to perform the conversion to flash from mp4. I think the metadata is included in the flash file when it converts, but I'm not certain. I used the meta data injector found here: [URL] to inject meta data into the flash files and it still did not work.

Also of note is that the player's progress bar shows the start, current, & end time values of the video, so I think the metadata is there. I've still no clue why this isn't working, though.

I wonder if it's my *.flv file as the player will load the mp4 file it was generated from. I used a premium application called MOVAVI Video Suite to perform the conversion. I don't think this is the case because I can upload the converted *.flv file to youtube and it plays fine.

Also worth noting is that the Flow Player plays audio and not video both when the flv source is pointed to my godaddy site as well as when its pointed to a local folder on my hard drive that contains the player, it's files, the video files, and the example .html page being used to test this.

Possibly something else worth mentioning is that I have not put the flow player files on my godaddy site yet because the video picture isn't showing locally.I have the same issue with the LongTailVideo player.

Here is the html for my test page:

<!--
include flowplayer JavaScript file that does
Flash embedding and provides the Flowplayer API.
-->
<script type="text/javascript" src="flowplayer-3.1.4.min.js"></script>

[code].....

View 2 Replies

ActionScript 2.0 :: Sound Object Interfering With FLV Player Component

Nov 7, 2007

i have a sound object that i created with fade in and out functions. but when i use the fade out function i created called "stopSound" it seems to stop all sound so that when my FLV player goes to play the movie it has no sound but still plays the FLV. Here's my code. Can someone please help me figure out why calling this function is turning off the sound in my flv player instead of just the sound object "music" that i created.

[Code]...

View 1 Replies

Actionscript 2.0 :: Multiple Mp3 Players - Stop Button , Pause Button When Choose A Song The Previously That Play Will Be Muted

May 8, 2010

i started with a Multiple mp3 players project and i more complicated with that - as you see in the picture i try to do that when click on the play button for every song this switch the song that selected -first preloading + percentage the mp3 file and after play it immediately and of course there is stop button, pause button when choose a song the previously that play will be muted

View 4 Replies

ActionScript 3.0 :: Make All Button Component Instances Trigger RollOver Sound?

Dec 18, 2008

I am using the Button component (the one shipped with CS3) inmany places in my AS3 project. I am coding in .as files, not on thetimeline.I have skinned the Button to use the colors I like. Now Iwish to "skin" it so that all instances generate a rollOver sound,and I'll be darned if I can figure out how.I know I can listen for ROLL_OVER events in each Buttoninstance. But I have many many Buttons and it seems kludgy to addthat same code to every class I have which tracks a Button. I amhoping there is some way I can make *all* instances of Buttonrespond to rollOver the same way. I am hoping it is likesetComponentStyle or changing the skin for the Button; I can do itin one place and it works everywhere.I guess I can listen on the Stage level for bubble-ups ofROLL_OVER, trap those that come from Button instances, and handleit from there, but stagewide listeners also seem a tad kludgy

View 1 Replies

Actionscript :: Pushbutton Engine EventSoundTrigger - Sound Object Is Null When The Component Is Created

May 11, 2011

I'm running into some issues using EventSoundTrigger in Pushbutton Engine I am able to make it work using xml like this:

<component type="com.pblabs.components.basic.EventSoundTrigger" name="Sounds">
<startSound filename="/assets/explosion.mp3" />
</component>

But if I try to write actionscript to do the same I throughs errors. I can't find any examples online to explain how to initialize or use EventSoundTrigger directly in ActionScript. The following throws an error that the sound object is null when the component is created. I figured it out here's the answer:

[Code]...

View 1 Replies

Flex :: 4 - Null-component - Checking If The Cancel Button Component In The Child Component?

Jun 23, 2011

I have a component "child" which has a cancel button. Now this component is placed in a state called "newChildComp" I also have another component called "parent". In the parent component, i have a button that dispatches an event. Here is the event code:

[Code].....

so, basically,i am checking to see if the cancel button component in the Child component, while i am still in the parent Compoent, was clicked, if it was clicked, call the cancelButtonHandler. The problem is by the time the addNewChild handles the event, that cancel button was still null. My question is how do i solve this without using the itemCreationPolicy on the cancel button?

View 1 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







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