The multiplication within a text box...

Hey all!

Currently I am developing a mini-test within a project (Action Scipt 2) I created and could use some help.

Basically, it's a multiple-choice test/questionnaire which adds 1 point to a text box (which will be the number 0 in it to start) If a wrong answer is selected.

Example:

Question 1 Total: 0

(a) answer 1

(b) answer 2

(c) answer 3

(d) answer 4

Say so the answer 3 is the right answer, when you click on it it will go to the next question/framework. But if a, b, or d is clicked, I need to show some kind of 'Wrong' meesage (which will be a text box), display the 'NEXT' button (which is not visible/clickable until an answer is selected) to go to the next question/framework and add 1 to the box 'Total', at the same time.

There will be a total of 3 sets of 20 questions (60 questions in total) and at the end of 3 rounds, if the user ends up with say 20 in the "Total" box, 5 points will be automatically deducted leaving it with a total of 15 (5 points subtracted is sort of a bonus at the end). Thus, on frame of 60 for example (the last picture), he would says the box 'Total' to subtract 5 by the end number of code. If the total is greater than 0, it will go to a certain range, and if the total is 0, it will go to a different image.

Who is? Any ideas? I do it too hard... is there an easier way?

var scoreVar:Number = 0;  initial scoreVar

scoreTF (scoreVar);  update your textfield

answer3Btn.onRelease = function() {}

scoreVar ++;  increment scroeVar because it is a correct answer.

scoreTF (scoreVar);  update your textfield

}

function scoreTF(n:Number) {}

yourtextfield. Text = n;  assigns the value of scoreVar to the text property of yourtextfield

}

Tags: Adobe Animate

Similar Questions

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

  • How to remove the character within a text.

    How to remove the character within a text.
    If I have a text like: "[4, 5, 6, 3, 9]" How can I remove the commas?
    Thank you
    and Merry Christmas.

    A possible technique would be to use a repetition structure that loop until all of the commas are removed:

    on mouseUp me
     
    theString = '[4, 5, 6, 3, 9].
     
    Repeat while theString contains «,»
    thePos = offset ("," rope)
    delete theString.char [thePos]
    end repeat
     
    put the rope
     
    end mouseUp

    However, this probably isn't the most effective technique if you are dealing with very long strings.

    If you use the JavaScript syntax, you can strip characters with a regular expression.

  • How can I activate the spell for a text box that is just a line, for example submitted by e-mail?

    In an earlier version of Firefox, I found a site somewhere that told me what to do to turn on spell checking for text boxes that are just a line. I'm used to be able to send an e-mail with a subject that was not a misspelling. Now, it does not work. Please tell me how I can activate it once again. I'm on a Mac using Firefox 6.0.2. Thank you!

    See:

    You can set the pref layout.spellcheckDefault to 2 on the topic: config page.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences you can restore the default value or change via the context menu.
  • Problems related to the film project title/text boxes.

    In the opening of my external hard drive iMovie projects, many title/text boxes throughout the film are whitewashed.  When I click it, the text appears, but when playing the movie, they come again white.  I had installed iMovie v.10, could not navigate, so returned to old iMovie 9.0.7 and reused, but found this problem with movies.

    iMovie 11 (version 9.x.x) is not compatible with El Capitan and results in errors that you see more than others. iMovie 10 also reported problems with the video in the event viewer and the chronology of white. Only iMovie 10.1.1 is fully compatible with El Capitan. I would upgrade to 10.1.1. Yes, it's a different interface, but not for difficult cases, you read up on it and watch a few tutorials.

  • How can I change the size of a text box without moving boxes?

    This is my problem:

    Regularly, I have several text boxes in a row area and need to extend the boxes to display all the text. I used the direct Selection tool to select all the boxes and then use the Middle bounding box handle to drag the boxes longer. When I do this the position of the box moves as well. If I type a number for the height of the boxes, it extends the type.

    How can I make the boxes more time to show all the text without moving the boxes?

    I use Illustrator CC2015 on Windows 7.

    Thank you.

    OK, I see now, this is happening to me also. But on a much smaller scale, so did not notice. My Y was pt 178. After scale if has 179.247

    1. With nothing selected appears hovering over the region, which I marked in red at the bottom of the pane click
    2. Hold the SHIFT key, click on the second box
    3. Click and drag on the 3rd bottom of the text pane and drag down.

    Who has taken my y-axis, let me know if it works on windows? Don't know how to get the tool to work.

  • Overview of the disabled scale/resize text box

    Usually, when I scale or resize a text box, it will turn into direct, giving me a glimpse of what the text will look like if I let go of the mouse, now if I resized a text box that is exactly the same until I let go of the mouse, how it move to its new position. It is very difficult to explain, and I can't really give an example image. I'm sure it's a very simple solution, I think I just need to check a box somewhere.


    Any ideas?

    Either change your preferences for Live screen drawing immediate value, or click and hold a moment before sliding the deferred value with him.

  • What is the line outside my text box?

    Can someone help me please understand that this lighter blue line is above the text box? It seems to be an extension of the text box, or a spacer/padding? I was given this file by another designer and unforunately, I'm not familiar with this feature. I would use it in the future - remove/change/add - to text boxes...  Thank you!!!

    Screen Shot 2015-06-05 at 12.14.05 PM.png

    I guess you see a text wrap the area where the skin is attached to:
    the values of left, right, down: 0

    top: the amount that you recognize as 'thin blue line '.

    Like this (German UI):

    Uwe

  • Get the frame to a text box

    I'm having problems to find the exact image of a page of text box element.

    The code I use is simply:

    InterfacePtr < IShape > itemShape (pageItemUIDRef, UseDefaultIID());

    clippingBounds = itemShape-> GetPrintedBBox (PMMatrix (), Transform::SpreadCoordinates());)

    InterfacePtr<IGeometry> pageGeometry (pageUIDRef IID_IGEOMETRY);

    PMRect pageBounds = (pageGeometry-> GetStrokeBoundingBox (::InnerToParentMatrix(pageGeometry)));

    clippingBounds.Top (clippingBounds.Top () - pageBounds.Top (());

    clippingBounds.Left (clippingBounds.Left () - pageBounds.Left (());

    clippingBounds.Bottom (clippingBounds.Bottom () - pageBounds.Top (());

    clippingBounds.Right (clippingBounds.Right () - pageBounds.Left (());

    For the text box in the attached screenshot, it gives me back clipping limits like X:174, Y:175, W:246, H:470. However, you can see in the screenshot the text block itself is X:174, Y:190, W:246, H:454

    The values I'm getting seem to correspond to the scope of the selection highlight if I have the highlighted text.

    I have yet to find all values / combination of the values the text-related interfaces that will allow me to directly get (or replace) rect real framework, as illustrated by InDesign.

    Anyone know how to do in this regard?

    Thank you

    Liz

    text.jpg

    Hello LizW,

    do not assume that page originated at the top left of the page. If you want to have the coordinates of point page relative to the left and top of the page and then transform the bounding element of its internal contacts page to disseminate the coordinates and, except internal coordinate of the page. After that translate the outcome of the origin of the page area delimitation.

    Markus

  • restrict the issue of characters text box

    I am relatively new to Flash programming, and I'm having a problem where all the text boxes will allow only characters 2,3 and 4 to enter. They were put in place with the .restrict = "0-9" to allow all the numbers.  I even created a test text box, and that has the same problem.  Is there something I'm missing, which is the cause?  I use Flash Pro CS6 on a Windows XP computer.

    Usually, when characters do not appear in a textfield it means police must be integrated into the TextField.  If the textfield on the stage, select it and in the properties panel, click the Embed button and choose the font/characters you want to use for the textfield object.

  • How is it possible for the content of all annotations to the output file or text box?

    Hello

    I try to get the content of all annotations (except accessories) within a PDF file. Creation of the Javascript code to enumerate all annotations in the document is not a problem. I am puzzled as to how I can save the output in a text file unicode (preferable to a file selected by the user name) or place it in a form textbox in a dialog so that the user can copy to the Clipboard. As far as I understand, it is possible to generate a new PDF with the release, but I would like that the code also works in Adobe Reader.

    Thank you very much!

    Best regards

    Stanislav

    You cannot write to a file with the player. You can with Acrobat with certain restrictions, using data, which are attached objects. What is possible is documented in the Acrobat JavaScript reference.

  • HAVE CS4 - stopped allowing me to grab the handles and size text box or picture etc.

    It used to work fine, then one day, he stopped allowing

    I manually, drag and size of objects, etc. text boxes.  I reinstalled Illustrator, restarted, still the same on all the

    new or existing files. Help, please.

    Try view > show/hide area delimitation. Its a toggle Cmd (Ctrl) - SHIFT - B that some software use "BOLD" fonts is false.

  • help the evolution of the size of a text box

    Hello. I have an a couple of text aligned vertically in a < Vgroup > boxes. each text box is filled with the xml data. but sometimes it didn't isn't a lot of data for a particular text box and I want to reduce the number of lines in the text box, so it is not so much empty space. just not sure the best way to go about it. any suggestion would be great. Cheers.

    Try the following code.

    
    

    Kind regards

    Anitha

  • What is the problem with my text box?

    InDesign lets me select the text box, but does not allow me to move. I've never had this problem before. I checked the items and they are not locked, I have no wraparound, related work or layers. I can move the text box if I use the arrows on the keyboard only. Help, please!  Oh, BTW, whatever it is... it has infected now all my InDesign documents... old and new... Help

    We got it.

    . INX is Interchange Format in the list export.

    See Adobe InDesign CS4 * setting preferences to know how to replace preferences.

  • How can I stop the Captivate adding in text boxes / tone clear when I film a project?

    Morning/afternoon

    Whenever I have a new Captivate 4 adds project always in the additional text boxes with 'Click on OK button' and 'Opens a window setting' and also adds in the film's point culminating own boxes.  How to disable this option?  It's not so much of a problem that I have to go in and edit each screen anyway, but I was wondering if there was a way to stop appearing in the first place.

    Thank you very much for your help,

    Michelle

    Hello

    This by changing recording preferences.

    Click on Edit > Preferences > recording > Modes and choose one of the modes. Demonstration seems a likely choice.

    Select or clear the options you want.

    Click on the image below to see full size.

    See you soon... Rick

    Useful and practical links

Maybe you are looking for