How to pause, stop, play a sound that is loaded from the other .swf file?

Pause and Resume external SWF sound files
I have this code that plays the sound through linkage. It reside in scene1.fla -> scene1.swf.
var mc:MovieClip = this.createEmptyMovieClip("mc",1);
var myLoop:Sound = new Sound(mc);
myLoop.attachSound("bg_sound");
myLoopVolume=0;
myLoop.setVolume(myLoopVolume);
mc.onEnterFrame = function () {
    if (fadeIn01==1) {
        _root.myLoop.setVolume(myLoopVolume);
        myLoopVolume=myLoopVolume+5;
        if (myLoopVolume>50) {
            fadeIn01=0;  
    if (fadeOut01==1) {
        myLoop.setVolume(myLoopVolume);
        myLoopVolume=myLoopVolume-1;
        if (myLoopVolume<5) {
            _root.myLoop.setVolume(10);
           // _root.myLoop.stop("myLoop01");
            fadeOut01=0;
fadeIn01=1;
myLoop.start(0,999);
The problem goes like this. I want to pause the sound from playing in scene1.fla -> scene1.swf in anytime I want, through my main.fla -> main.swf that loads the scene1 movie. I got stuck.

you need to use the path from the timeline that contains the controlling code and myLoop.  you can always use trace(this) on both timelines (the one containing the controlling code and the one containing myLoop) to determine the correct path.

Similar Messages

  • How do I stop my MacBook removing all my icons from the desktop ?

    How do I stop my MacBook removing all my icons from the desktop ?

    Hi Matt
    After I create say a word document, file it on my desktop and then shut down my machine. The next time I open up the MacBook the file icon has been removed from the desktop. I can still retrieve the file in a folder labeled with the month I created it. But why has the OS removed it from the desktop and how can I stop it happening?
    It happens to alias icons as well!
    Regards

  • How do I re-download a song that i hid from the cloud?

    So here's the story:
    My wife downloaded some songs from the store directly to her iphone 5, and while they played on our pc just fine, they wouldnt play on her phone. To try and remedy this, I deleted the songs from itunes library, sync'd her phone to remove them from her phones library, then re-downloaded direct to her phone. This worked, except for one, and here's why:
    For this one song, I selected "hide from the cloud" when deleting, not knowing the trouble it would cause. When I went to re-download, it doesnt show up in the previous purchases tab. In itunes, it says all purchased songs have been downloaded. When I go to that song in the store to re-buy, it says it has been purchased, and will not let me re-download from there, nor will it let me re-buy it.
    This seems like an obvious and substantial glitch in the design. How do I remedy this situation?

    You will need to unhide it first : hiding and unhiding.
    If you want to do it directly on the phone then on iOS 6 unhiding doesn't work properly - you should be able to see what is hidden and re-download them from that 'hidden' screen, but you can't unhide them so that they re-show in the Purchased tab.

  • How to secure a PL/SQL procedure that is called from the web browser

    If you have ever seen the sample document management application, and tried to download a file that was stored in the system, you are probably familiar with the apex_util.count_click URL that is used to download the file. If you copy that URL and paste it into a new browser, you will not be prompted to login to download the requested file. I'm using SSO with Apex as a partner application. How can I secure a pl/sql procedure like this to redirect to the login page before beginning the download?
    Thanks,
    Kris

    You can use the second method described here:
    http://apex.oracle.com/pls/otn/f?p=31517:15
    You would use an application process instead of pasting the procedure call in the browser. In the case I describe, you don't need to grant execute to public on the download procedure.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • TS3899 How can i delete 3564 old emails that have come from the server on setting up my iphone in 1 easy move

    How do I delete 3654 old  emails that have been delivered when I started the new iphone?

    Log onto the server through your email providers web interface and delete them there.

  • How do I uninstall a software program that i loaded from a cd?

    I installed a software program from a cd via external cd drive and now i want to uninstall this software. how do i do this??

    http://guides.macrumors.com/Uninstalling_Applications_in_Mac_OS_X

  • How do i find music on iphone that is not from the cloud

    The list of songs on my iphone is endless, but most of that music is still in the cloud.   Is there a way to get the phone to display only the music that is actually physically downloaded onto my phone already?  TIA

    It sounds like she may be using a different account then the one that was used to purchase 10.8
    If you cannot locate the purchase, contact the iTunes Store so they can help you figure out which account it's attached to.
    https://www.apple.com/support/itunes/contact/

  • How can I stop my iPhone 5 deleting e-mails from the server?

    I know this question has been asked before, and has been answered in respect of iPhone 4 models, but I don't seem to be able to find any answers for this problem with the iPhone 5.
    When I delete an e-mail from my iPhone, it means I can't access it from my laptop. It never appears on my laptop because it has been deleted altogether. That's not what I want! It means I have to keep e-mails I would otherwise delete from my iPhone simply because I want to read and/or retain them on my laptop.
    I only want to keep e-mails on my iPhone that I want on my iPhone and want to delete the rest, not altogether, but just from my iPhone. I often want to deal with an e-mail on my laptop even if I have deleted it from my iPhone. Hope that makes sense!
    Thanks for any help!

    That behavior is a function of the type of email service you are using which in your case must be IMAP. There is no way of changing that behavior on the iPhone. Perhaps you should investigate switching to a POP-type email service.
    There would be no difference between the iPone 4 and iPhone 5 in this respect.

  • How to live stream vp6 from a browser/swf file.

    Hello,
    Currently we have a swf file application that runs in a browser and takes the live video stream from the camera on the computer and streams a live sorenson spark stream to the fms 3.5 server.
    Question is:
    How to live stream vp6 from the browser/swf file on the camera computer, instead of the sorenson spark. (We seem to be stuck only on sorenson spark).
    Thank you.

    Hi Vince,
    Jay has explained it about as best as can be done.  What you have now is a
    SWF that lives in a browser.  With Flix, you can eliminate the SWF
    altogether.  Or if there is logic that still will require the SWF, then both
    Flix and the SWF will live in the browser at the same time (and can talk via
    ExternalInterface).
    fyi .. When using Flix, if Flix does not eliminate the SWF altogether, you
    will remove from your SWF all logic for acquiring Camera and Microphone.  As
    Jay has reiterated, Flix Publisher will now be doing all that.
    If your SWF includes logic other than video/audio, e.g. maybe text chat,
    then you may need logic in your SSAS to associated the video from Flix with
    anything else from the SWF since each will have its own NetConnection to the
    FMIS application.
    In case it might help, following is On2's heavily commented JavaScript for
    invoking Flix Publisher:
    http://publisher.on2.com/fp_doc/3-1-5-5/samples/scripts/flixpub_conf.js
    And the full docs for the Flix SDK are here:
    http://publisher.on2.com/fp_doc/3-1-5-5/index.html
                    hth,
                    g

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • When i play back an mp3 dj mix i,ve burn,t to cd in my car when i turn the engine of and then restart the car the cd starts back from the beginning how do i solve this problem so that when i turn the engine on end off the cd plays from the same place

    when i play back an mp3 dj mix i,ve burn,t to cd in my car when i turn the engine of and then restart the car the cd starts back from the beginning how do i solve this problem so that when i turn the engine on end off the cd plays from the same place it did before i turned the engine off

    It could be that the CD player will only playback "Redbook" CD's from the previous position.
    And starts mp3 type CD's from the beginnig.
    However.. it's not Logic related.
    pancenter-

  • TS1424 I downloaded a song that I purchased from the ITunes store, but the song does not play properly.  How can I re-download the same song without having to purchase it a second time?

    I downloaded a song that I purchased from the ITunes store, but the song does not play properly.  How can I re-download the same song without having to purchase it a second time?

    I could not find an option to "report a problem".
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • How do i stop playing album snippets

    how do i stop playing album snippets from my library and play full songs?

    hello vyoumans,
    i found a couple different ways this can be done.
    1. this firefox addon, [https://addons.mozilla.org/en-US/firefox/addon/toggle-animated-gifs/ Toggle animated GIFs], seems to work pretty good. ctrl+m toggles the animations on and off.
    2. if you don't want to install an addon, you can go to your browser configuration file. type ''about:config'' in the address bar and find the entry ''image.animation_mode''. double click it and set its value to ''none''. this should disable all GIF animations

  • Apple TV stops playing certain songs that it would play previously

    This is getting really frustrating! I have certain songs which I can play then eventually it will stop playing them. I can still see the album artwork song etc. But when the song is selected in shuffle or I manually select them it just sits there and won't play. I have reset twice and after each reset the songs will play again but eventually days later stop playing for some unknown reason! I just got this before Christmas and it was fine until either New Years or the latest version of the software came out. I am getting tired of resetting and starting over! I have 2 apple TV's and I am ready to take them both back because they both do the same thing!

    Same happens here after I have upgraded to the latest Apple TV software version 4.1.1. Didn´t have that problem before.
    The MP3´s play flawlessly on my iPhone 4 and on the mediathek/iTunes of my Macbook Pro 17.
    Further my remote app on the iPhone 4 is now extremely unresponsible with apple tv.
    Was much better before the "Upgrade".
    I use OSX 10.6.6 all updates are applied everything else smooth and easy.
    Seems this was a downgrade instead of an upgrade.
    Greetings from Munich
    Stefan

  • My iphone wont play certain songs that i bought from itunes on my phone, it just skips songs.  Does anyone know how to fix this?

    My iphone wont play certain songs that i bought from itunes on my phone, it just skips songs.  Does anyone know how to fix this?

    So i fixed it by converting each song to a AAC File or whatever. Made a dulicate song but it works, just right click on the song and hit convert to aACC File.  For one album I had to right click view in apple store and hit download on the songs that were skipping.

Maybe you are looking for

  • Error in Account determination in VF02

    Hi Guys, I've a problem related to Billing Doc. I'm trying to save a doc in VF02, but its giving error "Document Saved (error in Account determination). Can someone help on this?

  • TM Drive not seen for "Browse"

    I restored my home folder from a TM backup. Worked fine. I now want to continue with Time Machine but TM doesn't see the drive as containing backups! I just restored from it! It does see the drive if I want to start over but if I choose "Choose Time

  • About database

    hi, can anyone tell me how to link director to any database like mysql, ms sql, oracle and so on?? and how to link the data also? i can't find much sample thank you for spending time in this post..

  • Something's wrong when I sync

    I have an 8g ipod touch (2nd gen). Lately syncing it is taking FOREVER. For some reason, it is copying over about 550 of the songs that are on the ipod whenever I hook it up to my computer (even though they're already on the ipod). When you look at t

  • GUI Basic help

    Hi, I need help doing the following: I need to open a GUI using swing, and in it I want a button on top, and a text screen that is around 6 inches by 6 inches.. basically what i want to do is that every time i press the button the text area refreshes