Several balls of fire, but when I put the closure I get error (access of undefined property tour)
stage.addEventListener (Event.ENTER_FRAME, loop);
Loopback function (event: Event): void
{
Shot.x += 10;
}
fire_btn.addEventListener (MouseEvent.Click, Fire);
function fire(MouseEvent:Event):void
{
var shot: ball = new bullet();
this.addChild (shot);
Shot.x = player.x;
Shot.y = player.y;
}
you're upgrading shot local fire() and lose your reference.
use:
var shotA:Array = [];
stage.addEventListener (Event.ENTER_FRAME, loop);
Loopback function (event: Event): void
{
for (var i: int = shotA.length - 1; i > = 0; i--) {}
shotA [i] .x += 10;
{if(shotA[i].x>stage.stageWidth)}
shotA.splice (i, 1);
}
}
}
fire_btn.addEventListener (MouseEvent.Click, Fire);
function fire(MouseEvent:Event):void
{
var shot: ball = new bullet();
shotA.push (shot);
this.addChild (shot);
Shot.x = player.x;
Shot.y = player.y;
}
Tags: Adobe Animate
Similar Questions
-
My computer will not go into Hibernation mode. I checked the hibernation mode. But when I close the laptop, I get a message saying prepare to Hibernate.
Hello
1 I want to erase the General corruption and repair/replace damaged/missing system files:
Start - type this in the search box-> find COMMAND at the top 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/928228Run 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============================================
After the foregoing: a Fixit for Hibernate
How can I enable hibernation on my Windows Vista computer?
http://support.Microsoft.com/default.aspx/KB/929658How to reactivate the lack of Hibernate Option in Windows Vista?
http://www.askvg.com/how-to-re-enable-missing-Hibernate-option-in-Windows-Vista/-------------------------------------------
More if necessary:
Check your settings (BIOS/CMOS) - usually F2 as you start - Wake on Lan, Wake on Modem and so on.
Troubleshooting Windows Vista sleep and extended
http://www.computerperformance.co.UK/Vista/vista_hibernate.htmHow to troubleshoot performance problems with sleep, hibernation and resume in Windows Vista
http://support.Microsoft.com/kb/950686May need to reset all to default power settings and then place back as you prefer.
How to solve a problem of Mode for Vista and find a Solution
http://www.Vistax64.com/tutorials/63567-power-options-sleep-mode-problems.htmlHow to enable and disable Hibernation - you can try to disable and re-enable the it. http://www.Vistax64.com/tutorials/165508-hibernation-enable-disable.html
How to restore the default power in Vista (and then go back and change as you wish)
http://www.Vistax64.com/tutorials/198047-power-plan-restore-default-settings.htmlPanel configuration-Device Manager - look at the settings for the network card, WiFi, Modem power management.
and other devices. (Double click on the device and the power management tab)Panel configuration-Control Panel Home view (non-conventional) in the top-right search pane
type of hibernation - see turn Hibernate on / offMay need to reset all to default power settings and then place back as you prefer.
I hope this helps.
Rob - bicycle - Mark Twain said it is good. -
I search for updates and tell me that two important updates are available for my system but when I try to install I get error code 800b0100
http://support.Microsoft.com/kb/956702
Error message when you try to use Microsoft Update or Windows Update Web sites to install updates: "0x800B0100.
If the above does not resolve the problem:
Windows Update Forum:
It comes with Vista, upgrade install and activate Forum.
You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:
http://social.answers.Microsoft.com/forums/en-us/vistawu/threads
When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.
In this way, you will receive the best help.
See you soon.
Mick Murphy - Microsoft partner
-
I bought LR6 upgrade of LR3.6 that my new camera is not compatible. "I could download LR6 on my PC but when I try to install I get the error even after many unistalls and reinstalls:" setup initialization failed. This may be due to a missing file. Download Adobe Support Advisor to detect the problem". Of course, that no longer exists. Help, please... Thank you
Hi Lilianh71023988,
'Could not initialize installation' could indicate a corrupted download. If you haven't done so already, try the following steps:
- Uninstall Lightroom 6: How to manually uninstall the Lightroom
- Use the Adobe Cleaner tool to remove the remains of program use the Adobe Creative Cloud cleaning tool to solve installation problems
- Download a new copy of Lightroom 6 to install Photoshop Lightroom
- Try reinstalling the program.
If, after re-downloaded, you keep getting the same error, I recommend you to review the installation log files to identify the specific error: Troubleshooting Adobe Creative Suite install problems with log files.
Let us know if you need help.
Best,
Del
-
I imported a piece of vector art that shows a man wearing a t-shirt and blue jeans. I want to change the color of the t-shirt, but, when I 'select', not only the GET selected shirt made from the head, arms and blue jeans guy. How do I isolate the image so I am just by selecting the t-shirt?
Gabriel,
What happens if you click the fill with the direct Selection tool, and then try?
Or try to locate T shirt in the layer in the layers palette and select there, then try? You may need to click one or more arrows to look in under/groups/cutting masks / whatever.
-
I had to reinstall my applications due to a change of hard disk. I reinstalled my dreamweaver cs 4, I have my serial number and it is the same one that is on my Adobe product accounts, but it is not recognized when I try to register the serial number cs4.
Unfortunately, it is a user to user forum. You'll have better luck by going to Contact Customer Care
-
I need help I have a student 5 PC and lightroom version. I bought some time ago and cannot download as when one click on install, nothing happens
Please visit the following links.
-
When you download the SP3 I get an access denied screen.
I'm trying to update an old computer with SP3, I get an access denied screen. Someone has an idea how to fix?
Hello
I'm sorry to hear that you are not able to install Service pack 1. Please, I beg you, do not worry I will do my best to get out you of this situation.
To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:
1. What is the exact error message you get?
2. do you have an anti-virus installed on the computer program?
3 are logged as administrator?
4 are you trying to download the service pack manually or through Windows update?
5. are you aware of any changes made to the computer before the show?
Here is a link with some good steps that you must follow before you install service pack 1. If the problem persists, you can go through the article troubleshooting steps and check.
NOTE: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
Note: there is a risk of data loss if all the files are infected and which can be removed in the cleaning process.
Hope this helps and let us know if you need more assistance. We will be happy to help you.
-
Equium M50-164 crashes when I put the battery
I have an Equium M50-164.
I got it over a year now without any problems. I turned on this morning and it crashed (just a white, black screen) even when I tried to open it in safe mode. I have taken out the battery, but left the power cord in and it worked fine, without any problems at all, but when I put the battery with the power cable it crashed again. When you try to start it with just the battery, he would not do anything no lights, no boot at all?
Help, please.
Hello
Does not sound good
Only the battery is dead and or malfunction of the electronic power supply on the motherboard.
The two cases are possible.
Generally, the common user is not able to fix something like this.Of course, we can run here on the malfunction but I n t think this will help you.
In my opinion, the laptop must be verified and some diagnostic tests must be startedContact the ASP in your country and explain the guys the situation
-
My new book mac early 2015, battery finish and get off. When I put the charger there is no charge light? I have reset the SMC, but nothing happens.
You can try another charger?
Also-
- Press the Option button and click it - system info - Power - post what is shown on the battery please
-
When I'm on the phone people tell me that I look really far away, and they don't hear me. But when I put them on speaker they can hear me perfectly! It is the microphone that needs fixing? How many?
Courney,
Get help with microphones on iPhone, iPad and iPod touch - Apple Support should help you solve this problem.
-
I am running Windows 7 and I have a batch file to copy files from 1 computer to another. It works fine alone, but when I put it to run in the Task Scheduler it shows it ends successfully, but nothing is happening. None of the files are copied, and the control box does not appear. Any ideas?
Run a batch file in Task Scheduler
Hello ITGIRL17,
Thanks for posting on the Microsoft answers Forum.
Configure your task under your administrator account.
Then go to the folder with the batch file and ADD on control for the folder administrator permissions and each of the files in batches.
If the batch files write data, then the target for the task should ALSO have all explicit permissions.
Now try to run the Task Scheduler task.Also check the information from the following link and look specifically at Brian Vandemark Sommaire steps on 2 September.
http://social.technet.Microsoft.com/forums/en/winservermanager/thread/d47d116e-10b9-44f0-9a30-7406c86c2fbeI hope that this information will help resolve your batch file does not problem.
Sincerely, Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
This may seem like a strange question, but im trying to encode two buttons Flash Adobe, next and previous, however, when I put the thumb to the next scene and play on the next button and the previous scene and play on the previous button, it keeps switching autour.
If you have symbols of button on the stage to the next and previous, each of these symbols has an instance name with a listener event attached to it. The event listener is linked to a mandate. You can have a single event point to a function. So for example, if you have a next button and a click event that points to a function that says something like nextFrame(); and then you want to use the next button to point to a function that says something like nextScene(); you will need to use another instance of this next button and have this different instance to use a different event handler to point to a different function. Who help me?
-
I have the creative cloud, but when I put my last project on it said it wasn't updated... is not automatically updated cloud? kinda the entire point?
you have disabled the auto-update feature.
Click the gear on your desktop app > preferences > make sure that ~ "always keep updated cc" is checked.
-
Hello. I'm trying to attach photos to an email on Hotmail. When I open the folder where I want to download the pictures, they are all placed alphabetically. I want to arrange them in the order, they were taken, which I can do by going in "My pictures", but when I pull the file upwards again in Hotmail, they are given in alphabetical order. Any ideas?
Hello Oilfan,
Thank you for your message. Since there are two ways to attach photos in Hotmail, I assume you are using the 'Attach' > 'File' version instead of "attach" > version "Photo". To sort the folder to your liking, you can click right in the pane where you see your files > Highlight ' rearrange icons by "> select" Photos taken we.Please let us know if this or help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
Can I unlock my iPad Pro for another iPad pro
MY iPad was stolen out of my truck today and it has only wifi and it is blocked it is impossible to get a wifi signal while it is locked, I can open it from a different ipad
-
Satellite Pro L300 - multicolored horizontal lines
The screen of my laptop began to have multicolored horizontal lines flickering on her.I shut it, waited a bit and then he turned his back and it was worse. I'm afraid his crashed, what can I do?
-
How to get rid of the popup multiple keychain?
Right after that I downloaded the new update of El Captain EO, I had these problems of Keychain popup. The popup dislikes the password I provide my computer connection password. If I click on cancel it appears again if I click ok it will disappear
-
I bought the new HP G4-1037 you laptop... I installed Synaptics version 15.0.7.0... All things work correctly but the ON / OFF button at the top left with indication light does not work... Somebody help me how I can enable this feature of the touchpa
-
Disable TouchPad on Dell Inspiron 1720 - Vista Home Premium
I have a Dell Inspiron 1720 laptop and I would like to disable the touchpad so that I can move the cursor of the mouse only. Why? One wonders... I can type text, when suddenly, the cursor will jump and I tap on the line above on the previous text. T