Need to stop instance of mc onEnterFrame

(running CS3 and doing this in AS2)
i have a looping animation of a ball rotating, that i need to stop rotating once it reaches a particular frame (we'll say frame 60).
i tried putting:
ball_mc.onEnterFrame = function() {
    ball_mc.stop();
(ball_mc is the instance name of a particular movie clip.  i do not want to reference the actual mc as i have about 10 instances of it on the timeline)
everything is taking place on the main stage at the root level, but i can't seem to get the animation to stop.
any help would be greatly appreciated.
j

Oh. So many things aren't making sense here.
First what does this mean "...i do not want to reference the actual mc as i have about 10 instances of it on the timeline..."?
The only way to tell a movieclip to stop is to tell it to stop, so you will have to reference it. There are many ways to do such a thing, but without knowing exactly what you are trying to accomplish (with the whole project) it is hard to give exact advice.
The next thing is that I don't think onEnterFrame is what you are thinking it is. It means to repeat the code at the frame rate, it doesn't mean, "Do this when this frame is reached." If you just want to do something when you reach a frame you put a keyframe and add code like:
ball.stop();
All code on that frame will execute before the screen is redrawn. So I think that is what you are after.
Finally, there are a couple of reasons that the code above might not stop a given movieclip.
The first and most common reason would be that you have a scope problem. That that ball isn't a child of the current timeline. So if ball was actually inside another movie clip you might need to do something like
theOrbs.ball.stop();
Or perhaps you have mistyped or misnamed the instance. So if the instance name is Ball and you say ball.stop() it won't work because capitazliation and spelling matter.
Another popular way that stop() wouldn't work is if the animation of the clip is being done by code. stop() only stops the playhead on the specified timeline. So if there is some code making the ball move stopping its timeline won't stop the code.
And a similar issue to the scope and code issue is that if the animation that makes the ball move is actually provided by a movieclip nested inside of ball then ball.stop() will stop the ball's timeline, but not the independent timelines of its children.
So we need to know more about how you have designed your project.

Similar Messages

  • Need to stop my cursor leaving the flash stage area in browser?

    Hi, I need to stop my cursor from moving on certain points on the stage. I'm using a magnifying glass effect but in the browser this only show the glass up to the stage so I need to stop it moving past those points. You can see what I mean if you move the magnify glass to the very left or right here:
    www.zoeglazebrook.co.uk
    this is the code I have for the magnify glass:
    var moveGlass:Number;
    magnifyingGlass.onPress = function() {
        moveGlass = setInterval(startGlass,1);
    function startGlass() {
        magnifyingGlass._x = _root._xmouse;
        magnifyingGlass._y = _root._ymouse;
    magnifyingGlass.onEnterFrame = function(){
         this.largeobject._x = (this._parent.original._x-this._x)*2;
         this.largeobject._y = (this._parent.original._y-this._y)*2;

    kglad wrote:
    var moveGlass:Number;
    magnifyingGlass.onPress = function() {
        moveGlass = setInterval(startGlass,1);
    function startGlass() {
    if(_root._xmouse>magnifyingGlass._width/2&&_root._ymouse>magnifyingGlass._height/2&&_root. _xmouse<Stage. width-magnifyingGlass._height/2){
        magnifyingGlass._x = _root._xmouse;
        magnifyingGlass._y = _root._ymouse;
    magnifyingGlass.onEnterFrame = function(){
         this.largeobject._x = (this._parent.original._x-this._x)*2;
         this.largeobject._y = (this._parent.original._y-this._y)*2;

  • To stop instances at standby

    My oracle version is 11.2.0.2 RAC RDBMS on RHEL 5.6.
    At my standby site my physical standby database is on 4 node cluster with all 4 instances up. I need to disable 3,4 instances so that we want it to run on only 1,2 instances.To disable the instances do i need to stop apply(mrp) process. And the apply node is node 1.

    ok thank you...
    I am confused...I know we need to stop mrp(recovery) process if we need to shutdown the databse.
    Now in my case i am not shuting down the databse,instead i want to disable the instance, for that i need to stop the instance(in my case instance 3,4) and next using srvctl disable the instance, so that after disable i am planning to have standby database only with 2 instances althought it is 4 node RAC.
    In my case do i need to stop the mrp,to disable the instance, and if yes why? My thought is since my apply instance is 1, why do i need to stop mrp that is running in other instance,1, where i am disable 3,4?

  • I have multiple devices with the same cerificate, once I have a an exception for one, FF denys access to the others. I cannot change the certificates, I need to stop FF blocking them.

    I have multiple devices with the same cerificate, once I have an exception for one, FF denys access to the others. I cannot change the certificates, I need to stop FF blocking them.
    == This happened ==
    Every time Firefox opened
    == I attempt to access a web front end on an IBM SVC device

    You can't use the same certificate more than once.
    See also [[Certificate contains the same serial number as another certificate]]

  • So i was updating my ipod touch (4g) to ios 6 and i needed to stop it in the middle of updating. so i held the home button and the lock button. it turned white and i tried charging it when it died but it went back to usual please help!

    so i was updating my ipod touch (4g) to ios 6 and i needed to stop it in the middle of updating. so i held the home button and the lock button at the same time for it to restart. It started turning on with the apple symbol and then the screen went white. I kept trying to do the same thing but it wouldnt work. Eace time i did that the screen was a different color. I was yellow/white at one point, blue at another time and sometimes the color behind the apple symbol. It got really HOT and i just let it die. When it was dead i put it on a charger. once it got charged up it started turning on with the apple symbol. then it turned white again and then restarted without me touching anything. When it restarted it turned the blue again. i took it off the charger immediantly because i didnt want it getting as hot as it was before. ive tried every way i know how to fix it but not putting it in the computer because i dont want it to ruin the computer. Please help because i really dont want to get a new ipod. Ive read a lot about how to fix it here on apple but there all the same answer and it still doesnt work. Please respond ASAP! thank you! i could really use your help right now!

    First see if placing the iPod in Recovery Mode will allow a restore.
    Next try DFU mode and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem.

  • My host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    my host name changes every few days, since Xmas adding a macbook its changed 6 times. Do I need to stop this? Does it cause problems with sharing between the iMac and macbook?

    There are several possible causes for this problem.
    1. Two (or more) computers on the local network have the same Bonjour name, such as "X's-MacBook-Pro.local".
    2. You have two simultaneous connections to the same local network: probably Ethernet and Wi-Fi. If applicable, disconnect the Ethernet cable or turn off Wi-Fi.
    3. A Mac wakes from sleep due to network traffic. This is due to a bug in OS X that may only affect some models.
    4. A device that gets its network address from the router wakes from sleep, and the address it was using before has been assigned to another device.
    5. A third-party wireless router has incompatible settings or firmware. In that case, refer to the manufacturer or ISP for support. Restarting the router may help, temporarily.
    6. See also this support article.
    Rename the computer in the Sharing preference pane.

  • Need for separate instance on RAC database 11g

    Hi Experts,
    Currently we have a RAC 11g database with two instances. Our business is requesting to create one more instance with an user to store historical data. They claim that they need this separate Instance for the following reasons
    1)     Easy backup and recovery for a specific instance in case of historical data
    2)     Point-in-time recovery is possible
    3)     If any other node fails, then it won’t affect this instance
    Please share your expertise on this regard. Thanks in advance.
    Regards,
    Richard

    user12075620 wrote:
    1)     Easy backup and recovery for a specific instance in case of historical dataWhat data will that be? If this is a 3rd RAC instance, then it will not make backup easier as the data is in the database (on shared storage media) and that needs to be backed up - the database's data does not reside locally on the instance.
    2)     Point-in-time recovery is possibleAgain, I do not see how this is a specific advantage that now suddenly occurs with the introduction of a 3rd RAC instance.
    3)     If any other node fails, then it won’t affect this instance Correct - a 3rd instance increases the redundancy in the cluster. It also scales it and provides additional processing capacity.

  • Before the selector value reach a Case structure I need to stop it until a push button is pressed. How to do?

    Before the selector value reach a Case structure I need to stop it until a push button is pressed. How to do?

    altenbach wrote:
    UliB wrote:
    simply wire your selector value through a while loop. Stop the loop with your button. After the loop stops, the value will go on to the case structure.
    Hmmmm.....
    Hello altenbach,
    roflol .
    Thank you for the link to 'A Field Guide To LabVIEW Objects - Selfish Loop'. I'll keep that in mind, when answering other questions with while loops.
    Uli

  • Need to stop oc4j to stop...

    Hello all,
    Can anyone help me in stopping oc4j services...
    Problem desc: when i starting windows oc4j starts automatically. I need it stop it and it should be started when i require...i mean i will start it maually.
    Thanks
    A

    Check this link,
    http://gerardnico.com/wiki/dat/obiee/installation/obiee_oc4j_suppress_window
    Thanks,
    Vino

  • Need to stop Email Notification when Transaction is Saved For later

    Hi Team,
    We are getting mail notification when any transaction is Saved for later. We need to stop this mail notification because for every transaction we are getting mail ? is there any possiblity that we can stop this activity for mail notification only for transaction SAVED FOR LATER.
    Details are:
    Application : 12.1.3
    Responsibility - Manager Self Service , HR Professional
    Kindly reply with your valuable suggesions.
    Thanks in Advance.
    Basaw

    I think u need to check ur work flow settings , where mailer will do this sending mail work
    please check the set up for that , and check with any wf expert once

  • Need to stop or cancel Skype

    Hi Skype,
    I need to stop or cancel SKYPE.  You have everything from me.  I seem to not be able to stop it on my end in the software as of yesterday, 10/14/13.  Please stop my credit card info.
    Please get back to me.
    Thank you,
    Post transferred to create its own new thread or topic.
    Subject/title amended accordingly.
    First things, first: for your safety and protection, please never, ever include any personally identifiable information such as your real name, Skype account name, e-mail address, or a telephone number in a post on a public Community or forum such as this. Thanks!

    Greetings, Linda.Mcclain50, and welcome to the Community,
    If you are unable for any reason to cancel the subscription(s) in question directly from your account,  you will need to contact Skype Customer Service directly for assistance.  We here in the Community cannot access Skype accountholder files or records.
    This FAQ article may also answer a few questions:  'Can I delete my Skype account?'
    Here is a link to the instruction on how to contact Skype Customer Service via their secure portal: Contact Customer Service
    As you know you intend to contact Customer Service, skip past Step 2 of the instruction where several articles from the FAQ library will appear for you to review, and proceed to Step 3, Continue Support Request (the "button" appears at the lower right corner of the website page).  If you are a Skype Premium subscriber, you will be diverted to an instant message chat with a customer service agent.  Otherwise, skip past in Step 4 where you will be referred back here to the Community; no need to do this as the Community is where you started, and complete the webform so you can receive a reply via e-mail.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Need to stop Email Notification

    Hi All,
    I Need to stop Email Notification only from Compensation workbench, if is there any possiblility kindly guide me guys as I am stuck up due to this.
    Regards,

    Hi;
    Duplicate thread Re: Need to stop Email Notification only from Compensation workbench please post once
    Regard
    Helios

  • Need to stop Email Notification only from Compensation workbench

    Hi All,
    I Need to stop Email Notification only from Compensation workbench, if is there any possiblility kindly guide me guys as I am stuck up due to this.
    Regards,

    Hi,
    I can see two CWB workflows - bencwbfy.wft and benssenrtfyi.wft. These are available under $BEN_TOP. You can open these workflows through the Oracle Workflow Builder and note down their workflow names. Thereafter, you can download the definitions of these workflows (most current workflows from the database) from the database through the concurrent program - Workflow Definitions Loader - which should result in the wft files on the destination you've provided running the concurrent program.
    Copy those files from the server, and edit them locally using Workflow Definitions Loader to remove or redirect workflow notifications appropriately. Please be aware that this amounts to a customization so you should evaluate the impacts of doing this on your installation. Also, for CWB to support custom workflow, my understanding is that you need to be at Family Pack J or above (you may wish to validate this through Support, though).
    Regards,
    Rakesh

  • Need to stop spool in smartfom

    Hi ,
                I need to stop spool in smart form , which parameter and filed i can insert to stop spool in SF. Please let me know ...
    Regards,
    Veera

    Hi Veera,
    Try to set following fields to 'X' in SSFCOMPOP structure.
    TDIMMED     --> Print Immediately (Print Parameters)
    TDDELETE -->Delete After Printing (Print Parameters)
    Thanks,
    Victor.

  • HT201077 I need to stop photos from syncing to the ipod touch how

    How can I find the  menu where you can choose what sync's to the ipod touch?  I cannot find it with the "new" set up.  I need to stop the photos from my computer from moving to the ipod touch.

    in iTunes while your iPod is connected - http://support.apple.com/kb/HT1386?viewlocale=en_US&locale=en_US
    LN

Maybe you are looking for

  • Read PNG and draw to buffer

    Some one help me , how to read PNG file by binary, and then draw it to buffer , next draw to screen. Thanks

  • Please tell me the price for latest version of FCP in India.

    Hi, I have bought a mac computer from US but want to buy an FCP latest version. Kindly tell me which version would be better and what would be the price of that? and from where I can purchase it?

  • PE4 rendering stops.....due to low memory?

    I have windows vista home premium, with intel core 2 cpu 6600 @2.4 gh2, 4G ram, system 32 os, nvidia ge force 7500le and 44.9GB free memory- what gives?  Is my processor big/strong enough?

  • Business Object Data Services

    Hi! Is BO Data Services part of the MDM installation? or do we have to purchase this separately? Regards SF

  • Service No. Mandatory

    Hi, I want to make field Service No. mandatory at item detail level at time of creating Service Order. Is there any customizing settings that can be done to do so? I have tried to do it by Field Selection at Define Screen Layout at Document Level for