Get the data in the table in the format of number

Ive got this table with numbers in it, that I want to use for some simple calculations, but I get the message that the data in the table is not a number:

The whole is in a loop for, with teller1 as in ascending order.

code:

var xco:Array = [180,233,271,292,292,270,231,179,124,74,34,11,9,30,70,121];
var yco:Array = [11,33,73,124,181,232,270,290,291,271,234,183,125,72,33,11];

for (var teller1 = 1; teller1 < 33; teller1 ++) {}
var ringsegment_mc:Ring_1 = new Ring_1();
ringsegment_mc.x = XCO [teller1] + kernplaats;
ringsegment_mc.y = yco [teller1] + kernplaats;
ringsegment_mc.addEventListener (Event.ENTER_FRAME, vernietig);
addChild (ringsegment_mc);
{Switch (teller1)}
box 16:
kernplaats = Math.Random () * 600 + 300;
kernplaats = Number (400);
trace (yco [teller1]);
trace (yco [teller1] + kernplaats);
}
}

If the trace functions are:

undefined

NaN

so I tried to use this:

trace (yco [3]);
trace (yco [3] + kernplaats);

who gave this:

124

524

If something goes wrong in trying to read the table, but what? and how can it be solved.

I don't know what you're after, but if you want to use the same loop twice, then put it inside another loop... (Note that arrays start at index 0, not 1)

for (var i = 0; i)<2;>

for (var teller1 = 0; teller1<16; teller1++)="">
var ringsegment_mc:Ring_1 = new Ring_1();
ringsegment_mc.x = XCO [teller1] + kernplaats;
ringsegment_mc.y = yco [teller1] + kernplaats;
ringsegment_mc.addEventListener (Event.ENTER_FRAME, vernietig);
addChild (ringsegment_mc);
{Switch (teller1)}
box 16:
kernplaats = Math.Random () * 600 + 300;
kernplaats = Number (400);
trace (yco [teller1]);
trace (yco [teller1] + kernplaats);
}
}

}

Tags: Adobe Animate

Similar Questions

  • Convergence 2u5 - how to get the ISO week number in calendar view?

    Hello

    Convergence seems to be displaying week numbers "US Standard" (e.g. 27/02/2013 is week 8).
    I don't see any option to display European/ISO week numbers (27/02/2013 is week * 9 *).

    You can test on this page: http://www.onlineconversion.com/day_week_number.htm

    Tested with 2u5 and Convergence 2u4.

    Technically, Convergence depends currently dojo to calculate WeekNumber (kernel.js called dojo.date.locale.format that calls dojo.date.locale._getWeekOfYear which uses US Standard).
    The dojox.date.posix.getIsoWeekOfYear method can be called to get the ISO week number.

    EDIT: ok, known problem.
    https://support.Oracle.com/epmos/faces/UI/km/BugDisplay.JSPX?ID=15920988

    And:
    https://support.Oracle.com/epmos/faces/UI/km/SearchDocDisplay.JSPX?_afrLoop=358252901368927 & type = document & ID = 1508601.1 & DisplayIndex = 1 & _afrWindowMode = 0 & _adf. CTRL-State = hy91faqhm_93

    Published by: user13722792 on 27 Feb. 2013 02:03

    Yes, we talk about behavior. However, demand for next development was opened on this:

    15920988 DO WEEK NUMBERING CUSTOMIZABLE IN CONVERGENCE

    More on that we can read in the document of knowledge:
    The numbering of the week in the calendar week view is inconsistent with the ISO8601 (Doc ID [1508601.1 | https://support.oracle.com/rs?type=doc&id=1508601.1])

    It also contains a customization to get Convergence use week numbering.

    If you want to be officially added to the demand of development, you need to open a Service request, which contains this application.

    Cheers, Ben

  • How can I get the 6 digit number to associate my watch.  It doesn't give me a 5-digit number?

    When I try to manually associate my watch it only gives me a 5 digit number, but not the number 6 to complete the pairing.  How can I get the 6 digit number?

    Hello

    When pairing manually, you must press the name of 5 digits on the screen of your iPhone (when he shows the same device name that is shown on your watch, after typed it on your watch's 'i'):

    Your watch then displays a six-digit code, you will then enter on your iPhone:

    More information:

    Set up your Apple Watch - Apple Support

  • How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    Hi Infogoddess,

    Thank you for using communities Support from Apple! If you try to find the serial number of your iPod touch or another Apple product, you can find information and the steps in the following articles useful:

    iPod: how to find the serial number - Apple Support

    Find the serial number of your Apple - Apple Support product

    See you soon

  • When you try to update Windows XP, I get the message: error number: 0 x 80245001

    When you try to update Windows XP, I get the message: error number: 0 x 80245001

    Hello

    If you have configured the installation of the automatic update of your computer, the computer downloads the files necessary for the installation of Windows updates in the background and records them in certain folders on your computer. During installation, these downloaded files are extracted by the requirement by the services of update running on the computer.

    The error you are getting means that some of these extracted files required by Windows Update have been damaged. Now, in order to solve the problem better, we need more information about the computer that has the problem. José asked a few questions about this computer in the first reply to your message, it will be very useful if you could answer these questions.

    Here is some important information that we need:

    1. What is the level of service pack installed on your computer?
    (Click the Start button, click run, type winver, and press Enter to know that information)

    2. what update failed to install with this particular error code?
    (Please refer to the method 1: search for the installation error code in the Windows Update troubleshooting tool section of this article to learn how to check your update history to find this information)

    In the meantime, you can follow these steps on the computer and see if that helps:

    Note: These steps will give the files associated with Windows Update in your computer. Perform these steps would be clear Windows Update history on the computer.

    1. click on Start, click run , and then type Services.msc in the run box and press ENTER. This should open the windows of Services for you.

    2. then find the following three services in the list of Services and stop them (by clicking on it and click on stop) one by one:

    Automatic update service

    (BITS) Background Intelligent Transfer Service

    Cryptographic services

    3. open Windows Explorer and navigate to the following location:

    C:\Windows\

    Rename the folder C:\Windows\SoftwareDistribution in SoftwareDistribution.old

    4. go to the following location:

    C:\Windows\System32\

    Rename the Catroot2 in Catroot2.old folder

    (be careful here, do not rename the C:\windows\system32\catroot folder, you must rename the Catroot2 folder only)

    5. now go back to the Services window and start the services of three you had stopped earlier.

    Now, close all open windows, restart the computer and try updates and install them. If it fails again, please answer with the information that we requested.

    I hope that the information I provide here helps you. If you still need assistance, we know. We are happy to be of assistance.

  • How to get the full phone number?

    I try to get the full phone number using the device.

    I + 1 807 1234567 number and copy the following code:

    Phone *phone = new Phone(this);
    QMap lines = phone->lines();
    foreach(Line line, lines)   {
        if(line.type()==LineType::Cellular)
            phoneAns = line.address();
    }
    

    Gets only 1234567.

    Could you help me, please?

    Thanks in advance

    There could be a problem with the way the SIM card has been implemented.  I would recommend give you carrier a call to see what they say.

  • I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the ProX1 op

    I transferred X 1 pro overall to another PC, but opening I get the message "serial number you provided is valid but calling it a product was not found on this computer", the drop-down list of products responding to the does not contain the option ProX1.

    Hi Carl,

    It seems that you have installed Acrobat XI pro as an upgrade and an upgrade you will need a serial number for a product older Acrobat X, etc. 9:

    See, error: "this serial number is not for a product calling it" | Adobe Creative Suite

    Also, I checked with your Adobe ID on the forums and I can only locate XI of Acrobat pro upgrade recorded, please check if you have registered an earlier version of Acrobat on some another email to get this serial number.

    Let us know if that helps.

    Kind regards

    Sandrine Bani

  • Win version first elements 14 rather than Mac version you downloaded. Serial number does not work. How to get the right serial number

    Win version first elements 14 rather than Mac version you downloaded. Serial number does not work. How to get the right serial number?

    It is unclear what problem you are facing... the wrong version or the wrong serial number.  The serial number is likely for the other version.  You don't want the serial number of Windows or the Mac version?

    One of the following conditions may be useful...

    You can exchange languages/platforms for a newer version product if you follow the instructions on the following link:

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Order-Product-Platform-Language-swap.htm

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • How to get the original serial number to reload the program on the new computer?

    How to get the original serial number to reload the program on the new computer?

    Hi rehe,

    Please check the KB: quickly find your serial number to find your serial number.

    You can contact our support chat to help retrieve your serial number: serial number and activation support

    Kind regards

    Rave

  • Is it possible to get the format dd-mmm-yy to have four digits for the year?

    I have my date in the calendar control / in my tray in the format dd-mmm-yy (today is November 11, 12). Is there a way to get the AA to become yyyy (i.e. read 2012)?

    Hello

    Yes, go to the control panel

    Select the language and the region.

    Select additional settings on the Formats tab

    Click on the Date tab

    In Date formats, select Dd-mmm-AA in the dropdown tab menu

    Then add manually additional AA to make dd mmm yyyy

    Select apply.

  • How do we get the device phone number using webworks api 2.0

    I could see an example of code to get the phone number of javascript which is not supported for BB10.  The code below does not work for BB10? If so, what is one alternative to the native extension.

    
    

    Hi beats,

    It is currently not possible. The only way you could get the phone number in this moment is to create a native extension that accesses the 'phone' / 'Line' API here http://developer.blackberry.com/native/reference/cascades/bb__system__phone__line.html?f=line#functi...

  • Get the mobile phone number or ime

    Hello

    How can I get the phone number (my phone number of my device) or the IME?

    Kind regards.

    GoTo

    Options--> status--> IMEI

  • How to get the name and number of the procedure parameter list or a function?

    I stated the procedure described in the package

    If I want to get the number and the name of the parameter list, so how do I it

    I don't have I her name with the package.

    create or replace package demoApp is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2);

    end demoApp;

    create or replace package demoApp body is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2) IS

    EmpID number;

    BEGIN

    Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;

    INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);

    EXCEPTION

    WHILE OTHERS THEN

    raise_application_error (-20001,' insert the problem ' |) SQLERRM);

    END;

    end demoApp;

    -----------------

    I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "

    Select *.

    of all_arguments

    where package_name = 'DEMOAPP.

    and object_name = 'INSERT_DATA.

  • How to get the format YYYYMM, regardless of the month

    Hello, I want to be able to get the year months '201401' format and 201402 regardless of what month is only for the current year.

    Select to_char (Trunc (add_months (sysdate-2), 'MM'), "YYYYMM") of the double

    output:

    201409

    But if I move to the next month and use the same command, the output displays 201410.

    So basically how I would change the query to select the format of yearmonth from Jan Feb 2014

    Hello

    You can do this by truncating the sysdate for the current year:

    TO_CHAR (trunc (sysdate, 'YEAR'), "YYYYMM"); - 201401

    TO_CHAR (add_month (trunc (sysdate, 'YEAR'), 1), "YYYYMM"); - 201402

    This help you?

    Cheerz,

    Stako

  • Try to install Adobe Acrobat Pro DC and it doesn't accept serial number, incorrect serial number is entered.  How can I get the correct serial number to enter?

    Try installing Adobe Acrobat Pro DC and it will not accept the serial number.   Receive the message invalid serial number.

    How can I get the correct number to enter?

    Hi chrise68847178,

    You can check your serial number of this link:find the serial number of your product Adobe quickly

    Also, you can check this link:error of incorrect serial number

    Let us know if that helps.

    Concerning

    Sarojini

Maybe you are looking for