How can I add several choices of response to an object, please?

Hi all

I have declared an array that contains an object such as:

var myArr:Array = new Array ({Question: ' primary colors?' "});

How can I add questions to multiple object choice, please? These are the choices:

Red, green, blue

Orange, red, white,

Purple, yellow, green,

White, black, blue

I can certainly create answers like:

var myArr:Array = new Array ({Question: "The primary colors?", Answer1: ' red, green, blue})

, Answer2: ' orange, red, white, Answer3: "Purple, yellow, green, Answer4:"white, black, blue" ". });

I want to do is to store all the answer choices in an array called AnsArr. Can I declare a new table in the same object as AnsArr and push these choices to it?  I would highly appreciate your help.

Thank you.

You can certainly do it, and there is nothing wrong with that. You might have the question as element [0] and the table of potential responses as element [1]. I would generally use a database for such things, but if the questions and answers do not change much, your method is fine, IMHO. You might want to consider also, however, store a bit of true/false with each response so that the second element is an array of arrays in which the second-level table is distraction and its 'correctness '. In this way, the answer will be with the distractors. So, in short, nothing wrong with your method in my opinion.

Tags: Adobe Animate

Similar Questions

  • How can I add several work plans?

    I do a page of several PDF in Illustrator and I started with 10 default work plans. I need to add, but Illustrator won't let me because the maximum number of work plans for my document is set to 10. Can I add more? I know that the maximum amount of work plans is 100, but is it possible to add other without creating a new document.

    I think that I just thought of it. I clicked on "Reorganize work plans" and selected a grid format. Now, when I duplicate a work plan, I will not fall out of my canvas.

  • How can I add two different colors on the same object?

    Hello

    Say if I have something that I have a circle and I want the black semicircle and the other half with white. How can I do this?

    Thank you

    actually, sorry, forget something: you can fill it with a gradient that has two color stops in the same place. It is maybe a little more ordered according to what you need.

  • How can I add a speech bubble in images?

    When I surf the Internet, I find a promotion back to the school of Moyea, it forces me to add bubbles to the photo.

    But I'm White-hand on PS, so how can I add bubble to a picture? Could you please help me?

    Hi KilLWeBbeR,

    Do not draw anything at all if you use the custom shape in Photoshop tool:

    With the tool selected, choose the option to bubble speech on 'Form' selection in the upper part of the frame of the Application:

    Then just drag on a dialogue bubble and you're done!

  • How can I add questions to multiple choice start-up?

    Hello!

    I want to know how I can add several choices at startup

    I have 2 HDD

    Hard drive 1 have a score of 60 GB (Win XP)

    2 hard drive has two Partitions

    Partition 1 60 GB (Win XP)

    Partition 2 60 GB (Win XP)

    The Question:

    I want to add 3 choices on the Start Menu:

    Disc 1

    Disc 2, subparagraph 1

    Disc 2, paragraph 2

    Right click my computer, properties, advanced, startup and recovery, click change in the field of system startup.

    You want to add something like...
    multi (0) disk (0) rdisk (1) partition (1) \Windows="XP2" / noexecute = optin/fastdetect "
    multi (0) disk (0) rdisk (1) partition (2) \Windows="XP3" / noexecute = optin/fastdetect "

    but...

    I doubt they will start on it were they are looking for startup files.

    A safe way is to reinstall the 2 and 3 in the first Windows. Just pop your Windows CD and click on setup.exe at the root of the CD.

  • How can I add to the selection of the choices of fonts to write an e-mail message.

    The fonts that I have on my computer do not appear in the drop down of available fonts. How can I add the missing fonts?

    Be aware that the e-mail recipients can see the fonts that are installed on their own computers. If you try to use fonts arcane, exotic or non-traditional there are chances that your correspondents will not have them, so use them in your messages are probably unnecessary.

    Can you name all the missing fonts?

  • How can I add a prefix digital (such as an area code) to several cells in a column?

    I have a column of numbers without area codes.  I need to add the same area code to each cell.  How am I able to do this?

    Bonus question would be, I have a column of numbers with and without area codes.  How can I add an area (same area code) code to ONLY 7-digit cells?

    Formatting is 111-111-11111 and 111-1111 for the cell without an area code.

    I use version numbers 3.6.1

    If it is a one-time problem, then you can add a temporary column and use a formula to doctor up phone numbers.  Here is a simplistic solution, which could be longer than refined:

    Column C contains a formula that conditionally updates the value in column B.

    Select cell C1 and type (or copy and paste it here) the formula:

    = IF (B1 <>"", IF (LEN (B1) < = 10, "314-", ""), "" ") & B1

    shortcut for this is

    C1 = if (B1 <>"", IF (LEN (B1) < = 10, "314-", ""), "" ") & B1

    Select cell C1, copy

    Select the column C, paste

    You can also use an AppleScript to do the job.  After the back if you need Applescript

  • How can I add a product to my windows contacts Details?.

    Hello

    How can I add a product to my windows contacts Details?. There is an option to sort by products in list view. Sometimes, I need to sort them by products. Please notify.
    Thank you best regards &.

    Hello

    Thanks for the post.

    To help you suggest several steps to solve the problem, I would appreciate it if you could answer the following questions:

    1 what Details of the product you are trying to add?

    2. are you referring to Windows Live contacts?

    3. what exactly do you mean by "How can I add a product to my windows contacts Details?

    For reference:

    Manage your contacts:

    http://Windows.Microsoft.com/en-us/Windows7/managing-your-contacts

    If the problem is specific to Windows Live, I suggest you to ask your question in the forum of Windows Live e-mail:

    Windows Live Forum:

    http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • How can I add my wife's mobile phone number to send it

    IPad to my wife (serial number DM * 191, iOS version 9.2.1 if one of the people of importance) do not include his cell phone number on send it & receive list. How can I add to this list?

    < personal information under the direction of the host >

    According to me, there was 33 views and no response, then maybe that's not a question for the people of Apple. Should I ask Verizon about this problem?

  • How can I delete several images in the Finder at the same time

    How can I delete several images in the Finder all at once rather than one by one

    Click on an image and the successive images to press the SHIFT, or command key by clicking on the image to add it to the selection. Then Ctrl-click (tap two fingers) on any icon and choose to put in the trash. If the icons are in an easily selectable column or online, you can click on the window that contain, and then drag around them for a multiple selection.

  • How can I add titles of chapters to headers?

    How can I add titles of chapters to the headers in a long document?  My document has several chapters and I want to include the correct chapter title in the header on every page.

    Section = chapter

    Menu > insert > Section break

    at the end of each chapter and you can type a Unique Header /Footer in each Section.

    Make sure you only select also all of your text:

    Toolbar > Document > Section > headers & feet > uncheck section previous Match

    Peter

  • How can I add text on a picture in the photo gallery

    How can I add text on a picture in the photo gallery? I have photos I want to add text on a project I'm doing. I can do this through Windows Photo Gallery? I have to open the pictures on another program to do this? If so, is anyone know what program (s) would be that this is possible?

    Thank you for your help and ideas

    How can I add text on a picture in the photo gallery? I have photos I want to add text on a project I'm doing. I can do this through Windows Photo Gallery? I have to open the pictures on another program to do this? If so, is anyone know what program (s) would be that this is possible?

    Thank you for your help and ideas

    ===================================
    Photo Gallery doesn't have an option to add a
    text on the face of a photo.

    You can add text with Microsoft Paint:

    Add text to a picture with Windows Paint
    http://www.pcdon.com/deAddingTexttoaPhoto.html

    And... I agree with sohail khan... Picasa is a very
    useful application:

    The free Picasa software has several options for adding
    text of photos.

    (FWIW... it is always a good idea to create
    a system before you install restore point
    software or updates)

    Picasa
    http://Picasa.Google.com/
    (you can uncheck some of)
    the options on the final installation screen)

    After you download and install Picasa...
    Open the program and double left click
    an image to open the editing functions.

    To add text to the front of the photo...
    choose... Simple retouching / text button...

    Picasa - features "Retouching": crop, add text, editing
    http://support.Google.com/Picasa/bin/answer.py?hl=en&answer=93403

    Picasa - printing text and borders with photos
    http://support.Google.com/Picasa/answer/106191?hl=en

  • How can I add the same properties to the __names of a series of files

    I would like to add a few properties on the front of several files. instaead clicking Rename and add them one by one, how can I add the same properties in the names of a series of files

    Hello Ronke2009,

    Welcome to the Microsoft Answers Community!

    Using the function rename in Windows results in action that you said earlier, with all records even renamed with a number appended to the end. You can get the service you are looking for with a third party tool. A good search Bing.com for these would be something like Bulk Rename Utility or editor to rename block.

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope that helps, I look forward to hearing from you.

    Steven
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How can I add/download my DVDs on my computer?

    From: ezeher01

    Message: How can I add/download my DVDs on my computer?

    De : Cari (MS - MVP)

    Please explain exactly what you mean.  You want to copy your commercial DVD on your hard drive (movies)?

    If so, the answer is Yes, if you have a big enough hard.  Each disk DVD movie will take about 9 GB of hard disk space.

    Cari (MS - MVP) Printing & Imaging

    www.coribright.com/Windows

    Another response of the community of Windows Vista discussion groups

  • How can I add the volume control icon to the notification area?

    How can I add the volume control icon to the notification area? I don't know how it disappeared.

    Hello

    1 Please reboot nothing so interfere with this process.

    Click with the right button on Taskbar - Properties - tab Notification area - check box Volume - if it is grayed out
    Then, use this link. (Ditto for power, clock and network.)

    How to enable or disable the system tray in Vista icons (there are several methods
    "(et vous devrez peut-être utiliser l'ensemble)."
    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

    If necessary: a Mr Fixit

    System icons do not appear in the notification area in Windows Vista or in Windows 7 until you
    Restart the computer
    http://support.Microsoft.com/default.aspx/KB/945011

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

Maybe you are looking for