How to test finished game - using a meter.

I have created a drag and drop game.

I am trying to use a meter to test when the user has finished the match.

My code is show below;

var counter: number = 0;

var gameFinish: number = 18;

If (event.target.dropTarget! = null & & event.target.dropTarget.parent == myTarget)

{

correctChannel = correctSound.play ();

counter ++;

count_txt. Text = String (counter);

event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

event.target.buttonMode = false;

Event.Target.x = myTarget.x;

Event.Target.y = myTarget.y;

}

on the other

{

wrongChannel = wrongSound.play)

Event.Target.x = startX;

Event.Target.y = startY;

}

}

function TestFinish (): void

{

If (Counter = gameFinish)

{

finished_text. Text = String ("congratulations, you're done!');

Stop (1, "HomePage");

}

}

Once the user obtained the answers on the targets, nothing happens.

I have a finished_text of name text box.

Any help is very appreciated!

Thank you.

use:

var counter: number = 0;

var gameFinish: number = 18;

If (event.target.dropTarget! = null & event.target.dropTarget.parent == myTarget)

{

correctChannel = correctSound.play ();

counter ++;

count_txt. Text = String (counter);

event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

event.target.buttonMode = false;

Event.Target.x = myTarget.x;

Event.Target.y = myTarget.y;

TestFinish();

}

on the other

{

wrongChannel = wrongSound.play)

Event.Target.x = startX;

Event.Target.y = startY;

}

}

function TestFinish (): void

{

if(Counter == gameFinish)

{

finished_text. Text = String ("congratulations, you're done!');

Stop (1, "HomePage");

}

}

Tags: Adobe Animate

Similar Questions

  • How to test the USB on Satellite Pro C870 speed?

    Hello

    Please I have connect WD item 10 B 8 USB drive to plug 750Go BLUE.
    Please how can test if USB3 uses full speed or lower connection USB2 bus?
    Brand of disk Crystal 3.03 said 31 MB/s reading and writing! (too low for USB3!)

    Thank you

    Hello

    You can use some freeware like tools
    -H2testw
    -Drive the speed Test 3.2
    I used the H2testw to SD card check and test USB memory stick and I was satisfied.

  • Can PCI 6602:How I use digital lines of the Board of Directors and at the same time to generate trains of pulses by using a meter?

    Hello!

    My problem appeared when I tried to update my traditional NOR-DAQ legacy code to DAQmx.

    I use 2 meter (meter 5 and 7 meter) on PCI-6602, to generate trains of pulses, as well as the lines of e/s digital port 0 (the form lines from 0 to 7). What I do in my request, it's that I'm starting to generate the pulse train on the output of 2 meters and after that I play with the State of digital lines.

    Traditional, it was no problem to use the meters and digital lines at the same time, everything went perfectly, but in DAQmx, is not possible.

    What's happening: I start generating train of pulses on the output of counters, no errors, but when I try to change the State of a line of digital port the generation of the pulse train is stopped. What happens when I start the task associated with the digital way.

    My question is: is it possible to create a channel on digital lines without changing the channels created for meters?

    Another thing that I managed to do with the panels 'Measurement and Automation Explorer' and Test for PCI-6602, is basically the same thing, I generate trains of pulses on the output of the 7 meter and try to start a job on the digital line, but I get an error:

    "Error-200022 occurred in test Panel.
    Possible reasons:
    Measurements: Resource requested by this task has already been reserved by another task.
    Device: Dev4
    "Terminal: PFI8.

    On the contrary if I use the counter 0 or a counter 1 to generate trains of pulses I encounter the same problem.

    What resources are used by 2 to 7 of the PCI-6602 card counters and the counters to 0 and 1 do not use?

    Thanks in advance for any answer!

    Ciprian

    After doing some real tests on this device, I found that it is a normal behavior for the jury of 6602.  This is because when you start a task digital all 32 lines are configured for digital i/o, so it replaces your meter operation.  The article below the link explains a little more on this subject.  You must start the digital task before the task of counter to use the features of both in your program.

    2 meter and above will not work correctly when you perform digital i/o on NI 6601 or 6602

    http://digital.NI.com/public.nsf/allkb/43F71527765EEC3886256E93006CD00C?OpenDocument

  • unlocked my iPhone using apple 6 all ok Center of missing games after reboot. How can I load game Center?

    Center of games missing after you have unlocked the iPhone 6.  How can I reload game Center?

    What iOS you're on?

    The game Center app on iOS 10, is no longer available.
    You can access in your phone settings

  • How to create a bike games using flash AS3?

    Je wanted create a motorcycle games using Flash . but Je ne know base. If anyone is loan to help the ?

    If you need assistance with specific questions, ask.  If you want someone to do it for you, you will probably need to hire someone.

  • How to test moduleDeletionsPending, in the Simulator, I don't have the option to remove my application

    How to test the following?

    I want to test the functionality by using the method public void moduleDeletionsPending (String [] moduleNames). I had written logic that removes files from an SD card and it works when I call a menu inside my application item.

    However, it should only be run when I uninstall the application.

    In 9700 Simulator, if I select Options > Applications > [highlight the application] > [open the menu by pressing the Insert key on my keyboard] - I don't see the option to remove the application.

    I don't see the delete option for other applications, such as the Klondike card game.

    Should I set a property or the permissions of my app should be deleted in a simulator, so I can test the moduleDeletionsPending method?

    Thank you.

    You will need to 'install' the app in the BlackBerry smartphone Simulator so that your application appear in the list of applications.  You won't see here when you perform an execution/debug as, when you use the file, the option of loading or copy it into the directory of Simulator.

    The following link explains the different ways to install an application.

    How to deploy and distribute Applications

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/how-to-deploy-and-distribute-Applicati...

    Note that you can install using a simulated so USB connection.  Click on the menu of the smartphone Simulator simulation BlackBerry and check USB cable connected.  Note that you can not the debugger attached when installing via a simulated USB connection.

  • How to test a motherboard for fualts?

    Looking for means test a Toshiba Satellite L20/L25 for fualts. How to test to see if it has a graphics chip fail or its ram reading high because it sounds like the RAM fail if I go out and if I put it in it beeps once like it wants to start

    As far as I know that it can be tested using diagnostic tools special but these tools are not for public use and are designed by Toshiba to only service providers.

    Have you tested different RAM modules?

  • How can I get the digital power meter?

    How can I get the digital power meter?

    I use a method similar to the example below to measure the market factor using the inputs of a multifunction data acquisition meter.  If the duty cycle is 0% or 100% for a given period, DAQ reading times out and returns an error.  In this case, I would get the digital state of the counter of entry so I can put as cycle to 0% or 100%.  I want to do it without knowing the digital port and line the entrance of counter... for example I would like to continue referencing DAQ/ctrX since I already have this information.

    The application uses an M series: PXI-6229 DAQ and LabVIEW 2011 to make a system customized for VeriStand.

    https://decibel.NI.com/content/docs/doc-12396

    For the moment I wired the block diagram to add a case structure to check the meter ID and string constants to set the identifier of digital input, as they share the physical connection.  As much as I can say that makes the specific code for the PXI-6229 (or any DAQ with only two counters that share connections with p2.1 and p) 1.4

    I have attached the VI sub.

    When the device is used with a different data acquisition, I can add the connection and/or separate control.  Looks like at least one will be necessary given that the meter can only detect the edges... I think it was the piece of information I needed.

    Thanks for your help!

  • "NaN" - how to test in VBAI <>- BT?

    I use VBAI to measure the length of a line.

    I use LabVIEW as the custom interface.

    In VBAI, I use "Update of Inspection" to send the data of length to LV

    How can I check in vi, that this figure is "NaN? This will happen when the line is not found.

    I tried to use ' NaN/path/RefNum"of the LV, but it simply doesn't.

    Help please...

    I don't know how you test this. I tried it and it works fine. Make sure the update of Inspection stage has the flag to 'Run the VI after update of the indicators'.

    If she still doesn't for you, let me know and I can send you a simple example (if you need an example, let me know what version of the VBAI you are using).

    Thank you

    Brad

  • How to test if the pc is connected to the TCP/IP protocol?

    Hello

    I have a VI how should the data received from another PC, using a TCP/IP connection.

    My VI could connect, receive data, but if I lose the connection im not able to reconnect, because I do not know how to test if my pc is connected to the other.

    Thank you for your help,

    Best regards

    salim_mjs wrote:

    Hey,.

    I was checking for error 66, I think that it check if the connection has been closed in order to reconnect

    do you not think that the error 56 or 60 are better?

    with respect,

    56 is the time-out. This will depend on your remote service if this should be considered as error or ignored. If it is a server application, it should certainly be able to respond within the time limit. But if your host application is the server and the remote application is the client it is very common to receive a time-out error when querying the client if it has new data to send.

    Order the examples mentioned previously, they really give you a good idea on how TCP/IP network communication must all work, even if there is still a lot to improve to create a truly reliable connection. But start from there come back if you get into trouble.

    Rolf Kalbermatter

  • How can I poster print using my officejet pro 8600plus? My 8500 had this feature.

    How can I poster print using my officejet pro 8600plus? My 8500 had this feature.

    Yes, the Officejet 8500 driver works at full capacity on the Officejet 8600.

    You do not remove port 8600, you just right-click on the Officejet 8600, select properties from the Printer Ports and simply find what port the 8600 uses.  After writing this down, click Cancel to quit this game.  I suggest that you let the Officejet 8600 driver installed, you can install the version with the Officejet 8500 driver and simply select the printer you want to print time.

  • How can I put Games downloaded on a disk

    I bought a few online games, they have been downloaded through gambling house and Amazon that I played the last we bought a box out by saying that I didn't have enough video memory, it disappeared I continued the game then, the game froze it would not continue so I tried to put every game on a disc (CD - R) , but me not knowing much about computers (except how to shop and play hidden object games) I don't know how to put the games on the disk so I can erase the video memory

    I bought a few online games, they have been downloaded through gambling house and Amazon that I played the last we bought a box out by saying that I didn't have enough video memory, it disappeared I continued the game then, the game froze it would not continue so I tried to put every game on a disc (CD - R) , but me not knowing much about computers (except how to shop and play hidden object games) I don't know how to put the games on the disk so I can erase the video memory

    Hi jacshaq

    The error message you received has nothing to do with the game being installed on your hard drive. Move the game on a CD - R won't help. This isn't a problem with the hard drive space, there is a problem with the video memory.

    The error means that your video card installed doesn't have enough video memory to run the game. The only thing you can do to solve this problem is to increase the memory for the installed video card.

    You need to increase the amount of memory allocated to the video card or replace the video card with one that has more memory.

    For more information, contact the manufacturer of the computer.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Poker: need to know about the subject and how to play the game

    need to know the subject and how to play the game

    Hi young,
     
    Thank you for visiting the website of Microsoft Windows Vista Community.
     
    I noted that you want to know how to play the game of Poker in vista.
     
    What is Hold em Poker: The Hold em Poker game is a Windows Ultimate Extra that is available for users of Windows Vista Ultimate Edition. You can download the Hold 'em game from the Microsoft Windows Update Web site.

    Hold em Poker is a poker game on computer in which you compete against the computer. The hold 'em game uses the technology Microsoft DirectX to deliver smooth, animated play and rich graphics. You can configure the Hold em option set to perform the following operations:
    Play against up to five computer players
    Set the skill level of opponents
    Customize the appearance of the game cards and game table
     
    For more, see: http://support.Microsoft.com/default.aspx/KB/932925
     
    How to play: When you open the Poker game window, press F1 and it will open the Help window. The help section you have all instructions and details on how you can play the game.
     
    You can visit the link http://forums.gamesforwindows.com/ to find other members of the community have to say. You can search the Internet for more links learn more about the game of poker.

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

  • Cannot delete games using the Panel configuration or Big Fish Games Manager

    After a game that I'm not going to buy, I'm trying to remove it with Big Fish Games Manager, but he has not worked, then I go to control panel, programs, highlight the game, uninstall.  The two methods are not working, they could remove a game once out of five times.  I get a message, wait for the last item is removed.  Usually I turn my Dell/Vista 32 Bit MS Office Small Business 2007, so I can start over the removal of these games.  Big Fish response is to go to the control panel.

    Nordine salvation,
     
    1 have you made changes to your computer recently?
    2. you receive an error message when you try to uninstall the game?
    3. If Yes, what is the exact error message you get?
    4. what game you try to uninstall?
    5 are you facing this problem only with specific programs?

    I suggest you to follow the steps and check if it helps.
    Method 1: Perform a clean boot and check if it helps.
    How to configure Windows XP to start in a "clean boot" State
     
    Note: Make sure you perform the steps in how to configure Windows to use a Normal startup state
    to start your computer normally.

    Method 2:  Follow the steps and check if that helps.
    Problems installing and uninstalling programs on Windows computers
     
  • How to tell if someone uses remote adjustment to control the use of my computer?

    How to tell if someone uses remote adjustment to control the use of my computer?

    * original title - monitoring computer use *.

    Hello

    Why do you think that someone is watching your computer use? One would have to have
    loaded tracking software (trojan) on your computer or have access to the source of the network
    you use, such as cable, on your leg of it and have very sophisticated equipment.

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be harder to detect as
    the cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntiSpyware Portable Scanner - free
    http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGE

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

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

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

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

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

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

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    =======================================

    For extreme cases:

    Norton Power Eraser - eliminates deeply embedded and difficult to remove crimeware
    This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
    uses aggressive methods to detect these threats, there is a risk that it can select some
    legitimate programs for removal. You should use this tool very carefully and only after
    you have exhausted other options.
    http://us.Norton.com/support/DIY/index.jsp

    ================================

    If you are in North America, you can call 866-727-2338 to get infections of virus and spyware. Seehttp://www.microsoft.com/protect/support/default.mspx for more details. For international information, check your subsidiary local Support site.

    I hope this helps.

Maybe you are looking for