How can I single out one of the for loops elements?

Hi all, let's see if you can help with one .... I have 6 buttons [btn0, btn1 ... btn5] I want to redirect the user that clicks on one of the buttons [btn4]. I want to send them to nextFrame(); when they click on btn4.
Code:
for (var i = 0; i<=5; i++) {
    eval("btn"+i).onRelease = function() {
        selectBtn(this);
        if (!tryAgain) {
            if (correctAnswers >= btnCount) {
                trace("YesBaby!");
                //this._parent.gotoAndStop(nextFrame());
            } else {
                tryAgain = true;
                mcFeedback.text = "Try Again.";
        } else if (tryAgain=false) {
            //this.btnText.text = "Submit";
            _root.page.hideMessageBoxes();
            mcFeedback.text = "You've Got One More Chance!";
        } else {
            mcFeedback.text = "load animation";
            trace(this._name);
    function pictOpacity(pictAlpha:Number) {
        eval("mc"+i)._alpha = pictAlpha;
    eval("btn"+i).onRollOver = function() {
        pictOpacity(0);
    eval("btn"+i).onRollOut = function() {
        pictOpacity(100);
Thank you in advance.

if your buttons are movieclip buttons:
for (var i = 0; i<=5; i++) {
this["btn"+i].ivar=i;
    eval("btn"+i).onRelease = function() {
if(this.ivar==4){
nextFrame()
        selectBtn(this);
        if (!tryAgain) {
            if (correctAnswers >= btnCount) {
                trace("YesBaby!");
                //this._parent.gotoAndStop(nextFrame());
            } else {
                tryAgain = true;
                mcFeedback.text = "Try Again.";
        } else if (tryAgain=false) {
            //this.btnText.text = "Submit";
            _root.page.hideMessageBoxes();
            mcFeedback.text = "You've Got One More Chance!";
        } else {
            mcFeedback.text = "load animation";
            trace(this._name);
    function pictOpacity(pictAlpha:Number) {
        eval("mc"+i)._alpha = pictAlpha;
    eval("btn"+i).onRollOver = function() {
        pictOpacity(0);
    eval("btn"+i).onRollOut = function() {
        pictOpacity(100);
Thank you in advance.

Similar Messages

  • How can I figure out where are the heaviest volumes in order to get rid of the useless stuff?.

    How can I figure out where are the heaviest volumes in order to get rid of the useless stuff?.

    How about a few specific NOUNs to replace the vague references you have made. A little context.
    Volumes of WHAT ?
    What sort of STUFF are you trying to eliminate ?

  • HT201359 how can i find out what all the charges on my checking account are for?

    how can i find out what all the charges on my checking account are for?

    If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it. Click on that and you should then see a list of your purchases - the most recent purchase is above the list. I'm not sure if that shows auto-renewing subscriptions (I don't have any so I can't check).
    If you can't find the charges and you haven't added or changed your card details on your account (when you do then a small temporary store holding charge may be applied to check that the details are correct and valid, which should disappear within a few days) then you can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How can I sign out or remove the old apple ID in app store's updates?

    I created a new apple id and signed in the app store. When I update my apps, it requires me to sign in with my old apple id, and I cannot sign out my old id. How can I sign out or remove the old id in app store's updates?

    Delete those applications and then download them from the new Apple ID. This may require repurchasing them.
    (100330)

  • The float in windows option is grey and not accessable ? How can I copy from one image to another ? Elements 11

    The float all in windows option is grey and not accessible ? How can I copy from one image to another ? Elements 11

    You really are not getting this.
    "I guess I am still completely shocked that as a parent we can't download something for everyone to use."
    Why do you continue to think this although we keep telling you that this is not the case.
    You do NOT have to purchase anything twice.  You can share the music with as many ipods as you like in your household.
    The ipods are designed to sync with your computer regularly.  You should have been syncing these other ipods with your computer all along, thus transferring the purchases to your computer where that music can be synced to as many ipods as you like.
    Take on of the ipods with the music in it.  Open itunes on your computer.  Plug in the ipod.  Do not sync.  Click File>Transfer Purchases  This will transfer the purchases from the ipod to the computer.  Make sure that you have authorized your account on the computer:  here are directions for that. http://support.apple.com/kb/HT1420
    Unplug the ipod.
    Plug in the other ipod with purchased music.  Do not sync.  Click File>Transfer Purchases  This will transfer purchases from the ipod to the computer.
    You can now plug in any of the ipods, select what you want to sync and sync.
    Have a look at the manual for the ipod.  http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf

  • How to speed up my code inside the for loops,

    how to speed up my code inside the for loops using c# WinForm.

    Hi  John,
    Please take a look at the reply from Wyck in the following thread.
    How to speed up for loop?
    His answer is very comprehensive.   Thanks.
    Best regards,
    kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TS1702 How can I find out which is the correct app to read a PDF on my iPhone 5?

    I purchased a PDF reader from the app store, but I still cannot read the file. When I try to download the file, it states that I need an updated version of PDF. I notice there are several PDF apps available, but I don't know which is the correct one. How can I find out the correct application I need?

    Select the tune and then - Get Info - in the dialog box is a note of the Apple ID used to purchase.
    MJ

  • My storage, it says I have 44.58GB of "other storage"? How can I find out what is the "other" storage and/or delete it?

    HELP! My storage, it says I have 44.58GB of "other" storage. How can I find out what this "other" storage is and/or delete it? I have no space available to update or download the software for my personal cloud.

    About “Other”:
    http://support.apple.com/en-us/HT202867
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Empty Trash.
       http://support.apple.com/kb/PH13806
    3. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    4. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    5. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    6.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Delete the files you don’t want to keep.
       Be careful. Delete only the files that can be safely  deleted.

  • How can I find out without opening the box whether my IPAD is a 4th generation with retina display

    ow can I find out without opening the box whether my IPAD is a 4th generation

    Did it fall of the back of a truck? Can't you just ask where you bought it?
    Or check here: http://support.apple.com/kb/ht5452

  • HT201303 how can i find out what purchases were for from itunes appearing on my credit card statement?

    How can I find out what purchases from i tunes on my credit card are for

    iTunes Store & Mac App Store: Seeing your purchase history and ...

  • If I accidently open a 2nd session of firefox resulting in two open windows when I close one window they both close and I lose my tab groups. How can I close just one of the two windows?

    I have 3 profiles, one of which I typically use. I have firefox prompt for the profile when it loads. I recently renamed the profiles (earlier this week). So... the profiles do not exactly match the folder names for the profiles.

    I don't understand what happened above, but ericn1, wasn't your problem that you tried to close one browser window using the red X, and ALL of them closed? How did any of the above help you solve your problem? jscher2000 gave you alternate methods of closing windows but said that closing a window with the red X "should" work. It doesn't work, because it is closing ALL your windows, not just the one you are clicking on. I am now having the same problem. with Firefox.
    Understand I do not have the problem with any other program. In other words, I can open multiple windows in Paint Shop Pro, IE, Notepad, etc. and close one with the red X and all others remain open. It ONLY happens when using the Firefox browser.
    The red X should close only the window that you are in when you click on it.
    NOW, before someone suggests tabs, I don't like them and don't use them. My choice. Before someone says my browser is out-of-date, (3.6.13) I am using it because it was the last version that worked reliably on my computers, both at home (Windows 7 Professional) and my office (Windows XP Professional).
    When I updated to the last Firefox browser, both computers started seizing up (nothing worked and had to reboot using power button) Removing that version of Firefox and going back to this version solved that problem. Fact remains, version has little to do with this problem. I've seen other posts around the net about this with different (newer) versions of Firefox.
    So . . . does anyone have a solution to this that doesn't involve using keystrokes or hot keys to close windows instead of the red X that should work properly?

  • How can I find out my data usage for the past 3 months?

    Greetings all, I have been a long time Verizon customer, and as such I, along with my husband, was grandfathered into the unlimited data plan. When I last spoke to a representative, they informed me that the only way we were going to be able to keep our unlimited data was by paying the full retail price ($600+) to get a new phone. So we were considering upgrading and changing to one of the newer data plans so we could still get the discounted price on the new phone, but I would like to make sure I choose one with enough data, without paying for a bunch of data that I don't use, however MyVerizon only shows me the amount I have used since the start of the billing cycle. Is there a way to find out the data usage for both my husband and myself for the last 3 months so I can choose the right option?
    Thanks in advance for your help!

        Hello sweetpea1221! How exciting that you're considering upgrading with us. mrhelper is helpful, indeed. You can view your data usage for each line under the View Bill option via your My Verizon account. You can also view your 3 month average  data usage with our Account Analysis feature. Here's a link that will be helpful in doing so http://bit.ly/vnLjqO. I'm confident that we have a great plan to match your data needs. Please let us know if you have further questions.
    TanishaS1_VZW
    Follow us on Twitter @VZWSupport

  • How can I figure out, (and control), the sampling rate of my IMAQ board using LabVIEW?

    My IMAQ board is sampling at a certain rate and I do not know what it is... how do I figure this out using labVIEW? Also, how can I make sure that it is not waiting any time at all for sampling i.e. it is not waiting for any wait time functions or any of them other things that cause the program to slow. The reason that I want to do this is because the Kodak Imaging board that I am using seems to be delivering at a much higher rate and no my graph there are major gaps between each sample according to the time plot (for instance it goes from 178280 to 178290 all the way by 10's to 178340. But when the program is running continuously it has gaps of like 355 or so miliseconds I guess.
    Maybe that is just the time that it takes for the program to refresh itself, I am not sure. where could I find where this missing information is going?
    Thanks much,
    Brian

    Brian,
    Your IMAQ card should be sampling at the same speed of the camera, as long as your camera isn't exceeding the cards limits.
    As for how many images you're acquiring in your program, it depends on how long it takes for you to finish one loop of your code. It sounds to me that you may have a lot of processing happening after each grab, therefore slowing down the system.
    Try to comment out your processing (maybe with a case structure set to false) and output only your acquired images. See if that makes a difference. You might also try running this on a faster computer.
    BB_Phil

  • When an email contains multiple attachments how can I forward just one of the attachments in a new email?

    I am new to IPAD use and need to forward one attachment from an original email that contains multiple attachments - how can I isolate and forward only one of the attachments?

    Aha! I have been doing just that. However, what has been tripping me up is that I am also used to clicking the Go Online/Go Offline toggle button on the top menu bar when I manually check for messages on Cox. Apparently when you take one inbox offline, that button switches to Off even though the other inbox is still online. If I just ignore that button and go on or off via the cox mailbox listing, it keeps comcast from being reactivated.
    Thanks so much for helping me think this through.
    Edited to add: I removed that dang button from my menu so I can stop clicking it.

  • Why is my internal memory so full? How can I find out what is the "other" that is taking up so much space?

    I'm not very tech-savvy. My iPhone is backed up on my computer and all my photos are in my computer. I'm going to send it away to have the screen fixed and the people from AppleCare recommended to back it up just in case. So, I am going to backup my computer for the first time since I bought it in mid 2011. I go see how much space I need and I see that I only have 15 GB of memory space left and this huge space being used up by "Other". I don't know if its because I updated it to Mavericks. How can I see what that is? Also, I've never downloaded movies so I don't know why that is also there. Please help ASAP!
    I added a photo.

    "Other" is everything that isn't in one of the other categories. For instance, it includes all your user documents that are not movie, audio, or photo files.
    Regardless of that, you need to use an external drive at least large enough to backup your entire user folder (the one with a House icon). Better is to get one at least as large as your built-in drive & use something like Carbon Copy Cloner or SuperDuper! to clone the whole built-in drive to it.

Maybe you are looking for

  • How do you reinstall itunes without losing all of your data

    I'm losing my mind.  My son accidentally disabled his ipad mini (thought it would be cool to put a passcode on it and now he's locked it up because he entered it wrong 6 times).  I've tried everything at the link for restoring, but it's not working. 

  • What is the use of Running Program RMBWV3nn in SE38...?

    Hi All, Please Can anybody tell me, What is the use of using program <b>RMBWV3nn</b> in SE38..? Regards, Kiran Telkar

  • How many records does JDBC adapter can obtain in one polling?

    Hello everybody, I need to do an interface between legacy system and SAP ECC, the legacy systems have a DB so i use the jdbc adapter (sender) and receive the information to SAP ECC with proxy, so i need to activate the polling option from my jdbc ada

  • Resizing and Printing a .svg File

    I have a svg file that's a map that I downloaded from OpenStreetMap.com.  What I'd like to do is divide map into sections, rearrange them and then increase the size of it up to 6 feet in diameter and print it.  Is all of this possible to do with an s

  • Packaging JavaFx Applications in a single executable file (.exe)

    Hi, Can anyone let me know how i can convert my javafx application into a single .exe format. I am able to convert into an executable jar file. But i want to convert it into native code. Are there any tools which can convert javafx application to .ex