Non-repeating movie clip

On the stage of a flash app I  have several movieclips that keep repeating. Now I need a movieclip  that doesn't repeat. It should play once, and then keep its last state  on stage. I can't find out how to stop this movieclip from repeating.

put a
stop();
on its last frame.

Similar Messages

  • Problem with non loading movie clips in CS3

    Hi.
    I am making an animation ( Trailer for an upcoming handheld
    game i am working on ).
    And i have encountered a problem when i play back the
    animation with Flash player.
    There is two movie clips in the animation ( Normal vector
    drawing but with effects applied on it ( color adjustment , and
    blur ) ) and when i play the published swf back with flash player
    the two movie clips are in their normal Vector mode ( without the
    filters ) until the middle of the animation when they finally
    "load" , the filters finally have an effect on the two vector
    drawings.
    i use a very high end computer so that couldn't be it.
    And when i am going to upload the flash film there's going to
    be a loading screen ... i have no clue if it's going to fix this.
    But for now this is really odd and looks really awkward.
    If this problem persist i will not make the deadline. please
    help fast.
    Thanks everybody.
    -Jimmy Gonzo
    EDIT: oh and i also noticed that when the stuff isn't loaded
    yet... the animation goes too fast.

    It seems to me that you need to put a preloader in the first
    frame of your whole .fla. It seems that all your assets are not
    being loaded before the .swf playhead moves forward.
    A simple preloader could be something like:
    frame 1 label this as "preloader"
    frame 2 (insert the following commands)
    if (this._framesloaded >= this._totalframes) {
    this.gotoAndPlay("init");
    }else{
    this.gotoAndPlay("preloader");
    }

  • How to join HD and non HD movie clips?

    I have tried several ways to insert this non HD clip into an HD clip. I have also tried converting  both into the same type of file.
    It always looks like it worked but when I play the completed movie it always freezes up before it reaches the part that was inserted.
    Has anyone else had this problem. I am using the latest version of IMovie and OSX 10.9.2

    Hi
    Nor .mov or Mpeg are Video-Codecs - they are (as far as I know) Containers (sort of folders) as can hold Codecs that works - or not.
    Open them in QuickTime-player (can open many more than iMovie/iDVD can use)
    then open Inspector - cmd+I
    Read
    Video format (Codec): nnnnnnnnnnnn
    Frames per second: YY.yy
    What does it say - (for each and every video clip to be used) ?
    Yours Bengt W

  • Saving A Movie Clip for Later Use in PowerPoint Presentation

    Does anyone know how I can save a non-copyright movie clip coming down the line and played on AOL so I can then insert it in a Mac PowerPoint presentation? When I try to download now, save and replay it, I can’t view it unless I go back to AOL, which will no be available at my presentation sight. Any help would be appreciated.
    Bruce
    [email protected]

    When I try to download now, save and replay it, I can’t view it unless I go back to AOL, which will no be available at my presentation sight.
    Sounds like it is either a "reference" movie or RTSP streamed movie. You may be able to access the former by loading the URL directly to the QT Player and saving it if you have QT Pro (or you may not). In either case, a screen capture application like Snapz Pro X could be used to capture anything displayed on your monitor.

  • Flash CS4- Movie clips suddenly invisible on stage? (Same file OK on other comps/CS5)

    Flash CS4 had been working regularly on my Macbook Pro (Intel - Tiger) for a while, and then suddenly, I opened a file and all the movie clips went from being visible "stills" to invisible and represented only by an "o". I have tried settings, preferences, even uninstall/reinstall, but somehow my settings or something got messed up and I can't view movie clips on the stage.
    I have tried a variety of different .fla files and none allow movie clips to be visible on the stage.The files were created in CS4.
    This is true for movie clips that have 1 frame to many frames.
    When I Publish or Test Movie, the clip is visible and normal, but it is impossible to edit the file without being able to see the movie clips.
    I know that the issue is with my installation of Flash/settings being messed up, not with the file(s) because when opened on other computers (CS4 and CS5), movie clips are visible on the stage, as they should be.
    Example below: In Flash CS4, the stage just has "o"s where I used to be able to see my movie clip, but in the Test Movie, everything is there. To be clear, I could see the movie clips in this exact file, and then the next time I opened it I could no longer see them.
    I am hoping there is an obvious solution that I have overlooked. Help is appreciated in designer-friendly (non-developer) terms.
    Thank you!

    Hi,
    Can you please try a few things for me? This will help us narrow down the issue.
    Test 1: Switch from ActionScript 3.0 to ActionScript 2.0.
    1. Open up the file where you see the "o" instead of your movieclips.
    2. Go to File > Publish Settings.
    3. Switch player target to ActionScript 2.0.
    ** Did your movieclips reappear or is it still showing "o"?
    Test 2: Delete user configuration folder and recreate preferences files.
    1. Quit Flash if it is running.
    2. Delete the following 6 files:
    Volume/Users/<username>/Library/Application Support/Adobe/FlashCS4
    /Users/<username>/Library/Preferences/Flash CS4 Preferences           
    /Users/<username>/Library/Preferences/Flash 10 MRU           
    /Users/<username>/Library/Preferences/com.adobe.flsh-10.0.plist           
    /User/<username>/Library/Application Support/Adobe/Flash CS4/           
    /Library/Application Support/Macromedia/FlashAuthor.cfg
    3. Relaunch Flash and these files will be recreated.
    ** Did this solve your issue?
    Please let me know. Thanks!
    Quynh
    Flash Authoring, QA

  • I would like a movie clip to play repeat itself everytime a button is pressed

    Hello,
    I am new to actionscripting but not Flash, I am using Flash
    MX 2004 for a college project at the moment. I have created an
    interface which features four buttons, each button activates a
    different movie clip. This works fine but only on the first time to
    press the button if you press the button again the movie clip does
    not play again, I would like the movie clip to play EVERY time the
    button is pressed. Here is the script that I have created in a
    seperate layer called actions, if that helps:
    ellaimage._visible = false
    Betaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    boxmovie._visible = false
    Betabox._visible = false
    textboxmc._visible = false
    Yakuzabox1._visible = false
    Pornobox1._visible = false
    pellabutton.onRelease = function () {
    stop ();
    Betaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Betabox._visible = false
    Pornobox1._visible = false
    Yakuzabox1._visible = false
    boxmovie._visible = true
    textboxmc._visible = true
    Pellaimage._visible = true;
    Pellaimage.gotoAndplay(1)}
    Betabutton.onRelease = function () {
    stop ();
    Pellaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Yakuzabox1._visible = false
    Pornobox1._visible = false
    Betaimage._visible = true
    Betabox._visible = true
    boxmovie._visible = true
    Betaimage.gotoAndplay (1) }
    Yakuzabutton.onRelease = function () {
    stop ();
    Pellaimage._visible = false
    Betaimage._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Pornobox1._visible = false
    Betabox._visible = false
    Yakuzabox1._visible = true
    boxmovie._visible = true
    Yakuzapic._visible = true
    Yakuzapic.gotoAndplay (1) }
    Pornobutton.onRelease = function () {
    stop ();
    Pellaimage._visible = false
    Yakuzapic._visible = false
    Betaimage._visible = false
    textboxmc._visible = false
    Betabox._visible = false
    Pornobox1._visible = true
    Yakuzabox1._visible = false
    Pornopic._visible = true
    boxmovie._visible = true
    Pornopic.gotoAndplay (1) }
    // this command stops the timeline
    stop ();
    Any help would be great.
    Thanks in advance

    No that doesn't work, that isn't what I want to to be
    repeated.
    In the below script I want textboxmc (which is a movie clip)
    to restart and play again everytime pellabutton is released.
    pellabutton.onRelease = function () {
    stop ();
    Betaimage._visible = false
    Yakuzapic._visible = false
    Pornopic._visible = false
    textboxmc._visible = false
    Betabox._visible = false
    Pornobox1._visible = false
    Yakuzabox1._visible = false
    boxmovie._visible = true
    textboxmc._visible = true
    Pellaimage._visible = true;
    Pellaimage.gotoAndplay(1)}
    Please can anyone help?

  • Non-linear navigation with movie clips

    I am gradually learning Flash and am able to play a 56 frame movie clip in frame 5 using stop(); on the main level. What I don't know is how to move onto frame 6 on the main level once the clip is finished.
    Thank you for any guidance.

    In the last frame of your 56 frame movieclip you can add something like...
    MovieClip(parent).gotoAndStop(11);
    or if the intention is to play thru starting at frame 11...
    MovieClip(parent).gotoAndPlay(11);
    or
    MovieClip(parent).play();
    (I'm assuming you changed from a frame 5/6 discussion, to a frame 10/11 discussion)

  • OnRollOver sound in a movie clip object

    Scenario: I have a  frame with a quiz question and three answer options. The three answer options are movie clips. Their instance names are q1_soundA, q1_soundB, and q1_soundC. I want each option to make a different sound when rolling over them. My sounds are already in the library and they have been linked: each one has a unique identifier (a, b, and c) and "Export for ActionScript" and "Export in first frame" are checked. Under frame properties, sound is none, sync is event, and repeat is 1.
    I have a separate layer with the following code in the first frame (the quiz question is in the second frame):
    var snd_a = new Sound();
    snd_a.attachSound("a");
    var snd_b = new Sound();
    snd_b.attachSound("b");
    var snd_c = new Sound();
    snd_c.attachSound("c");
    gotoAndStop("q1"); // Go to the first question
    // Sounds to be played as options in each question
    q1_soundA.onRollOver = function () { snd_a.start(0,1); }
    q1_soundB.onRollOver = function () { snd_b.start(0,1); }
    q1_soundC.onRollOver = function () { snd_c.start(0,1); }
    q1_soundA.onRollOut = function () { snd_a.stop(); }
    q1_soundB.onRollOut = function () { snd_b.stop(); }
    q1_soundC.onRollOut = function () { snd_c.stop(); }
    Note: I also have three transparent buttons underneath each movie clip. I am using these buttons and some code to record the answers and calculate a score. This part is working fine though.
    Problem: As soon as the quiz question frame is displayed, the first sound is played over and over again even if the cursor is not even close to any of the option answers. It doesn't matter where I move or click, the sound keeps playing all the time. I am new to ActionScript, so I'm not sure if I'm missing something somewhere. There is no code in any other frame or object.
    Thanks in advance for your help.

    Update: I found one "Over" frame event  in one of the answer options which was playing the sound. I got rid of it and now my onRollOver code is doing nothing. The code stays the same as above.

  • Scrubbing Movie Clip Fills Memory, Crashes Flash

    Hello,
    We have a Flex 4/Actionscript 3 application that involves "scrubbing" through a Movie Clip that is a swf file derived from a .mov file.  This is accomplished by listenening to the change in value of an HSlider and calling gotoAndStop(n) on the Movie Clip repeatedly as the slider is dragged.  The Movie Clip is 720 pixels wide by 405 pixels high.
    It works great, however, after doing this scrubbing action a number of times, which is required by our application, we notice the memory (by tracing System.totalMemory and System.privateMemory) increasing dramatically; and when it gets to around 100 MB (though it's not the same every time), the Flash plugin in the browser will crash.  Our assumption is that this happens because the scrubbing essentially loads dozens of bitmaps (each frame of the Movie Clip that is scrubbed over) very rapidly.
    To try and ameliorate this, we have implemented aggressive garbage collection by calling System.pauseForGCIfCollectionImminent(0.1) on a timer every 10 seconds.  This usually keeps Flash from crashing, however, sometimes the garbage collection itself causes Flash to crash, though it's not 100% predictable.  We know this because we are tracing the garbage collection action and can see Flash crash when that action occurs.
    It doesn't seem like we have a memory leak per se, as the free memory is eventually regained when forcing garbage collection.
    So I have a couple of questions:
    1) Is there any way to keep the memory from getting so large in the first place, given that we need this scrubbing functionality?
    2) If not, is there a better way of tweaking the garbage collection so that it frees up memory while not itself causing Flash to crash?

    OK, I created a new Flex project with just the simplest possible scrubbing code, plus the memory tracing.  Unfortunately, I'm getting the same results as I get in our big app.  If I can figure out what you're doing differently, I might be able to get somewhere. Here's the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" addedToStage="onAddedToStage()">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import flash.display.DisplayObject;
                import flash.display.MovieClip;
                import flash.events.Event;
                import flash.events.EventDispatcher;
                import flash.display.Loader;
                import flash.system.LoaderContext;
                import flash.net.URLLoader;
                import flash.net.URLLoaderDataFormat;
                import flash.net.URLRequest;
                private var swf:MovieClip;
                private var loader:Loader;
                private var memoryReportTimer:Timer = new Timer( 15000 );
                private var initialMemory:Number;
                private var currentMemory:Number;
                private function onAddedToStage():void {
                    var req:URLRequest = new URLRequest( "sampleAsset/AlfredCiminoDemoReel.mov.swf" );
                    var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                    loader = new Loader();
                    //loader.dataFormat = URLLoaderDataFormat.BINARY;
                    swfContainer.addChild( loader );
                    loader.contentLoaderInfo.addEventListener( Event.COMPLETE, swfLoadComplete );
                    loader.load( req, loaderContext );
                    //(loader.content as MovieClip).gotoAndStop(1);
                    //swf.gotoAndStop(1);
                    trace( "initial free memory allocation: ", (System.freeMemory / 1024).toFixed(2));
                    initialMemory = Number((System.totalMemory/1024).toFixed(2));
                    currentMemory = initialMemory;
                    memoryReportTimer.addEventListener( TimerEvent.TIMER, reportMemoryDelta );
                    memoryReportTimer.start();
                private function swfLoadComplete( e:Event ):void {
                    trace( "loading complete." );
                    swf = loader.content as MovieClip;
                    swf.gotoAndStop(1);
                    //swfContainer.addChild(swf);
                    scrubber.maximum = swf.totalFrames;
                private function reportMemoryDelta( evt:TimerEvent ):void {
                    var currentMemory_temp:Number = Number((System.totalMemory/1024).toFixed(2));
                    var tenSecDelta:Number = currentMemory_temp - currentMemory;
                    currentMemory = currentMemory_temp;
                    var overallDelta:Number = currentMemory - initialMemory;
                    trace( "10 second change: ", tenSecDelta, ", overall change: ", overallDelta  );
                    trace( "free memory: ", (System.freeMemory / 1024).toFixed(2));
                public function setCurrentFrame():void {
                    swf.gotoAndStop(scrubber.value);
            ]]>
        </fx:Script>
        <s:VGroup>
            <mx:UIComponent id="swfContainer" width="720" height="405">
            </mx:UIComponent>
            <s:HSlider id="scrubber" change="setCurrentFrame()" width="100%" />
        </s:VGroup>
    </s:Application>
    And here's the tracing output:

  • Move clips from timeline to event sub folder?

    Aloha,
    Is there a way to move clips in the timeline that I have cleaned into a sub folder in an event library?
    I come from a non FCP background and still trying to wrap my mind/workflow around the FCP formula.  Generally I clean clips and drop "some" into a "to be used later" folder. 
    Example - While on location I might shoot some location shots while im waiting around.  The locations shots will use in the last 3 mintues of a 25 minute finished project.  When I get to post I edit and clean all clips in the order they are received.  When I find the location clips I simply move them to a folder labled "to be used later".  When I get to the section of the project/timeline were the clips are needed I drag them or the entire folder into the timeline.  
    I see how to make a folder inside an event but I am not able to drag a clips from the timeline to this created folder.  I have tryied to hold down Shift, CMD, OPT, CTRL and have no sucess.
    Thanks you for your time and help.
    Frederick
    Marbelle

    Aloha Fox,
    Thanks for taking the time to answer my questions.  I feel you really understood my concern and gave me some good viable options.
    There is a lot for me to learn and unlearn. I have been editing for over 16 years and most of that time I was using Edius. This is big paradigm shift coming to the Mac and FCPX. 
    The idea for me is to edit the video and move the "to be used later clips" into a bin/folder instead of moving them to the location in the timeline were they will be used at that very moment.  Its just a preference, I know plenty folks would just move the clip to the location.  Edit software is just a tool I have to decide if FCPX is the right tool for me. 
    Thank you again Fox for your time and understanding of my question. 
    Be blessed,
    Frederick
    Marbelle

  • One script for multiple loaded movie clips

    Hello,
    I am sure that this has been asked or answered before, but
    could not locate the correct response.
    Problem:
    There are 20 movie clips loaded onto the stage through
    actionscript. I have 20 different onPress scripts to start the drag
    for each (which also contain custom variable).
    Problem, I have one single onRelease script which is to be
    used for each, but do now wish to give 20 custom handled scripts.
    Can I somehow use certain scripting for using one single
    generic script for the onRelease? So no matter what was released it
    will go through this one script.
    Thanks
    D

    like this...
    activate
    set the_folder to choose folder with prompt "Select the folder you want to add folders to..."
    tell application "Finder"
    set the_name to "Name"
    set the_count to 3
    repeat with this_num from 1 to the_count
    set new_num to this_num as string
    if (count new_num) is 1 then set new_num to "0" & new_num
    make new folder at the_folder with properties {name:the_name & " " & new_num}
    end repeat
    end tell

  • Accessing an Array in a duplicated movie clip

    I have a movie clip that has a script declaration of:
    var myCGroup:Array = Array();
    in the first frame.
    (I've also tried var myCGroup:Array; var myCGroup:Array = new
    Array(); and var myCGroup:Array = []; )
    I duplicate this movie clip multiple times. I'm having
    trouble targeting the variable myCGroup from elsewhere in the
    timeline. Other non-array variables that are declared in the same
    place are fully accessible.
    The only code I've been able to write that writes to this
    variable is:
    eval(targetThumb).myCGroup = prodFlush[2].childNodes;
    which actually takes the childnodes and creates an array with
    them.
    However, reading them back out from a separate function later
    is impossible:
    trace("colors to target =====" +
    eval(masterProds[sm]).myCGroup);
    returns nothing. I can read and write to other variables from
    the same function using the same targeting.
    (yes, materProds[sm] == targetThumb)
    Also, the following code results in an undefined array:
    // for(cg=0;cg<cGroupArray.length;cg++){
    eval(targetThumb).myCGroup.push(cGroupArray[cg].firstChild.nodeValue);
    // trace("time: " + cg + " || adding this color group " +
    cGroupArray[cg].firstChild.nodeValue + " to product: "+ targetThumb
    + "===== " + eval(targetThumb).myCGroup)
    Is this a bug, or a documented local vs. global variable
    option that I'm unaware about regarding arrays?
    Any other thoughts? I'm at my wits end.
    Thanks in advance.
    -r

    question[i] =  questionSet.getString(i);Try:
    question[i] =  questionSet.getString(1);Or better still:
    question[i] =  questionSet.getString("QUESTION");or "ANSWER" for the anser record set.
    ResultSet.getString(int) looks up the value in a column (starting at index 1) in a result set.
    getString(String) looks up the value in a column by column name.

  • Button no longer works when inside a Movie Clip?

    Again I turn to the almighty Adobe forums for help...
    So basically, I've had this problem for over a day now, and I've posted on Experts-Exchange.com... to no avail really.
    So here we go:
    I have a button in a Flash project I've made. It's used to jump to another place on the root timeline, labelled "Why". It used to work perfectly.
    I have now placed the button inside a movie clip (it has to be in an animated sequence), but now it no longer works. It appears to work fine, the rollover state works and all. But when clicked it does nothing.
    The code I use to work the buttons goes on the main timeline, the code for this button is:
    mc_anim_backdrops_menu.btn_subsection1.onRelease = function() {
    gotoAndStop("Why");
    _global.swfloaded = "";
    Why does it no longer work? and what can I do to fix it?
    The question is posted here over at Experts Exchange - http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Act ionScript/Q_24888850.html
    what we've tried there is tracing the problem. The code seems to be pointing to the right place, but none of the actual function works.. as you'll be able to see if you open up the attached file (and change it's extension from .txt to .fla to get it working)
    So would someone be able to open it up, have a look and tell me what's wrong? Because I'm stumped. And frustrated.

    My guess is that you have a scope problem. By putting the button inside a movieclip you have made the buttons scope the same as that clip.
    So if you add a trace inside the release event handler, what do you get?
    trace("My current scope is: "+this);
    I'm guessing it is "_level0.mc_anim_backdrops_menu," right?
    So since you are using the global function of gotoAndPlay() it is looking for that label in the current timeline and not finding it.
    You should probably use the MovieClip method and specifiy which timeline it should look in.
    _root.gotoAndPlay("Why");
    _level0.gotoAndPlay("Why")
    _parent.gotoAndPlay("Why");
    both would probably work. I would never use the first two, other than to make sure that there wasn't something else going on...

  • Remove Child and Event.SOUND_COMPLETE not working inside movie clip. What's the problem?

    I have a movie clip that is called to the stage. The user then clicks a button and music plays. As the music starts, another movie clip is called, a simulation of  an equilizer. There are several things that should happen:
    1) When the user closes the movie clip the music is supposed to stop playing and the equilizer movie clip is removed. What actually happens is the music stops playing but  the equilzer movie clip is not removed.
    2) When the music is finished playing the equilzer is supposed to be removed from the stage and the play button is reactivated. But none of that happens. When I click on the movie clip a second time equilizer is still there and the play button is not reactivated.
    Here's the code that calls the movie clip to the stage.
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtons);
    function goButtons(event:MouseEvent):void
        if (event.target == Song_bnt)
            SoundMixer.stopAll();
            addChild(myPlaySong);
            myPlaySong.x = 304;
            myPlaySong.y = 105;
            //event.stopImmediatePropagation();
    Here's the code in the movie clip:
    import flash.media.Sound;
    import flash.events.Event;
    stop();
    var playRayJaySong:RJSong;
    var playRayJaySongChannel:SoundChannel;
    var equilizer:Equilizer;
    equilizer = new Equilizer();
    playRayJaySong = new RJSong();
    //Plays music, inactivates buttons, and adds the equilizer to the stage.
    PlaySongRJClip.addEventListener(MouseEvent.MOUSE_DOWN, songPageButton);
    function songPageButton(event:Event):void
        playRayJaySongChannel = playRayJaySong.play();
        PlaySongRJClip.visible = false;
        ClicktoPlaySong.visible = false;
        addChild(equilizer);
        equilizer.x = 269;
        equilizer.y = 246;
    //Removes the equilizer from the stage when the music is complete.
    PlaySongRJClip.addEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
        function rjSoundComplete(e:Event):void
        PlaySongRJClip.visible = true;
        ClicktoPlaySong.visible = true;
        removeChild(equilizer);
    //Removes the equilizer and event listeners from stage and calls dispatch event to close the movie clip.
    closeSong_bnt.addEventListener(MouseEvent.MOUSE_DOWN, CloseSong);
    function CloseSong(event:MouseEvent):void
        removeChild(equilizer);
        dispatchEvent(new Event("RemoveMSong"));
        PlaySongRJClip.removeEventListener(MouseEvent.MOUSE_DOWN, songPageButton);
        PlaySongRJClip.removeEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
    //Removes the MovieClip from the stage when the user clicks on the close button inside the MovieClip.
    myPlaySong.addEventListener("RemoveMSong", RemoveSongClip);
    function RemoveSongClip(e:Event):void
        SoundMixer.stopAll();
        removeChild(myPlaySong);
    Any thoughts?

    I figured out the problem. Here's how I reorganized the code (all in one frame).
    //Code for Ray Jay song.
    var playRayJaySong:RJSong;
    var playRayJaySongChannel:SoundChannel;
    playRayJaySong = new RJSong();
    myPlaySong.equilizer_inst.visible = false;
    //Plays the song.
    myPlaySong.PlaySongRJClip.addEventListener(MouseEvent.MOUSE_DOWN, songPageButton);
    function songPageButton(event:Event):void
        playRayJaySongChannel = playRayJaySong.play();
        playRayJaySongChannel.addEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
        myPlaySong.equilizer_inst.visible = true;
        myPlaySong.PlaySongRJClip.visible = false;
        myPlaySong.ClicktoPlaySong.visible = false;
    //Removes the MovieClip from the stage when the user clicks on the close button inside the MovieClip.
    myPlaySong.closeSong_bnt.addEventListener(MouseEvent.CLICK,RemoveSongClip);
    function RemoveSongClip(e:Event):void
        SoundMixer.stopAll();
        removeChild(myPlaySong);
        myPlaySong.equilizer_inst.visible = false;
        myPlaySong.PlaySongRJClip.visible = true;
        myPlaySong.ClicktoPlaySong.visible = true;
        playRayJaySongChannel.removeEventListener(Event.SOUND_COMPLETE, rjSoundComplete);
    //Resets all of the movieclips to their orginal state.
    function rjSoundComplete(e:Event):void
        myPlaySong.equilizer_inst.visible = false;
        myPlaySong.PlaySongRJClip.visible = true;
        myPlaySong.ClicktoPlaySong.visible = true;
    Thanks all for your suggests and input.

  • Sound in a movie clip malfunctions when play head is moved backward

    Problem summary:
    A sound (stream) placed inside a movie clip that is within another movie clip will start playing continuously when I use the play control to jump around on the main timeline.
    Details:
    I am using Flash CS3 but the same issue occurs with CS6. I've spent quite a bit time to search/research for the issue but didn't find a solution. To demonstrate the problem, I've reduced the flash movie to a very simple structure.
    One the main timeline:
    The first frame has a movie clip (Game MC) and a stop action.
    Following the first frame, there are several frames, mostly empty except some text.
    The last frame has a stop action.
    On the Game MC timeline:
    There is only one frame. On that frame, there is a movie clip (Card MC), and the stop action.
    On the Card MC timeline:
    It starts with 3 blank frames and a stop action.
    Starting at frame 4, a sound (.wav format) is placed and is set to be "stream."
    At the end of this timeline, there is a stop action.
    From Flash CS3, I press Ctrl+Enter to test the movie. The movie stops on frame 1 of the main timeline with the card showing, no sound, as expected. Now I use "." to move the play head forward one frame at a time. No problem. I see the frames after the first frame. Still no sound, as expected. So far so good.
    The problem starts when I use "," to move the play head backward, the sound in the Card MC starts to play, regardless where the play head is, even when the Game MC (thence the Card MC) is not on the stage. Worse, each press of "," will trigger another start of the same sound overlapping with the previous one. And the sound would continue in loops until I close the swf.
    However, the problem will not occur if I place the Card MC directly on the main timeline. It only occurs when it is inside another movie clip (Game MC).
    I need to solve this problem because the full version of the flash card game is to be placed in an HTML page with a javascript based play control, which allows the viewer to jump around in the swf timeline.  
    The fla file is at: https://docs.google.com/file/d/0B_5mgotjr4l5RDZaOGxFeFFWN1U/edit?pli=1
    Am I doing something wrong? Is this a bug in Flash? Any insight will be greatly appreciated.
    Keith

    Thanks. But the problem is that the timeline for the movie clip (Card MC) where the sound is should not have been run because the play head is not on the frame where the Game MC is at (Game MC contains Card MC.) I also put trace actions on various frames on that timeline (for Card MC) and none was invoked. I have also tried to set the sound to "event" or "start". It made no difference.

Maybe you are looking for