MovieClip Preloader keeps looping movie

MovieClip Preloader keeps looping movie
I made a MovieClip preloader and everything workes fine.  The problem is the movie that I am loading  keeps looping.  Is there any way to stop this from looping?  I used  Flash CS5, AS2.
Here is the code that I am using:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._visible = false;
bar._visible = true;
border._visible = true;
pText._visible = true;
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
preload.onLoadComplete = function(targetMC) {
container._visible = true;
border._visible = false;
bar._visible = false;
pText._visible = false;
trace(targetMC+" finished");
//default image
my_mc.loadClip("main.swf", "container");

Thank you for responding
The stop action stopped the movieclip preloader from looping the movie, but now it shows a black screen at the end instead of the last frame of the movie. 

Similar Messages

  • Preloader keeps looping- desperate

    Hi,
    I'm having issues with a preloader on my website. I made it
    in a seperate swf from my main site using the progress bar
    component but I added an animation movie clip to go along with it.
    the issue i'm having is coming up with script to stop my animation
    movie clip when my website loads. Right now my progress bar loads
    and then disappears but my animation continues playing over my
    website menu. I'm so frustrated with this, I been looking at sites
    all day trying to find script that might work. I need some code to
    make my animation disappear when my site loads. I'm using CS3
    action script 2.0. Any help would be greatly greatly appreciated.
    the malfunctioning awfulness of my preloader can be viewed at
    www.jenniferwaydesign.com

    Hi,
    Sorry, No I was just trying something and the animation
    disappeared entirely but no the problem is still there, I put the
    original swf file with the faulty animation script back up so it
    should show it now.
    yes, it is a large flash file and i think eventually i'll
    have to do that but for time's sake at the moment what i have just
    has to work for resumes until i have the time to go in and redo
    everything
    I've been trying to use event listeners, i'm just having a
    difficult time applying the percent loaded in my progress bar to my
    animation movie clip to make it go away when the event is
    loaded.

  • How to keep a Movie Clip on the screen for 5 secs.

    I am having trouble with keeping a movie clip on the screen.
    I am setting it up to play a movie using the .onPress function. It
    is calling the movie but only shows it for a split second. How can
    I make the movie stay on the stage for 5 seconds? Here is how I
    have it coded:
    rc1MC.onPress = function() {
    if (rc1MC.hitTest(_xmouse, _ymouse, false)){
    _global.correct++;
    updateStats();
    var c1:MovieClip = this.attachMovie ("correct1_mc",
    "correct1",4300);
    var ymov = this._y;
    var gravity = 20;
    c1.onEnterFrame = function() {
    ymov += gravity;
    xmov *= 0.5;
    c1._rotation += 5;
    c1._x += xSpeed;
    c1._y = ymov;
    if (c1._y>stageHeight) {
    c1.removeMovieClip();
    delete this.onPress;
    Thanks Brandon

    Got my answer...
    http://forums.verizon.com/t5/FiOS-TV-Technical-Assistance/For-Those-of-You-Who-Want-to-View-Subscrib...

  • Two step verification code entry keeps looping in Safari

    I've recently upgraded to a 5S, however when I try to purchase from the app store, it askes me to verify the device, as I have two step verification set up.
    However, it doesn't work.
    I get the verification code sent to my iPad, but when I type it into Safari on either the phone or my iMac, it keeps looping.
    The text is
    "We have sent a temporary verification code to [device name]. Enter the code to continue. Didn't receive a code?"
    When I enter the code, it flickers, then displays the same message.
    Help? I can't set up my 5S, I can't disable two-step through my iMac.
    Suggestions to overcome? (I do not have my Recovery Key either)

    Hi Nate...
    Might be Safari cookies, cache, or extensions.
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:  Remove All Website Data
    No open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, try troubleshooting extensions.
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • Flash animation keeps looping

    Hi,
    I built a Flash animation which keeps looping. I am trying to get it to not loop
    at all and it refuses.
    Here is the code of the html page, as created by Flash CS5:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
         <head>
              <title>animate_van</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <style type="text/css" media="screen">
              html, body { height:100%; background-color: #d1d1d1;}
              body { margin:0; padding:0; overflow:hidden; }
              #flashContent { width:100%; height:100%; }
              </style>
         </head>
         <body>
              <div id="flashContent">
                   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="940" height="116" id="animate_van" align="middle">
                        <param name="movie" value="animate_van.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#d1d1d1" />
                        <param name="play" value="true" />
                        <param name="loop" value="false" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                        <!--[if !IE]>-->
                        <object type="application/x-shockwave-flash" data="animate_van.swf" width="940" height="116">
                             <param name="movie" value="animate_van.swf" />
                             <param name="quality" value="high" />
                             <param name="bgcolor" value="#d1d1d1" />
                             <param name="play" value="true" />
                             <param name="loop" value="false" />
                             <param name="wmode" value="window" />
                             <param name="scale" value="showall" />
                             <param name="menu" value="true" />
                             <param name="devicefont" value="false" />
                             <param name="salign" value="" />
                             <param name="allowScriptAccess" value="sameDomain" />
                        <!--<![endif]-->
                             <a href="http://www.adobe.com/go/getflash">
                                  <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                             </a>
                        <!--[if !IE]>-->
                        </object>
                        <!--<![endif]-->
                   </object>
              </div>
         </body>
    </html>
    The looping value is set to false above, also in Flash my publish settings are set to not loop.

    Assuming the animation is timeline based, then you need to place a stop(); command in the last frame of the timeline.

  • Itunes wont let me download anything for my ipod touch.  everytime i try to it keeps looping thru to verify my account, so i do and then try to download and it loops me right back thru again to verify my account.  HELP ME PLEASE :(

    everytime i try to it keeps looping thru to verify my account, so i do and then try to download and it loops me right back thru again to verify my account.  HELP ME PLEASE

    Contact iTunes.  Select the appropriate topic of:
    Apple - Support - iTunes

  • HT1339 I have tried restoring an Ipod Nano 6th Generation but it seems to keep looping back and saying it is in recovery and needs restoring, can anyone help?

    I have tried restoring an Ipod Nano 6th Generation but it seems to keep looping back and saying it is in recovery and needs restoring, can anyone help?

    Try doing a level reformat of the iPod's flash storage instead to see if that kills the restore loop using the instructions in the article below.
    http://www.methodshop.com/gadgets/ipodsupport/erase/
    B-rock

  • Dynamic text in looping movie clip

    Hi,
    I am looping a movie clip which has a dynamic text box. I
    need to call data from XML and place the same in the Dynamic text
    box as per the duplicated movie clip. how do i do that.
    Thanks,
    Ayush

    on (release) {
    _parent.frontFields.topTextArch.ph2TopTextBrush._visible =
    false;
    That is the script attached to my button. I can see the text
    flash for a second when I push the button but it does'nt go away
    because the looping movie clip just continually goes back to the
    first frame and makes the ph2TopTextBrush text field visible again.
    I think I know what your saying. Your saying to attach a
    script to the first frame of the looping movie clip that would
    check to see which of the 3 dynamic text fields are visible. That
    would be perfect but I'm not sure how to do it.
    What would the script that I place on my button look like?
    What would the script in the first frame of the looping movie clip
    look like?

  • Reports included in the page keep looping without retrieving any results

    We are facing an issue related to the behaviour of Siebel Analytics when more than 1 answer are included in a dashboard page. When a report is generated, the other reports included in the page keep looping without retrieving any results, but if I manually click on 'cancel' link, the reports successfully appear with consistent data. This behaviour is not stable since sometimes the page works fine, sometimes not, but it's not clear what it depends on. Can anybody please let me know if this behaviour is a known bug.

    Hi Deb,
    Could you please explain me in more detail?
    The problem is we are able to see the old reports that we were already moved into Q environment. The newly moved 5 reports are giving this error message.
    Please help
    Thanks
    Sri

  • Preloader - not loading movie

    Hi.
    I have a preloader on the first frame of my movie timeline.
    When i go to 'test scene', the preloader works and moves to the
    next frame to play the MC. When i go to 'test movie' the preloader
    sticks after all bytes have loaded. It does not move on to the 2nd
    frame.
    The same thing is happening when its loaded on the web, it
    sticks on the preloader but if you refresh the browser, the
    preloader moves onto the next frame as it should.
    Something weird is happening here and i need to know what i
    have done wrong.
    Help please.
    Thanks

    mfos wrote:
    > Hi.
    > I have a preloader on the first frame of my movie
    timeline. When i go to 'test
    > scene', the preloader works and moves to the next frame
    to play the MC. When i
    > go to 'test movie' the preloader sticks after all bytes
    have loaded. It does
    > not move on to the 2nd frame.
    > The same thing is happening when its loaded on the web,
    it sticks on the
    > preloader but if you refresh the browser, the preloader
    moves onto the next
    > frame as it should.
    > Something weird is happening here and i need to know
    what i have done wrong.
    > Help please.
    the preloader is incorrect but we can't say anything based on
    "does not work"
    description.
    Copy paste your exact code or upload the problematic file for
    us to check.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • HT1390 How long can you keep a movie rental, once it's downloaded? Do u need wifi to watch it?

    How long can you keep a movie rental, once it's downloaded? Do u need wifi to watch it?

    As long as it's been fully downloaded then you shouldn't need to be online in order to watch it.
    As to how long you have to watch it, from here :
    You have 30 days from the time of rental to watch your movie, and 24 hours (in the US) or 48 hours (elsewhere) after you've started viewing to finish it. Once the rental period expires, the movie will disappear from your iTunes library.

  • IE7/Firefox keep looping in CS3 (ignores AS3 cmds)

    I created an index.html and index.swf and placed them with
    the AC_Runactivecontent.js on the server after they worked fine
    locally. Now they run fine on the latest Opera and IE6, but with
    Firefox (1.5 and 2) and IE7 (WinXp) the flash keeps looping forever
    and I cannot touch any of the buttons or controls (also seems to
    ignore the AS3 commands including stop();) ?! Please help as I am
    new to Flash and CS3 especially. Oh, and it also runs fine on
    Vista's IE7
    You can check the results at
    www.alifcc.com
    I'm using the UIScrollBar component, and following is the
    actionscript used:
    stop();
    function oncontactClick(evt:MouseEvent):void {
    gotoAndStop("contact");
    function onaboutClick(evt:MouseEvent):void {
    gotoAndStop("about");
    function onsolutionsClick(evt:MouseEvent):void {
    gotoAndStop("solutions");
    function onclientsClick(evt:MouseEvent):void {
    gotoAndStop("clients");
    contact_btn.addEventListener(MouseEvent.CLICK,oncontactClick);
    about_btn.addEventListener(MouseEvent.CLICK,onaboutClick);
    solutions_btn.addEventListener(MouseEvent.CLICK,onsolutionsClick);
    clients_btn.addEventListener(MouseEvent.CLICK,onclientsClick);

    It turned out to be because of a conflict with the Real
    Player 11 Beta plugin.

  • I need to get raw plugin for Canon 5D Mark iii for CS6  the adobe website has changed and I can not find the download.. it keeps looping me back to the product download

    I need to get raw plugin for Canon 5D Mark iii for CS6  the adobe website has changed and I can not find the download.. it keeps looping me back to the product download page without the raw

    Which operating system are you using?
    Have you tried Help>Updates from within photoshop cs6 to get either camera raw 8.3 or 8.7.1, which should enable photoshop cs6 to open the canon 5D Mark III files.
    (version of camera raw depends on your operating system)
    If that doesn't work try one of the following camera raw plugin installers:
    Camera raw 8.7.1 plugin
    https://helpx.adobe.com/x-productkb/multi/camera-raw-plug-in-installer.html
    If you have windows xp or vista or mac os x snow leopard (10.6.8), then you'll have to use the camera raw 8.3 plugin installer:
    https://helpx.adobe.com/x-productkb/multi/camera-raw-84-support-policy.html

  • Flash export of slideshow keeps looping, hyperlinks not working.

    I have made an intro page for a website using Keynote 3 <http://web.mac.com/archstanton1862/iWeb/Tricktrial/Welcome.html> I can't figure out why the page keeps looping. It should go through it's transitions and then stop. Right? Also, the ENTER hyperlink is supposed to go to <http://web.mac.com/archstanton1862/iWeb/Trickracing1/Menu.html> but it instead goes to www.apple.com/startpage What's the deal? I have loop slideshow "unchecked" in the playback options. I used iWeb Enhancer 1.0.1 to embed the flash animation html, and it worked awesome. It just keeps looping and the hyperlink is wrong. Is what I'm wanting to do even possible? HELP!!

    Looks like everything's working to me. I was having this same problem, but never got around to uploading the flash to the site because it keeps looping for me, too. But your's seems to be fine--did you do anything to correct this, or did it seem to fix itself?!
    Bryan

  • Laptop with windows vista prem keeps looping like it wants to start

    The model number psaf-3u-onr00v satellite a205 s5804.my problem is the system will not load windows and it keeps looping like it wants to load but it just keep looping it wont load the recovery disk either it starts loading but again it goes back to looping like it wants to start it also wont work in the safe mode or any mode can anyone help?

    Unfortunatly I had a computer do this to me recently and I found out that it was the had drive itself.  I know this isn't what you wanted to hear, but this is my only suggestion.

Maybe you are looking for

  • Func Module : LDB_PROCESS and Logical Database ADA

    Hi All, How to get 'ANLB' data from logical database 'ADA' using the function module 'LDB_PROCESS'? Is there any other way to done this without getting into SELECTION SCREEN of this LOGICAL DATABASE? With Thanls & Regards, R.Nagarajan. We can -

  • ORA-04091 (table string.string is mutating) and Function-Based Index

    I've encountered a problem with DELETEing from a table when that table has a function-based index on it. The following demonstrates this: SQL> CREATE OR REPLACE FUNCTION get_employee_location(p_empno IN number)   2  RETURN varchar2   3  DETERMINISTIC

  • Converting Microsoft Works file to Adobe

    Does anyone else have this word processing software and tried to convert files? If so, how did you get file to convert?

  • What is the best workflow with SVN and Developer Data Modeler.

    I am workin on strategy to fullfill next tasks with Data Modeler: * Posibility to work on paralel branches for model * Merging changes from different branches * Generating upgrade scripts for changes (from one commit till other) * Maintaining posibli

  • Safari 8.0.4 wurde unerwartet abgestürzt

    Hallo Leute Hatte Macclean runtergeladen und wollte mein Temp datei lösen, habe es auch gemacht Wollte Safari öffnen, aber da kam das Problem, das Safari nach dem Öffnen sofort beendet und dann die Fehlermeldung kommt, dass "Safari unerwarte beendet