Can I convert TimerEvent MultitouchInputMode?

Hi all I am trying to create an app for android (spaceinvaders) siple and I created a TimerEvent for laser

This is the code

___________

Create a timer that executes a function every second 1/2

var laserTimer:Timer = new Timer (500);

laserTimer.addEventListener (TimerEvent.TIMER, timerListener);

function timerListener(e:TimerEvent):void

{

In the binding for a movieclip library should be Laser

var tempLaser:MovieClip = new Laser();

Place the laser at the edge of the ship of the pla5er

tempLaser.x = player.x + (player.width/2);

tempLaser.y = player.y;

tempLaser.speed = 10;

Lasers.push (tempLaser);

addChild (tempLaser);

Sound: sound var = new shoot();

Sound.play();

}

Table of lasers is necessary;

function moveLaser (): void

{

Laser displacement

var tempLaser:MovieClip;

for (var i = Lasers.length - 1; i > = 0; i--)

{

tempLaser = Lasers [i];

tempLaser.y = tempLaser.speed;

If (tempLaser.y < 0)

{

Delete 1 table of Lasers laser;

removeLaser (i);

}

}

Delete all tempExplosion table of explosions that has already played;

var tempExplosion:MovieClip;

for (i = explosions.length - 1; i > = 0; i--)

{

tempExplosion = explosions [i];

If (tempExplosion.currentFrame > = tempExplosion.totalFrames)

{

removeExplosion (i);

}

}

}

____
now I ask convert this little piece of code a Multitouch event is the code

Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;

movieClip_1.addEventListener (TouchEvent.TOUCH_TAP, fl_TapHandler);

function fl_TapHandler(event:TouchEvent):void

{

code

}

_____

What should I do if it ' possible?

tnks a lot at all

then delete all of the code in the timer and use:

Create a timer that executes a function every second 1/2

stage.addEventListener (TouchEvent.TOUCH_TAP, timerListener);

function timerListener(event:TouchEvent):void

{

In the binding for a movieclip library should be Laser

var tempLaser:MovieClip = new Laser();

Place the laser at the edge of the ship of the pla5er

tempLaser.x = player.x + (player.width/2);

tempLaser.y = player.y;

tempLaser.speed = 10;

Lasers.push (tempLaser);

addChild (tempLaser);

Sound: sound var = new shoot();

Sound.play();

}

Tags: Adobe Animate

Similar Questions

  • How can I convert my friends to the Game Center on Facebook?

    With the new iOS for my iPod & iPad, I lost all my friends Game Center.  I have two games that I play as I would like.  How can I convert my friends to the Game Center for Facebook friends?

    You do not have. They have two different systems. What you need to do is to start on. For example, if your game has a forum or support page, they may have a way for people to communicate to a friend. Or if they have a facebook page, they probably have a system for "I want to make friends."

    It is now up to the games themselves to put in place the means to a friend using iMessage. You will need to wait for your game to do.

  • How can I convert Thunderbird emails to PST format?

    I learned to convert all my emails from Thunderbird to Outlook by the administrator of my office because to leave now, so use MS Outlook for emailing purpose. All my previous emails are in the form of Thunderbird, so I need to convert them to outlook to work smoothly without losing any emails. I need the solution that can help me more rapid as I have very less time. Is it possible to convert emails from Thunderbird to Outlook in bulk? can I convert Thunderbird to Outlook?


  • How can I convert a page typed into an editable text file

    How can I convert a page typed in an edible text file? I have a 50 page typed (on a typewriter ;-) document I want to convert (scan?) in a format so that I can then open the file in a text editing application (Word?) and edit.

    How is the most effective (and least expensive) way to do it?

    Thank you

    HAL

    < re-titled by host >

    "Edible text file?" You hear as he print on rice paper, so you can serve it up like at dinner side dish? You want someone to eat their words

    I think that the last two multifunction printers, I bought came with some kind of OCR characters (OCR) software as part of the sweeping package.  I guess that's not the greatest.

  • How can I convert an incoming call read only an attachment so I can change it?

    How can I convert an incoming call reads only attachment so that I can change it? Save in Word does not it, and find research peut t.

    So, the problem seems to be that attachments are stored as files read-only by Thunderbird and an application it can open without editing privileges, so you cannot change the. Read-only mode was chosen because these files are kept in a temporary location. For example, if you modify and save the back, they are deleted when Thunderbird is closed, so losing your changes. The idea is to force to save you to a different location. You should be able to do it, then open it from that location with full editing capabilities.

    For a permanent change in this behavior, go in the [tools >] Options > advanced > general tab and click on Config Editor there. After you confirm the warning, copy - paste browser.helperApps.deleteTempFileOnExit into the search bar and switch false to true by double clicking on it. Now, saved attachments are created with read/write permissions, but is more removed when Thunderbird is closed (i.e., stored in % AppData%\Local\Temp).

  • Since the new updates I can't convert my tracks, I downloaded in mp3. have they remove this feature?

    Since the new update I can't convert my tracks, I downloaded in mp3. have they remove this feature? I used to be able to right click on a leaflet and create mp3 version of a wav file.

    It is moved to the file > create a new Version.

  • microsoft office files can be converted to Pages

    Microsoft Office 2008 files can be converted to Pages

    Pages can open and edit Word (.doc or .docx suffix) documents without problem, as the same does not contain some weird formatting or such.

    You will need to explicitly start Pages and open the document in the open air... on the file menu, since by double-clicking Start Word (or set up a warning that the program is not available). Once you have saved it as Pages (.pages suffix), you will be able to open it by double-clicking.

  • How can I convert profiles Configfree 5.90.07 ConfigFree 7.2.16?

    How can I convert profiles Configfree 5.90.07 ConfigFree 7.2.16?

    I had on my old NB (M115-S3144) 40 ConfigFree profiles...
    I intend to 'import' in my new NB (M305-S4835) but it does not recognize!

    What can I do?

    Thank you...

    Hello

    I think that this is not possible because you tried to import from another model of laptop.
    I m not very well, but maybe that's a reason why it doesn't work because the ConfigFree software is different.

    Seems you have to re-create these profiles on the laptop Satellite M305.

    Best regards

  • Can I convert a Pages, Microsoft Word doc?

    Can I convert a Pages, Microsoft Word doc?

    Normally, you should be able to simply open the .doc with Pages and then save it again in .pages format.  Have you had a problem what do I do?  Of course, you want to keep it as a .doc so that MS Office can always read (it cannot read .pages).

  • When I download programs from the internet, they appear just in the form of collections of files TextEditor. How can I convert them into a program.

    When I download programs from the internet, they appear just in the form of collections of files TextEditor. How can I convert them into a program.

    What kind of programs? When you download from? How do download you them?

  • Are the Photos and videos uploaded (iCloud Photo Sharing) equal to the (ios iphoto reviewed)? If not, what is the new equal to that? If so, can I organize the layout as I wish? can I convert (iphoto ios log backup) to the file (iCloud Photo Sharing)?

    I always use the ios 7 because I like my reviews of iphoto, ios 8 and after don't support is not iphoto, I intend to upgrade to the latest version of ios. so my question is:

    Are the Photos and videos uploaded (iCloud Photo Sharing) equal to the (ios iphoto reviewed)?

    -If so, I can arrange the provision in the way I want? What happens if you want to convert my old (iphoto ios log backup) to import (iCloud Photo Sharing) that it is?

    -If not, what is the new equal to that with the possibility of transferring these journals?

    Thank you

    No they are not really the same thing and you can't convert one to the other. When / if you update, you will simply lose your logs. You cannot influence other available photos of the order appear in

  • Pencil apple text can be converted into typed text?  What app is necessary

    Text written with pencil for an iPad accessory Pro can be converted into typed text?

    There are apps of handwriting which convert handwriting to text typed.

    Search the iOS App store for writing text applications.

    Good luck!

  • How much of my data to my computer Windows Xp can I convert an Apple computer

    How much of my data to my computer Windows Xp can I convert an Apple computer.  Will it take all new programs (software)?

    As the software will, Yes, you will need software almost entirely new.

    If you have installed your software to check disk (cd or dvd) of your software box came in. It will say if it is Mac compatible. Some discs of software include installers for Windows and Mac computers.

    The good news is that a lot of software that you are familiar with the use of Windows is a Mac version that you can buy. For the instance of Microsoft office - you can buy a Mac version of the software and will be able to open your existing Word, Excel, files etc. that you have on your XP computer.

    So far as photo/image files, PDF files and other common files of format you have on your XP computer, you will be able to open these files very well on a Mac.

    Good luck on your switch. As a recent PC to Mac converter, I don't know if anybody somewhat a challenge. But I found it's worth!

  • I have Pages version 5.6.1. How can I convert a document that I create in this version to an older version (Maverick) of Pages? I created documents in version 5.6.1 and I need for my colleague to open documents, but it has the ol

    I have Pages version 5.6.1. How can I convert a document that I create in this version to an older version (Maverick) of Pages? I created documents in version 5.6.1 and I need for my colleague to be able to open the documents, but it has the old version. I already clicked on 'option' and select 'duplicate' to get the prompt "save under". However, when I do this it does not to choose another version.

    To create a document that can be opened with previous versions of Pages, open the document in Pages, and go to the menu file (in the menu bar)-> export as-> Pages ' 09. Save the file and send it to your friend, if she can open it without any problem.

  • Can someone convert my VI´s?

    I have some files I've done in labview 9, but I need for school in labview 7 and my labview test 9 expired so I can't convert me.

    It is a zip file with the files that need to be converted
    http://www.sendspace.com/file/3r0q85

    If someone could make this film as soon as possible I would really appreciate it.

    Here, they're like LV7 in a zip file.

Maybe you are looking for

  • How to remove rogue spyware xp guardian

    I wonder how to remove xp guardian rogue spyware which is imitating the window Security Center. I can go online, if I use the Task Manager to "end now" every few minutes! I ran a full scan with essential, Defender and removal of malware and nothing s

  • VeriSoft Access Manager Update.

    I've recently updated my (laptop running vista) with an update for Verisoft Access Manager. Since then, he will not use the option of fingerprints and always ask the password for access. It was working perfectly before. Ideas for a solution?  Thank y

  • 'Error 2 (Windows error 5)' - while reinstalling iTunes

    I have Windows Vista Home Basic on an eMachines t5082. I just bought an iPhone 4 two days ago, so I downloaded and installed itunes. (As a backdrop, I had iTunes on my computer 3 years ago and has never been able to sync my old iPod friend on this on

  • Cannot delete windows.old files

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: Hi, am unable to complete the removal of the files from windows.old, securi-rom files look like they're language scrambled, computer says

  • Dreamweaver - cut and paste text of strange characters appear

    Just started using Adobe Dreamweaver.   When I cut and paste Google adsense of Google Chrome ad codes in Dreamweaver, the "citations" are transformed into: & gt;How can I fix it?Here's a sample:copied text:"< script async src="//pagead2.googlesyndica