Stop sound From external SWF

Here is my issue. I have a main.swf and I load an external
music player.swf. I need to stop the sound from the player.swf when
I push a button on the main.swf. Not all buttons just some buttons.
I now I will need to put the code in each button. Thanks

it works for all sounds that are playing when it executes no
matter where they orignated.

Similar Messages

  • Sound from External swf

    I have a main movie (index.swf) that preloads my external SWF
    that is a menu button 4.swf
    My index.swf has background music (song1) that plays on load.
    I also have background music (song2) that plays on my 4.swf
    It works fine when I test 4.swf directly however when I load
    my main index.swf I do not hear the song2.
    I used stopAllSounds(); in my4.swf to stop the background
    music (song1) and then load my song2
    stopAllSounds();
    my_sound = new Sound(sound_loop);
    my_sound.loadSound("4.mp3",true);
    my_sound.start(0,100);
    This has gotten me to get both songs to play when the site is
    loaded and when I click on my menu for 4 button all the sound stops
    and my song2 never plays.
    My actionscript is not very good so any details you can give
    would be greatly appreciated.
    Thanks much!

    here is frame 3 of my loader in index.fla
    var movie:MovieClip =
    _root.StoredActions.Holder.Movies.Holder2.CMovie.duplicateMovieClip("CMovie"
    + n,n);
    loadMovie(n+".swf",_root.StoredActions.Holder.Movies.Holder2["CMovie"+n]);
    if(n>1){
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n]._x =
    3000;
    var MovieLoaded = 0;
    percent = 0;
    frame4
    MovieLoaded =
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n].getBytesLoaded();
    loadTotal =
    _root.StoredActions.Holder.Movies.Holder2["CMovie"+n].getBytesTotal();
    percent = int(MovieLoaded/loadTotal*100);
    Bar.gotoAndStop(percent);
    loadingName = ("Loading... " + percent+ "%" + " of "+ n);
    Loadtext_txt.text = loadingName;
    if (loadTotal>10) {
    if (MovieLoaded>=loadTotal) {
    gotoAndPlay(6);
    frame6
    if (n < _root.StoredActions.nMenus) {
    n++;
    gotoAndPlay(3);
    } else {
    gotoAndStop("Stopload");
    _root.gotoAndPlay("Play");
    I know that the above code is loading all the external swf
    and causing the music to start after load. Is there a way to stop
    it from loading the sound?

  • How can I stop timeline sounds in external swf files from playing during loading?

    I am having a problem with timeline sounds in external swf files playing during loading in a main swf. Can anyone help me?
    Here is some of the code from the main swf. I hope I have included enough.
    Thanks.
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.URLRequest;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    preloader_mc.fill_mc.scaleX = 0;
    var swfA:Array = ["part1.swf","part2.swf"];
    var frameA:Array = [];
    var currentLoader:Loader;
    var swfTotalFrames:int;
    var tl:MovieClip = this;
    var st:SoundTransform = new SoundTransform()
    var index:int = 0;
    loadNextF();
    play_slider.enabled = false;
    function loadNextF():void{
                    tl["loader_"+index] = new Loader();
                    tl["loader_"+index].name = index.toString();
                    tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
                    tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
                    tl["loader_"+index].load(new URLRequest(swfA[index]));
    function progressF(e:ProgressEvent):void{
                    var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
                    preloader_mc.fill_mc.scaleX = fractionLoaded;
                    preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
    function completeF(e:Event):void{
                    tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
                    tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
                    SoundMixer.stopAll();
                    var mc:MovieClip = MovieClip(tl["loader_"+index].content);
                    mc.gotoAndStop(1);
                    frameA.push(mc.totalFrames);
                    index++;
                    if(index<swfA.length){
                                    loadNextF();
                    } else {
                                    // all loads complete.  start play.
                                    restart_mc.buttonMode = true;
                                    restart_mc.alpha = 1;
                                    tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
                                    tl.removeChild(preloader_mc);
                                    preloader_mc = null;
                                    play_slider.enabled = true;
                                    playpause_mc.alpha = 1;
                                    currentLoader = tl["loader_0"];
                                    tl.addChild(currentLoader);
                                    MovieClip(currentLoader.content).play();
                                    sliderParamsF();

    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.display.Loader;
    import flash.events.ProgressEvent;
    import flash.events.Event;
    import flash.net.URLRequest;
    import fl.events.SliderEvent;
    import flash.media.SoundTransform;
    preloader_mc.fill_mc.scaleX = 0;
    var swfA:Array = ["part1.swf","part2.swf"];
    var frameA:Array = [];
    var currentLoader:Loader;
    var swfTotalFrames:int;
    var tl:MovieClip = this;
    var st:SoundTransform = new SoundTransform()
    var index:int = 0;
    loadNextF();
    play_slider.enabled = false;
    function loadNextF():void{
        tl["loader_"+index] = new Loader();
        tl["loader_"+index].name = index.toString();
        tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
        tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
        tl["loader_"+index].load(new URLRequest(swfA[index]));
    function progressF(e:ProgressEvent):void{
        var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
        preloader_mc.fill_mc.scaleX = fractionLoaded;
        preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
    function completeF(e:Event):void{
        tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
        tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
        SoundMixer.stopAll();
        var mc:MovieClip = MovieClip(tl["loader_"+index].content);
        mc.gotoAndStop(1);
        frameA.push(mc.totalFrames);
        index++;
        if(index<swfA.length){
            loadNextF();
        } else {
            // all loads complete.  start play.
            restart_mc.buttonMode = true;
            restart_mc.alpha = 1;
            tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
            tl.removeChild(preloader_mc);
            preloader_mc = null;
            play_slider.enabled = true;
            playpause_mc.alpha = 1;
            currentLoader = tl["loader_0"];
            tl.addChild(currentLoader);
            MovieClip(currentLoader.content).play();
            sliderParamsF();
    ///////////////// start sliders /////////////////////////////////
    sound_slider.addEventListener(SliderEvent.CHANGE,soundSliderF);
    function soundSliderF(e:SliderEvent):void{
        st.volume = e.value/100;
        tl.soundTransform = st;
    play_slider.addEventListener(SliderEvent.CHANGE,playSliderF);
    play_slider.addEventListener(MouseEvent.MOUSE_DOWN,playSliderDownF);
    //play_slider.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
    function playSliderDownF(e:MouseEvent):void{
        tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
        stage.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
    function playSliderUpF(e:MouseEvent):void{
        tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
    function playSliderF(e:SliderEvent):void{
        SoundMixer.stopAll();
        var frameNum:int = Math.ceil(swfTotalFrames*e.value/100);
        var partialTotalFrames:int = 0;
        for(var i:int=0;i<frameA.length;i++){
            partialTotalFrames += frameA[i];
            if(partialTotalFrames>=frameNum){
                break;
        partialTotalFrames -= frameA[i];
        //trace(i,frameNum,frameNum-partialTotalFrames);
        if(currentLoader!=tl["loader_"+(i)]){
            tl.removeChild(currentLoader);
            MovieClip(currentLoader.content).stop();
            currentLoader = tl["loader_"+(i)];
            tl.addChild(currentLoader);
        if(playpause_mc.currentFrame==1){
            MovieClip(currentLoader.content).gotoAndPlay(frameNum-partialTotalFrames);
        } else {
            MovieClip(currentLoader.content).gotoAndStop(frameNum-partialTotalFrames);
    function sliderUpdateF(e:Event):void{
        var playedFrames:int = 0;
        for(var i:int=0;i<Number(currentLoader.name);i++){
            playedFrames += frameA[i];
        playedFrames += MovieClip(currentLoader.content).currentFrame;
        play_slider.value = Math.round(100*playedFrames/swfTotalFrames);
    function sliderParamsF():void{
        swfTotalFrames = 0;
        for(var i:int=0;i<swfA.length;i++){
            swfTotalFrames += MovieClip(tl["loader_"+i].content).totalFrames;
    ///////////////// end  sliders //////////////////////////////////
    ///////////////// start playpause restart ///////////////////////
    playpause_mc.addEventListener(MouseEvent.CLICK,playpauseF);
    playpause_mc.alpha = .2;
    restart_mc.addEventListener(MouseEvent.CLICK,restartF);
    restart_mc.buttonMode = false;
    restart_mc.alpha = .2;
    function playpauseF(e:MouseEvent):void{
        if(!e.currentTarget.toggle){
            MovieClip(currentLoader.content).stop();
            tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
            e.currentTarget.gotoAndStop(2);
        } else {
            MovieClip(currentLoader.content).play();
            tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
            e.currentTarget.gotoAndStop(1);
        e.currentTarget.toggle = !e.currentTarget.toggle;
    ///////////////// end playpause //////////////////////////////
    function playUpdateF(e:Event):void{
        sliderUpdateF(e);
        var playingFrame:int = MovieClip(currentLoader.content).currentFrame;
        if(playingFrame==frameA[Number(currentLoader.name)]){
            // next loader
            MovieClip(currentLoader.content).stop();
            SoundMixer.stopAll();
            MovieClip(currentLoader.content).mute();
            var nextIndex:int = Number(currentLoader.name)+1;
            if(nextIndex<swfA.length){
                tl.removeChild(currentLoader);
                currentLoader = tl["loader_"+nextIndex];
                tl.addChild(currentLoader);
                MovieClip(currentLoader.content).gotoAndPlay(1);
            } else {
                tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
                playpause_mc.gotoAndStop(2);
                playpause_mc.toggle = !playpause_mc.toggle;
                //playpause_mc.alpha = .2;
                // all swfs have completed play
    function restartF(e:MouseEvent):void{
        MovieClip(currentLoader.content).stop();
        tl.removeChild(currentLoader);
        SoundMixer.stopAll();
        MovieClip(currentLoader.content).mute();
        currentLoader = tl["loader_"+0];
        tl.addChild(currentLoader);
        if(playpause_mc.currentFrame==1){
            MovieClip(currentLoader.content).gotoAndPlay(1);
        } else {
            MovieClip(currentLoader.content).gotoAndStop(1);

  • I've been running Windows XP over bootcamp on an iMac for a few years now and I can't seem to get any sound from external devices into the machine. Any ideas?

    I've been running Windows XP over Bootcamp on iMac for a few years and I can't seem to get any sound from external devices into the machine. Any ideas?

    O.K. fgonoz98
    I would do 1 thing at a time:"now the micropohone is not working in facetime"
    Here is what you can check to get your mike working in facetime:
    1. Hold down option while you click on the speaker next to time a. date,
    under input Device see if your mic is marked. If not: ✔️
    2. Click the apple top left/System Prefs./click on the Sound speaker:
    under Input highlight microphone.
    3. When you have factime on go to video above scroll and see if your mic is marked ✔️
    If that does not get it to work there is more you can check:
    (Utilities/Audio, midi setup)
    For any other audio device you do this for input and output.
    If you get stock post back

  • Loading font from external *.swf

    So!
    I have 3 movies.
    1)Main movie - index.swf
    2)Movie with created & checked in linkadge "Export for
    runtime sharing" fonts in library - fonts.swf
    3)movie with text fields which need embeded fonts to work in
    a proper way. Fonts in the library checked in linkage as "import
    for runtime sharing" - content.swf
    What happens:
    I strike CTRL+ENTER and run movie index.swf.
    on the (for ex.) 10 frame it loads fonts.swf with
    movieClipLoader class..
    then in the same way on (for ex.) 100 frame, i load content
    swf
    BUT!!! before it starts loading process IT DOWNLOADS FONT.swf
    again
    SO HOW DO I PRELOAD fonts from external *.swf..
    maybe there is yhe way without using runtime sharing..
    but i've heard that loaded whith movieClipLoader movies don't
    adds objects from their library to main movie liblary...
    HOW DO I SOLVE THIS PROBLEM!

    can you give your erroe source code,and then i will give you the success code.
    in the function
    private function onLoadComplete(e:Event):void {}
    ApplicationDomain.currentDomain.getDefinition("com.scottgmorgan.ExternalMovie") ;
    use like this:
    var EMClass:Class=loader.contentLoaderInfo.applicationDomain.getDefinition("com.scottgmorgan.ExternalMovie") ;
    then you can new a instance :
    var emInstance:Object=new EMClass();
    emInstance.alert("hello word");
    and we also can use other method. so email me  [email protected]

  • How to stop vdbench from external applications? What are the impacts?

    I am using vdbench to test following scenario:
    1) Start vdbench - do read/write (I use poweshell start-process to start vdbench which returns me the process object )
    2) Poll for particualr system event(my test condtion). When the event happens stop read/write ASAP(To stop the process I use powershell Stop-process and pass process object as the argument. This actually stops IO as seen task manger)
    3) Continue testing
    I want to understand
    1) Are the steps followed correct?
    2) What is the correct method to stop vdbench from external application?
    Regards
    Jugari

    An other thought, that maybe is of interest to you, coming in the next version of Vdbench.
    A conversation with one of my internal users:
    It does not make sense to look at current Vdbench output trying to figure out what is happening when.
    This locks us in to tricks and guessing and prevents me from make changes to the output.
    Monday I will create a new file in Vdbench: status.html
    This file will only be there for any kind of wrappers to see what is going on.
    I'll make sure that the file contents are flushed to the file system as soon as a line of text has been written.
    * Vdbench status
    * The objective of this file is to contain easily parseable information about the current state of Vdbench.
    * This then can serve as an 'official' interface for any software monitoring Vdbench.
    * Each line of output will be immediately flushed to the file system, making its content accessible by any monitoring program.
    * The values below are all tab-delimited.
    03/25/2015-13:42:44-MDT Starting slaves
    03/25/2015-13:42:44-MDT Slaves connected
    03/25/2015-13:42:44-MDT Query host configuration started
    03/25/2015-13:42:44-MDT Query host configuration completed
    03/25/2015-13:42:46-MDT Starting rd=rd1 For loops: None
    03/25/2015-13:42:48-MDT Warmup done rd=rd1 For loops: None
    03/25/2015-13:42:51-MDT Workload done rd=rd1 For loops: None
    03/25/2015-13:42:51-MDT Slaves done rd=rd1 For loops: None
    03/25/2015-13:42:51-MDT Shutting down slaves
    03/25/2015-13:42:51-MDT Vdbench complete
    Henk.

  • Problem: I lost the option to get the sound from external speakers or headphones to upgrade to Lion 10.7.3. It accepts only internal speakers.  I downloaded  Combo directly. I followed all the advice from the Apple community

    Problem: I lost the option to get the sound from external speakers or headphones to upgrade to Lion 10.7.3. It accepts only internal speakers.  I downloaded  Combo directly , without using "Actualización de software". I followed all the advice from the Apple community.  Can I use bluetooth speakers to solve this problem?  My Computer: iMac. 20-inch, Early 2008. Processor 2.4 GHz Intel Core 2 Duo.

    You may need to reset PRAM/NVRAM.
    First, check that the jack is clean. Put some alcohol on a plug and insert it a few times. See if that helps.
    is your output both digital and analog? If digital, is the red laser light visible in the socket? Do not look directly into the socket when checking.
    If all else fails try a PRAM reset:
    Reset your computer’s PRAM
    A small amount of your computer’s memory, called “parameter random-access memory” or PRAM, stores certain settings in a location that Mac OS X can access quickly. The particular settings that are stored depend on your type of Mac and the types of devices connected to it. The settings include your designated startup disk, display resolution, speaker volume, and other information.
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Immediately press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Continue holding the keys down until the computer restarts, and you hear the startup sound for the second time.
    DO NOT HOLD These keys beyond the second startup sound!
    Release the keys.
    Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.

  • Stop another SWF movie (+ sounds) from another SWF

    Hiya there
    Thank you in advance for skim reading this and thinking if
    you can help!
    I've search and seen similar problems, but not the same.
    THE PROBLEM / CHALLENGE!
    I need a selection of simple SWF movie files with audio
    attached. They're basically audio buttons, scattered through a HTML
    page. At the moment they're set up with sound to 'stream' attached
    to a specific frame - then enough frames to cover the duration of
    the sound.
    - on press of button it skips to Frame2 where the button
    status changes and the sound plays
    - if during that playing process, the button is clicked
    again, then it jumps back to Frame1 and rests
    I've played with the StopAllSounds command, but that just
    stops the sounds on the other SWFs and doesn't stop (and revert)
    the other SWFs back to their Frame1's.
    Is this something i can solve with simple Action Script /
    Behaviours... or do i need to fiddle with the Javascript in the web
    page?
    Thank you in advance for any help
    cheers
    James

    "MrIzzard" <[email protected]> wrote in
    message news:e3l5nr$bdo$[email protected]..
    > But surely if the way i'm currently playing audio is
    from being attached into
    > the frames in the timeline (at the moment if i press a
    button to switch the
    > movie back to Frame 1, where there's no audio attached,
    the sound stops) - then
    > this would work for other frames too.
    > Does that make sense?
    If your swfs are on separate places on an html page (not one
    swf loaded by another swf) then you can use localConnection to
    communicate between swfs.
    There are some MX version 6 examples on my website where one
    swf controls one or more others..
    http://members.cox.net/4my2dogs/flash/
    You can have the receiving end stop sounds or move to a
    different frame etc.
    tralfaz

  • How to control timeline sound of external SWF

    Hi All,
    Basic Intro:
    I am new in Action Script and trying to create a video tutorial framwork. In this I have lots of animated SWF files in all the files I have multiple scenes as those are 5min. to 10 min. each and all the files have the relevent background and nurration voice place directly on the TIMELINE frame by frame to match lip syncing animated chreactors.
    My file structure :
    Login.swf with login box is embedded into the Index.html
    After logged in it will load another SWF which is Control panel.swf
    3. Controlpanel.swf has the controls to control the loaded external swf files i.e.: Chapter menu, Play, pause, replay, volume-bar, next and previous buttons.
    By Default Controlpanel.swf will open chapter1.swf as soon as user logged in so no one need to open 1st file.
    Here user can navigate to other chapter swf file through Chapter menu or Next and Previous buttons.
    All files are loading and playing properly, here I am trying to control the animation and Sound both at a same time with Pause, Play and Replay through relevant buttons.
    Problem:
    By pressing “Pause button” animation stops but not the sound. Sound remains playing, and if I replay the swf by “Replay button” than animation restarts but sound also restarts that overlaps already playing audio.
    Question: So could anybody help me finding out how to:
    1. Pause the sound with animation by the same click of Pause button, and
    2. Stop the sound with animation by the same click of Stop button, and
    3. On replay it should stop playing the previously running audio and restart it with the animation like fresh loaded file, it should not sound overlapping.
    Constraints:
    Here I am using the sound file on the same time line of each individual swf file which I cannot add into any single movie clip because all the chapter swf file are having multiple scenes in it.
    For my problem I have already done a lot of browsing online in various forums and didn't find the solution. So here I am sharing the complete information regarding the project and wishing to get some good solution out here but if I missed any helpful information please ask me anytime and please help me to quickly find out the solution.
    Thanks a lot to all of you in advance to help me.

    create one global sound variable
    you can write when you are pressing pause button
    globalsoundvariable.setVolume(0)
    to play
    globalsoundvariable.setVolume(100)

  • No sound from external speakers in win7 partition

    hi all,
    apologies if this is a common problem - but i couldn't find any info specific to it on the web.
    i installed windows 7 in 64bit w/ bootcamp on my macbook pro and so far everything has been going great .. other than that i can't get any sound out of my external speakers.
    i have the latest cirrus audio drivers and i also have the realtek drivers that were recommended. the built in speakers work fine but, as we know, they're not great.
    when i plug my external speakers in, for some reason, the control panel thinks that they are headphones. as far as i know there are no additional drivers required for the speakers. they are speedlink gravity nx 2.1 speakers if that's relevant.
    thanks in advance,
    nick

    Hi,
    Your speakers are active and require 1.77v peak to peak at the input to produce sound, that is less than headphones need so if your Windows installation sees them as headphones it will not stop them from producing sound, so:
    Get some headphones and plug them in, if there is no sound through them you can assume the port is outputting nothing.
    Have you installed the BootCamp drivers from the CD?

  • Macbook Pro recording sound from external radio

    Hi all,
    Wondering if anyone can give me some advice on how I can record an external digital radio with my Macbook Pro. As a backgrounder, I am able to do it on my old white Macbook because it has a line-in port, so I just connect a 3.5mm cable from the radio to the Macbook and then I have software (Audio Hijack Pro) to hijack and record it.
    However, as we all know, the new Macbook Pros have done away with the line-in port. And the Sound options in System Preferences don't seem to have a function allowing me to fiddle with the headphone port (apparently, earlier models had a function in System Preference that allowed you to turn the headphone port into line-in) but this new model doesn't have that option anywhere.
    So I'm wondering if anyone can tell me whether the USB ports or even Thunderbolt can RECEIVE sound from an external device such as a digital radio. I have seen cables that are 3.5mm to USB so I think getting the cable to connect the radio to the Mac is possible, but will it actually receive the sound or just do nothing? Or is there some other way I can record an external device I'm not thinking of, bearing in mind I don't want to use the Mac's microphone to do it, as I will of course get all other ambient sound in the room at the time, and I don't want to rely on an internet stream of said radio.
    Thanks,
    Joe

    u2hmtmkmkm wrote:
    What if it was a digital radio, would that make things easier by way of using just a 3.5mm to USB cable? Especially because a quick search of a USB Audio Interface brought up some expensive results.
    Also, as a possible alternative, after some extensive research online, I've found an iMic USB Audio Device by Griffin that is essentially an adaptor with a USB cable on one end and a Line In port on the other, thus allowing me to connect a 3.5mm to 3.5mm cable from the digital radio to the adapter, and then the adapter goes into the MBP USB port. It's on Amazon and it claims to function as a way to plug microphones and other external audio equipment to it. It seems pretty straightforward, which sometimes has me thinking it's too good to be true.
    The output from your radio is analog, regardless of whether the radio is 'digital' or not.
    You need a USB audio interface. The iMic is a USB audio interface.

  • Button from External SWF to Play Movie in Main SWF

    Hi Guys,
    Ok I'm working in Flash 8, Action Script 2;
    I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
    What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file.
    (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
    eg.
    thumbnail1_btn  needs to go to main swf and play movieclip1.mc, frame 1
    thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2
    I'm unsure of the code for this? Or if I've built this up wrong?
    If someone could help me out, that would be great!

    If you haven't set _lockroot on the loaded SWF, than a simple _root call from the loaded SWF will talk to the main SWF.
    IE:
    on(release){
    _root.gotoAndPlay(1);
    If you did set the lockroot, then call the level directly, via:
    on(release){
    _level0.gotoAndPlay(1);
    Once on the root level, you can access a movie clip as normal.
    So:
    on(release){
    _level0.movieClip1.gotoAndPlay(1);
    will call the movie clip "movieClip1" which resides on the timeline of _level0 (which is main.swf in your instance), and tell it to jump to the first frame and start playing.

  • Loading library movie symbol from external swf

    Hi, I have a Flex/Air Application and I want this application
    to load in an external SWF and display a particular asset from the
    SWF library (just like attachMovie in AS2). I dont want to embed
    the SWF into the Air application. For the life of me I can't find
    any tangible info on how to do this. My second problem is that the
    assets sit in an SWF published for AS2 (is that an issue?). All
    content resides locally.
    Can anyone help or point me in the right direction?

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • Can't Hear GM sounds from external Keyboard

    My system set up is a Mac Mini OS X 10.9.5   with 2.3 GHz intel Core i5 and 5 Gb of Memory . A Focusrite Saffire Pro 14 interface.
    I am using a M-Audio Keystation 61es connected via the USB to to the Mac,( and have done for the last 2 years ),
    when I was using it in Garageband it worked perfectly as a 'Plug-in & Go' keyboard and i could access and play both the GM sounds on board or the GB sound Library.
    Since Upgrading to Logic Pro I can only play Midi voices and loops from Logic, although it recognises the Model of keyboard and allocates the relevant channel, it also allows me to see the onboard menu of GM sounds, and registers in the volume of the track a signal coming through the relevant channel, so i know its communicating somewhere.
    But I can't hear ANY of the GM sounds from the Keystations on board library.
    Have looked at all the Midi Settings i can find in Logic and followed some paths suggested in the various Logic Manuals, but still no Noise !
    I am no Techno Head so please! if you know what it is that I am NOT doing , explain it the simplest way you can.
    Thanks in advance for any help that can solve this Problem
    MyKee.G

    As far as I can tell, the M-Audio Keystation 61es does not have any form of on board sound generation. So whatever you heard in Garageband was synthesized by GB. In the same way you'll have to set up a virtual instrument in Logic to generate the sound.
    Apart from that, it sounds like you are not really aware of the difference between Midi controller data and audio data, or at least the way they are routed. The midi controller has no way to send audio to logic through a midi connection. If it had on-board sounds, you'd have to route the audio explicitly to logic using an audio interface or in rare cases using audio over the USB connection that also does midi. In any case, you'd have to route the sound manually. The external instrument plugin in logic allows you to do that easily. But again, I don't think that applies to your situation.
    Cheers,
    Jazz

  • Screenshots from external swfs

    How can i draw a movieclip that contains an external swf onto
    a BitmapData variable?
    I'm loading the movieclip with:
    moviecontainer=_root.createEmptyMovieClip("moviecontainer",10);
    moviecontainer.loadMovie("pacman.swf",0);
    Then i initialise the BitmapData var with:
    var snap:BitmapData = new BitmapData(Math.floor(nwidth),
    Math.floor(nheight),false);
    When a button is pressed i try this:
    snap.draw(moviecontainer,new Matrix());
    I expected the BitmapData snap to contain a screenshot from
    the external swf pacman.swf, but it doesn't.
    Does anyone know what i'm doing wrong?

    Thanks! I was close to giving up, but this really works
    great.
    The code for the php script is:
    <?php
    $data=explode(",",$_POST["img"]);
    $im=imagecreatetruecolor(max(1,$_POST["iwidth"]),max(1,$_POST["iheight"]));
    imagefill($im,0,0,imagecolorallocate($im,255,255,255));
    $i=0;
    for($x=0;$x<$_POST["iwidth"];$x++){
    for($y=0;$y<$_POST["iheight"];$y++){
    $r=hexdec(substr($data[$i],0,2));
    $g=hexdec(substr($data[$i],2,2));
    $b=hexdec(substr($data[$i],4,2));
    $color=imagecolorallocate($im,$r,$g,$b);
    imagesetpixel($im,$x,$y,$color);
    $i++;
    imagepng($im);
    ?>
    i changed the code inside the two for-loops in the .fla to:
    tmp = snap.getPixel(a, b).toString(16);
    pixels.push(tmp);

Maybe you are looking for