FLVPlayer stop when redirecting to another frame. AS3

Hi
I am new in AS3, but now i have problem to stop plaing FLVPlayback.
In main time line i have first frame used for preloader and second for intro.
Frame 3 is first screen with videoand my MainMenu with buttons inside mc.
Now when I click on button it successfully redirect screen to next frame and load my page, but I still hear music from video.
I need to stop playing video when i redirect to frames 4, 5 ....28 where are pages frame by frame.
In MainMenu i use
import flash.events.MouseEvent;
import flash.display.MovieClip;
//menu Domov
function btnHome(event:MouseEvent):void
    (root as MovieClip).gotoAndPlay(4);
function btnOnas(event:MouseEvent):void
    (root as MovieClip).gotoAndPlay(5);
function btnBoard(event:MouseEvent):void
    (root as MovieClip).gotoAndPlay(6);
btnHome_btn.addEventListener (MouseEvent.CLICK, btnHome);
btnOnas_btn.addEventListener (MouseEvent.CLICK, btnOnas);
btnBoard_btn.addEventListener (MouseEvent.CLICK, btnBoard);
website have 24 pages than i don't copy next buttons.
sorry for my english.

First include the SoundMixer class:
import flash.media.SoundMixer;
Then to stop the sounds call the stopAll method:
SoundMixer.stopAll();

Similar Messages

  • When I nudge clips in Premiere CC they will "run over" other clips, how do I change this behavior so the clip will stop when it hits another clip?

    When I nudge clips in Premiere CC they will "run over" other clips, how do I change this behavior so the clip will stop when it hits another clip?

    Not sure what behavior you are exactly looking for, to move the clip and have it stop and the next clip in the direction of travel, drag the clip with the mouse with Snapping turned on in the timeline.
    MtD

  • I am always notified when redirecting to another page and I now want to disable that feature and how can I ALLOW all the time?

    I always get a warning notice that Firefox can "Allow" or "Don't Allow" the redirection to another page. I am now SICK of that feature and want to know how to turn it off, please.

    Try this instead:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. Select the backup volume from the left side list. Click on the Erase tab in the DU main window.
    3. Set the format type to Mac OS Extended (Journaled.)
    4. Click on the Erase button.
    You will need to reconfigure Time Machine preferences for the backup.
    FYI: Never remove Time Machine backup data except through the Time Machine application. If you aren't sure about using Time Machine then visit Pondini's Time Machine FAQ for help with all things related to Time Machine.

  • How to hide the URL when redirecting to another URL?

    Hello9 @ all,
    I want to write an application, which has some LinkToUrls, which redirect the User to BW-templates. When the user executes the LinkToUrls, he should redirect to the BW Templates, but must not see the URL in his browsers addressbar. He still should see the URL of the Web Dynpro Application. How could I solve this problem??
    Thank you in advance!!
    Mehmet

    Hello Maksim,
    I´ve tried this code inside a action of a LinktoAction but it does not work?
    public void onActionopenUrl(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionopenUrl(ServerEvent)
        String urlToTreeApp = wdContext.currentURLSElement().getKAP();
         final String formattedStr = "<HTML>" +"<HEAD>" +"</HEAD>" +"<FRAMESET ROWS="*" width="100%">" +"<FRAME SRC="" + "www.google.de" + "" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE FRAMEBORDER="0" BORDER="0" SCROLLING="NO">" +"</FRAMESET>" +"</HTML>";
         try {
              final IWDCachedWebResource resource = WDWebResource.getPublicCachedWebResource
                        formattedStr.getBytes("UTF-8"),
                        WDWebResourceType.HTML,
                        WDScopeType.CLIENTSESSION_SCOPE,
                        wdComponentAPI.getDeployableObjectPart(),
                        "FrameResource"
              try {
                   wdThis.wdGetWd_menueInterfaceViewController().wdFirePlugExit(resource.getAbsoluteURL());
              } catch (WDURLException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
         } catch (UnsupportedEncodingException e) {
              e.printStackTrace();
        //@@end

  • Send Response to another frame

    Hi...
    I am an HTML page contains two frames say A and B .
    Frame A contains some links that display the output in frame B. [Given the target of frame A as B ] .But some times depends on my request , i want to display the page in the paret frame instaed of frame B .
    Is there any way in JSP to redirect to another frame. Plz help....
    Thanx in advance
    ~ Suresh G

    [url http://forum.java.sun.com/thread.jspa?threadID=745944&messageID=4274494] This thread  should help.
    ram.

  • Dedirect to another frame in Servlet

    Hi...
    I am an HTML page contains two frames say A and B .
    Frame A contains some links that display the output in frame B. [Given the target of frame A as B ] .But some times depends on my request , i want to display the page in the paret frame instaed of frame B .
    Is there any way in Servlet to redirect to another frame. Plz help....
    Thanx in advance
    ~ Suresh G

    Give TARGET="_parent"
    Dynamically you can change the target attribute of the form
    based on the request.
    Message was edited by:
    CjavaVM

  • When I click on a link in an email I get the following message at the top of the screen: "Firefox prevented this page from automatically redirecting to another page...[Allow]. How can I stop this?

    When I click on a link in an email using gmail in the Mozilla brower, I get the following message at the top of the screen:
    "Firefox prevented this page from automatically redirecting to another page...[Allow].
    How can I stop this?

    # Press Alt+T
    # Select Options
    # Select Advanced Panel
    # Select General Tab
    # You will see option "Warn me when websites try to redirect or reload page"
    # Uncheck it as given in the screenshot.
    <img src=http://dl.dropbox.com/u/7456129/Firefox/advancedgeneraltab.jpg width=600px height=600px>
    ''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.''

  • Spinning a wheel, randomly stops and then takes you to another frame.

    I would like to be able to spin a wheel in flash, this wheel has 8 sections to it split up equally, it spins for a random amount of time, 3 - 7 seconds and then stops. the section which lands on the marker is the result and will take you to a specific frame. Also i would like it when it stops to gradually slow down however this is not vital.
    this code works for just rotating a wheel but i want to know how to randomly stop it and how to take it to another frame.
    onClipEvent (enterFrame){
    this.ang=ang+0.01;
    _alpha=190*Math.sin(this.ang)+190;
    _rotation++;
    _xscale=260*Math.sin(this.ang)+1900;
    i do not know a lot of coding, so do not use complicated words and if you could post how to do this it would help alot.
    thanks

    import mx.transitions.Tween;
    var obj:Object = {};
    start_mc.onRelease=spinF;
    function spinF(){
    obj.x = wheel_mc._rotation;
    var myTween:Tween = new Tween(obj, "x", mx.transitions.easing.Strong.easeInOut,0, Math.random()*360*5, 3+Math.floor(Math.random()*5), true);
    myTween.onMotionChanged = function() {
        wheel_mc._rotation = obj.x
    myTween.onMotionFinished=function(){
    yourmovieclip.gotoAndStop("yourframelabelornumber");
    p.s.  please mark helpful/correct answers.

  • How can redirect the errorPage to another frame?

    Please advise, I have been sticking to this problem for a whole day and still can't solve it. :-(
    What I basically want to do is to redirect the errorPage to another frame, say, the main frame.
    My application has 2 frames, the main frame is a search page, the left frame is a tree which is written by JavaScript and it is a hidden frame. The form code of the search page in the main frame is like that:
    <form name="form1" method="post" action="FindAgent.jsp" target="leftFrame">
    when the submit button is clicked, it will invoke the FindAgent.jsp which will update the tree and also has codes to catch any exception if there is. The problem is that when exceptions occur, the errorPage will be shown in the leftFrame which is hidden frame so it doesn't show anything. So how can I make the errorPage displayed in the _TOP window?
    I would not mind to have the errorPage displayed in the mainFrame by changing the target to "_SELF" or doesn't specify the target attribute at all in the search page. But anyother problem arose by doing that is that the search page will go away and try to display the FindAgent.jsp which doesn't have any appearance code after submitting. So how can I keep the current search page still but the submit() has been called actually, i.e. submit the form without redirecting the current search page.
    Any suggestions? Thanks in advance!

    Here's an idea. Have your error page (in the hidden frame), look something like this:
    <%
      String strErrorMessage = ... // get your error message text here
    %>
    <html>
    <head>
      <script language="JavaScript">
        parent.mainframe.location = "ErrorPage.jsp";
      </script>
    </head>
    </html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
    I hope that gives you some ideas!
    Michael

  • Stopping audio and starting another audio when button clicked

    Hello,
    I have a multiple slide document, and I want sound to stop
    when they click the "Next" button, and another audio clip to start.
    Here is what I have so far:
    //audio
    x = new Sound();
    x.attachSound("Slide1");
    x.start(0, 0);
    musicplay = true;
    forward_btn.onRelease = function() {
    gotoAndStop("2");
    numbering eq numbering++;
    So I just want it to play audio clip "Slide2" when they click
    forward_btn, and I want "Slide1" to stop.
    Thanks!

    Attach your second sound file to the frame that will play the
    second sound. Then try adding stopAllSounds() before the
    gotoAndStop("2"); to get the first sound to stop playing and then
    play the second sound.

  • Tab closes with no error msg when I click on "Allow". Msg: Firefox prevented this page from automatically redirecting to another page. I had to uncheck the Advance/General/Accessibility option for it to work. Why?

    Msg: Firefox prevented this page from automatically redirecting to another page. When I click on "Allow", The 2nd tab closes with no error msg This was Home Depot redirecting to CitiGroup.
    When I unchecked the Advance/General/Accessibility option to be notified of a "redirect" then things worked.
    Why did clicking on "Allow" not work?
    I posted step by step detail in the Trouble Shooting box below.

    Thank you for your answer. It does stop the redirection notices, but now I have no idea if potentially unsafe sites are redirecting me. I cannot figure out why it has only recently started to happen on my home page though, when nothing has changed on there and I've had it set to show redirections, ever since I set up Firefox.
    I guess I'll just have to make the decision as to whether I want to risk redirections or put up with the semi permanent notice.
    Thanks again mha007

  • How to define target window when redirecting within frames using servlet?

    Howdy:
    Is there a way to define target window when redirecting within frames using servlets?
    How to do it in JSP as well?
    T.I.A.
    Oriental Spirit

    Your servlet (or JSP) can't decide where it is going to be displayed. The browser has already decided that when it makes the request to your servlet.

  • Stop firefox from pausing a tab when going to another tab or window

    I am running firefox v5.0 and I have noticed that ever since v4 when I open another tab, the other tabs are paused and when I have an upload (ie: a video to youtube) going in another tab and I want to browse the internet using a new tab/window, it is stopped. I tried looking through about:config but I couldnt find any thing to disable firefox from pausing tabs.

    I uninstalled Viewpoint Media Player, which fixed my problem with the plugincheck tab always opening. Viewpoint Media Player is responsible for the plugin called "MetaStream 3 Plugin r4", and I believe this plugin is triggering Firefox to open the plugincheck page. It is not enough to disable the plugin, it must be uninstalled.
    Since it seems you don't have the "MetaStream 3 Plugin", it may be that some other plugin is causing the plugincheck tab to pop open. Try going to Tools (menu) -> Add-ons -> Plugins. Look through the list of plugins, and see if any of them have a red warning icon next to them. If one of the plugins has a red warning icon, it may be the plugin responsible for triggering the opening of the tab. Try uninstalling that plugin, or updating it to a newer version.

  • How can I eliminate the toolbar that comes up every time I swith websights and says Firefox prevented this page from automatically redirecting to another page and when nothing comes up I have to hit ALLOW and most of the time it screws me up

    I am running OS10 on a MAC and every time I go too another web site (most of the time) a new tool bar pops up that says " Firefox prevented this page from automatically redirecting to another page" and on the other end I must hit the button ALLOW because it is usually screwing me up and Iwant to disable it or use another browser

    Options > Advanced > General, un-check "Warn me when web sites try to redirect or reload the page"
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Flash html5 - How can i make an internal movie clip slow down and stop when it get to a certain frame?

    I am creating an automotive braking system using flash and have a wheel turning. I want the wheel to slow down and stop after the brake pedal is pushed at a certain frame. I know I could do this with frame by frame animation but was hoping there was a short cut - javascript?? If not the slowing down portion then is there code for just making the internal movie clip (wheel turning) to stop when it gets to a frame.? Thanks

    you can use the ticker class to create a loop that you use to control the wheel's rotation or frame, TweenJS v0.6.0 API Documentation : Ticker

Maybe you are looking for

  • Skype video crashes my GPU driver and causes blue screen.

    Hello, Installed a new copy of windows and got the latest version of skype for my PC (on wich skype worked just fine, video calls, voice calls, but it was an older version. No hardware changes) With the new skype, I , for the least, get driver crashe

  • Mobile Accounts not copying home folders to local machine

    Having recently upgraded my MacBook to 10.5 (and having a 10.5 server) I have noticed an error with mobile accounts. My account has not synced for a couple of weeks and I have checked all the directory settings and cannot see any errors. I've removed

  • Adding cost center in RABEST_ALV01 from ANLZ node - ADA Logical database

    Hi, I am trying to display cost center in output list of RABEST_ALV01 ALV report (Copied it to ZRABEST_ALV01). I was able to include fields which are there in ANLAB and ANLAV in FIAA_SALVTAB_RABEST structure - CI_REPRABEST inlcude. And have included

  • File Processing Suggestion

    Hi, My source system will create a file ULYY.dat and start appending the same file within seconds. XI needs to poll the files every minute . The design strategy is that the source system will append the records if it finds the file else it will creat

  • Some basic development queries...please throw some light

    Hi All, I have certain queries regarding the following iPhone SDK support in 3rd party app: 1) Can capture snapshot while showing the Live Video in my application? 2) Can programatically enable/disable the audio? 3) Can iPhone library be accessed pro