Scrolling background will not stop

I am trying to make a horzontial flash scrolling background and I cant seem to get it to stop at the last frame.
animator=createEmptyMovieClip('animator',1);
bg_1=animator.attachMovie('bg_mc','bg_1',1);
bg_2=animator.attachMovie('bg_mc','bg_2',1);
bg_1._x=-bg_1.width/2;
bg_1._x=-bg_2.width/2;
speed=1;
lockerWidth=550;
animator.onEnterFrame=function(){
          bg_1._x-=speed;
          bg_2._x-=speed;
          if(bg_1._x<=-bg_1._width)bg_1._x=lockerWidth;
          if(bg_2._x<=-bg_2._width)bg_2._x=lockerWidth;
I have a attached a ms doc showing how it looks in flash

are you trying to stop if from looping (if so, attach a screen shot that shows its timeline and the actions panel with the stop() in frame 30) or are you trying to stop it from moving?
and, fix the code you showed:
animator=createEmptyMovieClip('animator',1);
bg_2=animator.attachMovie('bg_mc','bg_2',1);
speed=1;
lockerWidth=550;
animator.onEnterFrame=function(){
          bg_2._x-=speed;
          if(bg_2._x<=-bg_2._width){
bg_2._x=lockerWidth;

Similar Messages

  • Nano will not stop scrolling songs

    Nano is continually scrolling through all songs without allowing me to play any of them. It just starting doing this after using it without problems for over a year. It will not stop, but scans through all songs without letting me play them. When I touch the play button it stops for a split second then goes back to scanning all my songs. I have tried everything to fix it.

    Okay, the problem is fixed. Try this, It worked for me.
    Deauthorize and reauthorize your account in iTunes
    In some cases iTunes may "forget" that your music is authorized. You can refresh the authorization by deauthorizing and then reauthorizing your computer. To deauthorize a computer:
    1. In iTunes, choose Deauthorize Computer from the Store menu (your computer needs to be connected to the Internet).
    2. In the resulting dialog, enter your Apple ID and password.
    3. Click OK.
    You can now reauthorize your computer by simply trying to play one of the songs you've purchased. A dialog box will appear asking you to enter your Apple ID and password. Once you have done so, click Authorize to finish the process.
    Message was edited by: the-chocoholik

  • Rebuilding aMacBook 1.83 GHz Intel Core Duo, hard drive failure so rebuilding system.  Aircard will not stop self-assigning IP address.  Any ideas how to resolve successfully?

    Had hard drive failure on MacBook 1.83 GHz Intel Core Duo, so had to rebuild the OS on new drive. Was on Lion 10.7.5 prior to failure, but had to reinstall Snow Leopard 10.6.3 since that was most recent OS on media I had.  After finally getting ethernet connection to router working, was able to get to internet and download / upgrade to 10.6.8.  I assume I can probably buy the upgrade to Mountain Lion 10.8 from there.
    Problem is this, Airport will not stop self-assigning IP address for my wireless connection, and unless I can get wireless back on this laptop, doesn't make a lot of sense to continue the rebuild and reinstall of all the software that was on it prior to HD failure.  Only way to my home network and router is ethernet now.  Everything else on my network (Apple MacBook Pro laptops, iPhones, desktops, and non-Apple printers and laptops) is hooking up to router wirelessly fine.
    Any ideas how to resolve successfully so that the airport will stop self-assigning and allow the router to assign the IP address?

    When see the beachball cursor, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • My ipod touch will not stop playing music

    My ipod touch will not stop playing music. I will pause the music, leave the playlist, and after 30-60 seconds, the music starts playing again. I use my ipod when I run and when I drive (hook it up to the stereo). It is very annoying when I stop to take a phone call or listen to directions, turn off my music, and then hardly a minute into my stop, the music starts right back up again.

    FUEL1996, not correct. Apple does not allow one app to control another app.
    laurathecellist
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar              

  • Itunes 10 will not stop auto syncing

    I have itunes 10 on a mac and a 160 gb ipod classic.
    it will not stop auto syncing when I plug in my ipod, even though "do not auto Sync" button is checked as well as checking off "do not open itunes automatically.
    It syncs FOREVER. I would love to find a way to stop this from happening. I dread plugging in my ipod to put on new music etc.

    I have had this problem with Windows 7 and iTunes updates for some time. Each time it takes hours to solve but with the over the air upgrade to IOS6 on my iPhone and iPad, I was determined to solve and remember what I did, So here it is:
    http://www.care4pcs.co.uk/2012/09/pear-shaped-apple-ios-6-for-iphone-ipad.html
    I hope this helps you and any other users.

  • TS2662 my new magic mouse scrolling & swiping will not work

    my new magic mouse scrolling & swiping will not work. Help??

    I had this happen to me as well. just last week (july 28, 2014) I brought my magic mouse from home to work since my work mouse was going south. paired it with bluetooth, it moved and clicked but no scroll or gestures. searched till I nearly ready to give up. then I installed USB overdrive. many forum posts said too remove that. I didn't have it, so I installed it. and then un-installed it.  everything works great now.
    hope this helps someone.

  • My data wheel will not stop spinning (i think i am being tapped)

    iphone 3GS 3.1.3 16gb white not jailbroken completly stock
    ok every time i open up my native phone app the data wheel instantly starts spinning and will not stop. it does stop as soon as i close it.
    i thought it might have something to do with google sync so i deleted my mail account but it did not help aat all
    PLease help this is driving my crazy

    Perhaps it's trying to access your voicemail. Is that working properly? Does the Phone app work?
    Try resetting your iPhone by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • ITunes will not stop verifying

    I have an iPhone4 with the latest iTunes (10.1.0.54) and when I plug my iPhone4 in, it will not stop verifying. I used to have this problem if I canceled a sync. It would verify the phone the next time I plugged it in. I did that this time. I canceled a sync, but now it will not stop verifying to do anything else. I have left it plugged in for 14 hours and it just verifies the entire time. I can do nothing else. It is not set to sync automatically. How do I stop this?

    I'm having the same problem, but I've got a MacBook Pro (rather than a PC).
    Not only does it continue to 'verify' but it won't even let me force quit (says it's restoring my phone ... but after a number of hours it must be done already).

  • Whenever I open Firefox a series of sirens start and will not stop. Does not happen in Internert Explorer.

    When Firefox is opened a series of sirens starts and will not stop until Firefox is closed.
    == This happened ==
    Every time Firefox opened
    == started when I opened a news story from the Sacramento Bee News Paper on line. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.4; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)

    That is an issue with the "Cool Previews" extension.
    See [tiki-view_forum_thread.php?locale=en-US&comments_parentId=678288&forumId=1]

  • Ever since I upgraded to 4.0, the welcome tab will not stop opening. It's getting rather annoying.

    The welcome tab for the new 4.0 will not stop opening every time I open my browser. Each time I open Firefox two tabs open, the welcome page for the new 4.0 and my home page. I updated some time ago and this welcome page is becoming quite annoying. How do I stop it from opening? In the past, it has stopped after the first time I open Firefox following an update.

    Thank you for the reply. I have Google set as my homepage, and that's the only homepage listed in the Options box. I tried restoring to default, but when I opened again, the 4.0 page and Google opened again. That leads me to think it might be options, but that article meant absolutely nothing to me.
    What I find strange is that when I have one Firefox window open, then open another Firefox window, only the Google page opens, not the "get to know 4.0" page.

  • My mouse scroll ball will not scroll down.

    My mouse scroll ball will not scroll down.

    Unfortunately the Mighty Mouse is known to have issues when scrolling if it gets dirty. The best you can do is hold it upside down and roll the ball back and forth in every direction for a minute or so, this should help clean it any it may start working again. My school's multimedia lab has 20 workstations that all have that mouse and about half of them work! I'd recommend moving to the magic mouse or another brand's mouse if cleaning does not fix it.

  • Distiller will not stop distilling postscript file

    I use Distiller 6.0.2. Lately, when I try to distill a Quark layout into a pdf the distilling process will not stop. The progress bar shows a number that just keeps on climbing up. It seems if I quit the program and then restart it, this will solve the problem and distiller will make a pdf of the postscript. However, I will get the same problem once I try to distill another page. I tried to trashing the Distiller preferences and then restarting the program. This did not do anything.

    It's not a specific file and it doesn't matter how big a file is. I am distilling a postscript file. My Mac is running on 10.3.9. I only print from Quark to get postscript files.

  • Playhead will not stop at the end

    When I play my project in FCP the playhead will not stop at the end but will continue for a few seconds. So when I want to share my project I have to make a range so that I don't have a black clip at the end. There's no gap or what so ever on the timeline. How can I solve this? Thanks for your answers.

    Unfortunately, the problem is not solved. When I hit the end key the playhead goes to the end. Actually one frame further. Because when I go back one frame, I get the end clip symbol in the corner. But if I just play, the palyhead goes further for a 3 seconds. Then I get the clip symbol "negative edge" on the rightside. See also image. And there is nothing in the timeline.

  • HT201304 how to disable siri? siri will not stop talking, and is making it impossible to use my iphone 4s.

    Siri will not stop talking, virtually making using my phone impossible. Please help me disable siri?

    Settings>General>Siri> turn off.

  • Mail will not stop loading, twirling rainbow icon will not stop, cannot close mail application then.

    Just downloaded OS X Mountain Lion and on my Mac Book Pro (mid 2009).  When I select the mail application this problem occurs: the rainbow icon that twirls will not stop, and then I cannot close the mail program at all.  No clue what to do next, thanks for the help or ideas. SanibelMan 09/09/2012 @ 2am EST.

    Click on the apple in the top left corner of the computer. If it doesn't let you, open another application such as finder, and then click it, then go down the force quit, then click mail and then press force quit.

Maybe you are looking for

  • IE doesn't show my body background

    This is a very strange problem. I feel that the different aspects of this mistake are related, though. IE does not display my body background or recognize some of my links as working links. (except for the briefest of moment as it is loading the page

  • Installing CS6 on a replacement hard drive (same Mac Book Pro)

    I am running the latest version of CS 6 on an older (2008) 15" Mac Book Pro (OSX 10.8.2), when I'm away on assignment.  The original 200GB hard drive needs to be replaced and in preparation I've cloned the complete system onto an external hard drive.

  • ISG - ASR1002 config change

    Hi Support Team, We have had two instants - when there was an outage on our broadband customer. Our 'rancid' server was able to pick up the change in config on one of the BRAS - AS1002 Config change is attached below...this was removing and adding th

  • EKPO Table adjusted in SE14 and records deleted

    Hi Team, We worked on enhancing the EKPO table by adding one field to CI_EKPODB table. We did a DB Adjust and selected save and activate database options. We thought we wont loose the data. But unfortunately we lost the data and we need to recover it

  • Who can I contact about poor quality aperture photobook

    I have used aperture photobook without difficulty in the past.  This time,  I ordered a book and it had a line going through one or more of the photos on arrival at my home.  This was a gift.  Nowhere when I proofed this was this line evident.  I rea