How to stop sound playing at a embed FLV video

Hello,
I would not a piece of code, which will stop the sound
playing in a embed
flv video. Following situation:
I have a "main.swf" file which loads two swf as following:
loadMovie ("Teenies.swf", _root.contenedor);
loadMovie ("CananIntro.swf", _root.mc_video);
The "CananIntro.swf" includes (embed) the flv video "canan
PART1.flv".
I would need the action sript code to make the sound at
"canan PART1.flv" ON
or OFF.
Thank you for any hint.
Walter

Another way to do this is to create a boolean right off the start. Lets say var createMusicTrack:Boolean and set it to true
Then load your music and start playing it and at the end of that load code add a line that sets the boolean to false so that when you come back to frame 1 the boolean will be false and the code will not load and play, but this could be problematic too. Djnr suggestion is better for your purposes.

Similar Messages

  • How to stop sound from playing everytime we go to 1st frame ?*

    Hi everyone, my app has 3 frames and a sound playing on background so everytime i go to 1st frame the music play's over himself,
    is easy to get 5 instances of the music playing at same time.
    How to stop this behavior ?
    Music file imported to library.
    Sound Linkage: export for actionScript
    Sound Linkage: export in frame 1
    Any help are welcome
    Flash CS6 - AIR 3.4 Android and iOS > CODE:
    //sound
    var bgSound:BGLoop = new BGLoop();
    var channel:SoundChannel=new SoundChannel();
    playMusic();
    //making mute;
    soundBtn.addEventListener(MouseEvent.MOUSE_UP , mute);
    function mute(event:MouseEvent) {
        //removing mute function then adding unmute function to same button
        soundBtn.removeEventListener(MouseEvent.MOUSE_UP , mute);
        soundBtn.addEventListener(MouseEvent.MOUSE_UP , unMute);
        //making symbol to visible;
        soundBtn.gotoAndStop(2);
        //set the volume false;
        SoundMixer.soundTransform = new SoundTransform(0);
    //making unmute
    function unMute(event:MouseEvent) {
        soundBtn.removeEventListener(MouseEvent.MOUSE_UP , unMute);
        soundBtn.addEventListener(MouseEvent.MOUSE_UP , mute);
        soundBtn.gotoAndStop(1);
        //set the volume true;
        SoundMixer.soundTransform = new SoundTransform(1);
    function playMusic():void {
        channel = bgSound.play();
        channel.addEventListener(Event.SOUND_COMPLETE, loopMusic);
    function loopMusic(e:Event):void {
        if (channel != null) {
            channel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
            playMusic();

    Another way to do this is to create a boolean right off the start. Lets say var createMusicTrack:Boolean and set it to true
    Then load your music and start playing it and at the end of that load code add a line that sets the boolean to false so that when you come back to frame 1 the boolean will be false and the code will not load and play, but this could be problematic too. Djnr suggestion is better for your purposes.

  • How to make sound play in loop

    Hi
    How can i make sound play in loop? Is there any property in class SoundChannel responsible for this or i have to write my own function?

    Using the sound Object there is a property you can pass in which asks for number of Loops
    Play(startPosition:Number,LOOPS:int,SoundTransform)
    or you can create your own method that listens to SoundComplete and then trigger play again.  which in my opinion is the best to do because when you play a sound with a loop, and choose to have is begin at a position other than 0  then the loop will play starting from where you set the position.

  • X2: How to stop and play a MP3 file from any place...

    Hi,
    I have some 1 hour talk shows on MP3 on my X2. I play one show. After 10 minutes I want to pause it there and take a call, or go to the menu and add a reminder, and come back to the mp3 and play from the point I stopped (10 minutes). How to do that? 
    When I pause and come back and press play, it starts from the begininging????
    Thanks
    Roahan

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to stop the Play now feature?

    I have scheduled a presentation and a playlist both through the play now feature of the DMM.  I can not seem to figure out how you actually stop the content from playing.  I can send something else to it via future content.  However now if I try to delete the presentation or play list I get a message saying that it cannot because it is already scheduled.  How can I go about removing these?
    Also I am not a professional at creating the content for this system but my boss wants to be create some professional type content.  Is there a resource for maybe downloading more templates or even something for helping me go about creating some nice looking presentations?
    Thank you in advace!

    Hi Glen, the way I have halted "play now" content is by stopping all application for the dmp.
    navigate to Digital Media Players in the Digital Media Manager.  Check off the dmps that you want to halt content for. Click the dropdown under Actions, scroll to the bottom & select 'stop all application', click Go.
    hope this helps.
    Rose Ann

  • How to stop 'now playing' song?

    How can I stop the 'now playing' song and remove the 'now playing' option from the front screen?

    You press and hold play/pause. That shuts the iPod off.
    As for removing the "Now playing" option, my apologies, you can google for it, there are some iPod modify sites, but it may cause you problem, with hacked firmware.
    Have a nice day!

  • How to stop sound of video?

    Hi,
    I have an issue. In the landing page of my site I have loaded a video with standard html5 code. When I click on an anchor link I would like to mute the video, or even better set it to the last frame. (In the video I have removed the controls it is a fullscreen landing page video)
    Example:
    www.mysite.com (plays the video us usual)
    www.mysite.com#howto(stops the video and set it to the last frame or mute it)
    Hope I made it clear...
    Thank you all in advance,
    Frank

    You could add an onclick javascript event to pause the video on the anchor links. The anchor link should look something like...
    <a href="#anchor_id" onclick="document.getElementById('my_video_id').pause();">My Anchor Link</a>
    After further review, you could just mute it  I suppose, it doesn't seem as clean though since the video will still be running...
    <a href="#anchor_id" onclick="document.getElementById('my_video_id').muted = true;">My Anchor Link</a>

  • How to stop the soundtrack while there is a video that playing during the presentation???

    please help me... i spent hours and hours trying to figure it out!

    You can if fact add an "animation" to the sound file and video file. If you select a video (or sound) you can go to animate and under "Build In" you have: "Start Video/Sound" and under "Build Out" you have stop. If you have a sound that you would like to stop at the same time as you start your video you can tie those two "animations" together. Then you can decide if you want to click to stop the audio or if you want to stop it after a specific period of time.

  • How to stop auto play to next song?

    I was wondering if there is a pref or option that will prevent iTunes from playing the next song on the list so that once the selected song is finished, iTunes will NOT play the next song? Thanks in advance for your help!

    The only way I know of is to uncheck all the tracks. Tunes will skip unchecked tracks, so if they're all unchecked, iTunes will play one and then stop. To uncheck all the tracks, control-click on any checkbox and it will select or unselect them all.

  • How to stop auto play on importing audio/video

    I am so sorry to post this question. I've seen it many times around on internet, but it is driving me ABSOLUTELY MAD. After importing audio/video on iTunes (plus copy into iTunesLibrary), the file automatically starts playing. It is annoying me more and more, I can not seem to turn the function off. iTunes seems to be defaulted nowadays to start autoplay after importing music or video into iTunes~?
    Please someone, where can I turn this function off????????????
    thanx for your help. But honestly, with iTunes I don't expect there is a solution. I hope there will be good software available in future OS-versions.
    Rudi

    Hey tt2 and Chris!
    Uhm...you both talk aout the actual folder 'automatic add to iTunes'? So, have to look that up tomorrowmorning. It is an actual folder in my iTunes media folder???
    I don't get it. I thought by checking the box in preferences (automatically add to iTunes) that it makes a copy of the file that I wanted to add and place it in my iTunes library. Then I throw away the original which I dragged into iTunes.
    So, i understand that is not the way to add files?
    But dragging into the folder 'automatically add to iTunes', does that mean that there are more than one copies of a file after adding?  Meaning...one in the 'automatically add to-folder' AND in the library? I only need one file....otherwise I wind up with several duplicates. Just one in iTunes library will do fine for me. There is backup elsewhere for files i need to keep....
    But anyway...thanx for the tip.  Will try this tomorrow, search for the automatically add to-folder and let you know!
    Rudi

  • How to stop audio play in background ie toyota

    toyota ad runs in background annoying
    This question was solved.
    View Solution.

    Hello @1willow,
    Based on this post and your other post I suspect you need to backup and recover your computer back to factory. To backup your personal information and ensure that it is not lost I would like you to review and follow the steps set out in the HP Support document: Backing Up Your Files (Windows 8), which will ensure your personal files are up to date.
    ***WARNING!! If you want to keep any emails or bookmarks/favorites you will want to back those up as well as I do not believe they are backed up in the HP Backup process.
    Next, I would like you to review and follow the steps set out in the HP Support document: Performing an HP System Recovery (Windows 8), which will you through recovering your computer back to factory settings.
    *** IMPORTANT - Your personal files such as libraries, personalization settings, user accounts, and desktop themes are permanently removed. As well the computer settings are returned to the defaults (the way it was when it came from the factory). All apps and software that were installed on the computer when it came from the factory are reinstalled, and their settings are reset to the defaults. Additionally, software, apps, programs, and everything that you have installed or saved on the computer are permanently removed.
    If the above steps did not resolve your issue please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    I would like to thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Flash Pro, How can preview sound with the vidio on embedded video on the timeline

    I am using a windows 7 based machine Flash Pro CC.  I embedded the video on the timeline, basically a person talking. Want to put pictures in and out during certain times of the discussion but when I press play on the preview these is no sound.  When I test publish the project I get sound.  How do I get the sound on the embedded video to play on the preview?

    Make sure that you have the latest version of > Safari 4.1 for Tiger
    Then check and update your >  Adobe - Flash Player

  • I used to have sound play back when I made videos now I get no sound why

    When I record videos it usually gives me sound, but now it's not. There's no sound at all.

    Have you checked to make sure your volume is all the way up, ringer is not muted, and that the side switch is also not muted (RED)?

  • How to export the media player for imported .flv video to stage ?

    Hi,
    I wonder if I can export the media player ( to the .SWF) without making my own using action script and buttons ....
    When I hit Ctrl/Enter I get a very good player along with video but when I export the player is gone (only video is there).
    There must be a setting for this I hope ?
    I'm using flash / xml too for thsi web site.
    thanks!

    resize both the Stage and the FLV component to the
    appropriate size.

  • Stop sound timeline

    Hi all
    Im very new to flash so please bare with me. Basically im trying to stop sound playing from a timeline. My little swf plays and has music playing from a separate layer. and when i mouse down on it i have action script 3 that jumps to a dif frame and starts playing a new anim and sound layer. but the previous sound layer keeps playing to the end. Is there anyway to stop the sound layer playing at the same time that i jump to a new frame?
    thanks for the help
    g

    SoundMixer.stopAll() will stop all the sounds that are currently playing.

Maybe you are looking for