How to create a flash quiz based on circling the correct answer?

Hi all,
I am quite new to actionscripting and need to create a flash based quiz.
The user will have to circle the correct answer in the quiz.
I do know of drag and drop function but didn't know how to create circling function.
Please advise how should I get started.
Thank you in advance.
Regards,
Chewy

Hi all,
I am quite new to actionscripting and need to create a flash based quiz.
The user will have to circle the correct answer in the quiz.
I do know of drag and drop function but didn't know how to create circling function.
Please advise how should I get started.
Thank you in advance.
Regards,
Chewy

Similar Messages

  • How to create flash quiz based on circling the correct answer?

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

    Here is something to wet your appetite. This script creates squares and allows you to draw any shape with the mouse when mouse is down.
    It doesn't define what square things are drawn around - this is how lines can be drawn with AS3 in principal. Just place the script on timeline.
    var beginPoint:Point;
    var drawingBoard:Sprite;
    var drawBoardGraphics:Graphics;
    init();
    function init():void
         removeEventListener(Event.ADDED_TO_STAGE, init);
         var board:Sprite = new Sprite();
         board.x = board.y = 20;
         addChild(board);
         var numSquares:int = 8;
         var gap:Number = 20;
         var square:Sprite;
         // make squares
         for (var i:int = 0; i < numSquares; i++) {
              square = makeSquare();
              square.x = (square.width + gap) * i;
              board.addChild(square);
         drawingBoard = new Sprite();
         drawBoardGraphics = drawingBoard.graphics;
         // board filler
         var drawFiller:Sprite = new Sprite();
         var g:Graphics = drawFiller.graphics;
         g.beginFill(0xff0000, 0);
         g.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
         drawingBoard.addChild(drawFiller);
         addChild(drawingBoard);
         drawingBoard.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    function startDrawing(e:MouseEvent):void
         stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         beginPoint = new Point(mouseX, mouseY);
         drawBoardGraphics.clear();
         drawBoardGraphics.lineStyle(3, 0xff0000);
         drawBoardGraphics.moveTo(beginPoint.x, beginPoint.y);
    function onMouseMove(e:MouseEvent):void
         drawBoardGraphics.lineTo(mouseX, mouseY);
    function stopDrawing(e:MouseEvent):void
         stage.removeEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         drawBoardGraphics.lineTo(beginPoint.x, beginPoint.y);
    function makeSquare():Sprite {
         var s:Sprite = new Sprite();
         var g:Graphics = s.graphics;
         g.beginFill(Math.random() * 0xFFFFFF);
         g.drawRect(0, 0, 60, 60);
         g.endFill();
         return s;

  • How to creat a Data provider  based on different fields in SAP BW ?

    Hi,
    Experts,
    There are  20 fields  of  Plant Maintainace  like : 
    SWERK
    BEBER
    STORT
    TPLNR
    EQUNR
    INGRP
    QMDAT   ---peroid
    STTXT
    QMDAT  - Date of Notification
    QMNUM
    QMTXT
    QMART
    AUSVN
    AUZTV
    AUSBS
    AUZTB
    AUSZT
    ERNAM
    QMDAB
    AUFNR
    I  want to creat a  Report based upon these fields  ?
    For that I h'v  checked the relevant Fields to the   existing standard  Datasource  in Bw side   &
    Checked  cubes   created  based upon these Datasource  in Bw side !
    i h'v found  some fields are  existing different cubes & some are  missing .
    How to creat a Data provider  based on different fields in SAP BW ?
    plz suggest      !!!!!!!
    Thanx,
    Asit
    Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
    Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
    Edited by: ASIT_SAP on Jul 15, 2011 12:37 PM

    Hi Lee, Please see below..
    DECLARE @Machine2 TABLE
    DispatchDate DATE
    INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
    DECLARE @DateFrom DATE
    SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
    SELECT @DateFrom AS DateFrom
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • How do you create a flash in game popup on the same frame?

    How do you create a flash in game popup on the same frame?
    I need to make a popup in flash on the same frame. Basiclly like you reach the frame and randomly (I know how to do random stuff) a popup might appear saying like you got a prize; and I want the stuff in the back to stay the same.
    Please help me!
    Thankx in advance.

    Whatever frame you intend to make this movieclip appear in, you first set it to be invisible using...
    popupName._visible = false; // popupName is whatever instance name you use
    And for whatever random code you use to trigger it to appear you just set the _visible property to be true...
    popupName._visible = true;

  • How to create a new table based out of old data rows

    Hi All,
    How to create a new table based out of old data rows. Also how can we find out the DBF for different users in a database?
    Saqib

    Not very clear what you need. I'll try to interpret...
    How to create a new table based out of old data rowsIf this means how to create a table from an existing one, then you can do :
    SQL> create table <new table> as select * from <old table>;
    if you need a subset of rows you can add a where clause.
    how can we find out the DBF for different users in a database?Here I need some more clarification. What do you mean exactly ?

  • In a Quiz the Correct Answer Buttons are too close to the answer letter. How to give more space?

    When creating a quiz and previewing, the Buttons to select the correct answer are too close to the letter for the answer. How do I add space between them. Suggestions?

    I think what you mean is that the quiz question's Failure action doesn't trigger until the final attempt and that would never happen if attempts is set to Infinite.  So if you were only incrementing the variable when the quiz question registered final failure then you'd only get one crack at incrementing the variable. yes.  My bad.
    However, if you are using Multiple Choice questions, you can also trigger actions using the Advanced Answer Option.  This will trigger an action when a particular answer is selected.  So if you set this for each incorrect answer, you could increment the variable each time they select the wrong answer.
    You can also use this same Advanced Answer action to execute a conditional action that first checks the value of the variable and then shows the rollover caption or increments the variable as needed.
    Say you create a variable called WrongAnswer and initialise it with a value of 0.  Then you create a Conditional Action called CheckWrongAnswer that looks like this:
    If WrongAnswer is equal to 1 assign Wrong Answer with 2, (then on the next line) Show RolloverCaption, ELSE assign Wrong Answer with 1.
    This shows the rollover caption after the second attempt resulting in an incorrect answer.

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • How to create a custom task in SRM for the standard task

    Hi Gurus,
    How to create a custom task in SRM for the standard task  eg: TS10407929
    regards,
    George.

    from PFTC itself. Same.

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • How to create a user  y which will have the same content of existing user x

    how to create a user y which will have the same content of existing user x ,
    like all the tables,procedures,functions and packages

    You can do the following.
    1. Use CREATE USER to create the new account/schema
    2. Use exp to export old schema
    3 Use imp with fromuser=<old user> and touser=<newuser>

  • How to create objects to paint itselfs without specifiy the location

    How to create objects to paint itselfs without specifiy the location using Java 2D

    shot in the dark: pass in the Graphics2D context to the method ?

  • Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. Advice would be much appreciated.

    Am using short keyboard.  Don't know how to create plus sign which is not on the keyboard. There is no number pad. Advice would be much appreciated.

    nicholasmitaka-shi wrote:
    This is a Japanese kana input keyboard, A1242, whioch looks quite as usual except that a few functions have no space on the board and have been ommitted. 
    Is the plus sign really not available on your keyboard at the place indicated on this graphic (to the right of the L key)? You might need to use shift or alt/option or shift+alt/option.
    http://en.wikipedia.org/wiki/File:KB_Japanese.svg

  • How can I format my intell based imac without the original Tiger discs? I have a user account on it that I dont want. I have upgraded to Snow Leopard but I want to to star affresh. Thank you.

    How can I format my intell based imac without the original Tiger discs? I have a user account on it that I dont want. I have upgraded to Snow Leopard but I want to to start affresh. Thank you. I have tried loading the Snow Leopard disc whilst holding down th C key but it goes straight into install mode. I am new to Macs and I have inherited this machine.

    Hello, many options...
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
    Or...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space.

Maybe you are looking for

  • How can I export a slideshow as Quicktime video in iPhoto 9.5.1?

    I want to export a slideshow I created in iPhoto 9.5.1 as a Quicktime video, but neither File > Export nor the Export button at the bottom give me a Custom Export option. I believe this was an option in older versions of iPhoto. Thanks in advance!

  • Ipod no show on desktop of itunes

    my ipod (20mb clickwheel), when docked, doesn't appear on my desktop or on my itunes- that's if i can get itunes to even open up... also when my ipod is connected i can't quit out of itunes, not even force quit- i've been trying to trouble shoot but

  • Is iphone 6 IOS interrupt driven?

    Is iphone 6 IOS interrupt driven ?

  • Download Scheduler in 3.5

    Hello, I'm wondering if there is a way to know when a scheduling package has been downloaded for the last time by means of Download Scheduler ? And if it is possible to know how many times it has been downloaded ? This question because I would like t

  • Camera/final cut connection problem

    I can't get my camera to communicate with final cut. I have a new macbrookpro with final cut 7, a new, calumet 4-9 pin firewire and a 2006 digital panasonic video camera that has worked with older final cut systems on different macs, no longer availa