Cross can draw but the sound effect does not work
Hi all I am new to adobe flash cs6. I want to create here a few shooting games, but I have a problem
I have my script of action like this:
import flash.events.Event;
import flash.events.MouseEvent;
addEventListener (Event.ENTER_FRAME, aaa);
function aaa(e:Event)
{
Crosshair.x = mouseX;
Crosshair.y = mouseY;
}
Mouse.Hide ();
Movie1.addEventListener (MouseEvent.Click, BBB); / * Film1 is the enemy * /
function bbb(e:MouseEvent)
{
trace ("Win");
}
crosshair.addEventListener (MouseEvent.CLICK, pistolShot);
function pistolShot(e:MouseEvent)
{
var s:PistolSound = new PistolSound();
s.Play ();
}
crosshair.mouseEnabled = false;
I want to my room in the shape of a cross, the sound effect when he clicks.
When I delete this code:
crosshair.mouseEnabled = false;
in cross can play the sound effect, but I can't shoot the enemy.
I can shoot at the enemy with the code, but it will not play the sound effect.
should what code I use?
Thank you
use:
import flash.events.Event;
import flash.events.MouseEvent;
var s:PistolSound = new PistolSound();
crosshair.mouseEnabled = false;
this.addEventListener (Event.ENTER_FRAME, aaa);
this.addEventListener (MouseEvent.CLICK, clickF);
function clickF(e:MouseEvent):void {}
s.Play ();
}
function aaa(e:Event)
{
Crosshair.x = mouseX;
Crosshair.y = mouseY;
}
Mouse.Hide ();
Movie1.addEventListener (MouseEvent.Click, BBB); / * Film1 is the enemy * /
function bbb(e:MouseEvent)
{
trace ("Win");
}
Tags: Adobe Animate
Similar Questions
-
His record game. I can't play the sound. troubleshhoot does not work
Next to my changer volume, there is a small 'X '. When I go over it with my mouse, it says: "no speakers or headphones are connected ', but the speakers are integrated into my PC, so my monitor. Also, if I click it, it brings up to solve problems, but that does not work either! Any help is appreciated, I can't do that without sound on YouTube!
Next to my changer volume, there is a small 'X '. When I go over it with my mouse, it says: "no speakers or headphones are connected ', but the speakers are integrated into my PC, so my monitor. Also, if I click it, it brings up to solve problems, but that does not work either! Any help is appreciated, I can't do that without sound on YouTube!
Have you tried to uninstall and reinstall sound card driver? You may need to visit the manufacturer's Web site to download and install the latest sound card driver.
-
No sound from the computer but the sound card does not work correctly
I have a new computer, but can't get any sound through the screen (not new). The system tells me that I have a sound card and that it works correctly. Any ideas?
Hello
· What version of the operating system is installed on the computer?
· When the issue started?
However, try the steps in the following article:
http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows
-
My Apple Watch does not turn off. When I go to turn off the slider isn't in the article to stop, I can restart but the cursor still does not appear
Hello
It is not possible to disable Apple Watch when its on the charger and connected to the power supply - this is normal.
-
Urgent - the sound recorder does NOT work after getting the window system 7 (64-bit)
I have a problem with the sound recorder. After that I got the system with Windows 7 (64-bit), the sound recorder does not work. It's very urgent because I need to procticing my English pronunciation and the test day is coming.
Please would you give me help? I really appreciate!
Thank you very much.
Eleanor
A prompt by right clicking and select "Run as Administrator"
and then at the command prompt, type: chkdsk /f r, then press the Enter key.If you are asked to plan the volumn to check the next time that the system restarts,
Enter: yIf you know the manufacturing of your hard drive you can also download their diagnostic software.
Another use: SpeedFan has an online health analysis function
(SMART tab) for hard drives. It will show how your disks
compared with other discs of the same brand and model.
http://www.almico.com/SpeedFan.php========================================================================
Run the SFC/scannow command. This will check and repair if necessary all of the critical Windows system files.
Click on start / all programs/accessories then
Right-click on the command prompt option and select "Run as Administrator".
(or "Safe Mode" open a command prompt)
At the command prompt, enter: SFC/scannowWindows 7 - order SCANNOW SFC - System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlHow to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
http://support.Microsoft.com/kb/929833How to analyze the entries in log file generating the program Checker (SFC.exe) resources of Microsoft Windows in Windows Vista:
http://support.Microsoft.com/kb/928228J W Stuart: http://www.pagestart.com
-
tried to install creative cloud but the installation file does not work.
tried to install creative cloud but the installation file does not work.
the installation window is suddenly turned off.
What can I do?
Mac or Windows and EXACTLY what version of the operating system?
Recent Mac AND Windows operating systems have been known to cause problems "weird."
Please read https://forums.adobe.com/thread/1499014
-try some steps such as changing browsers and disable your firewall
-also clear the cache of your browser if you start with a fresh browser
-check the file hosts for blocked entries https://forums.adobe.com/thread/1912777
http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.
https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html
http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html
-
Reinstall photoshop element 9 but the serial No. does not work
I'm now reinstall Photoshop Elements 9 on the same computer, in window8, but the series No. does not work, what should I do?
Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html
-http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html
-
Have key but the installation media does not work
OS came with the laptop, now the recovery disk does not work so I just the key but not the medium to install it. Please tell me what to do? Really need my laptop!
Contact the vendor for a replacement drive.
Why do you think you need to re - install Windows?
If you find my answer helpful, please click the button "Vote as helpful"! Thank you!
My Blog -
I bought for Hallmard Card Studio 2012 and received software bonus with most cards etc. When I tried to install the software of premium it says I have fearful to have installed the last Hallmark witn a 13. 1 something or other. I installed the latest version and I don't know what they mean. But they say that it has not been changed. What should I do?
Hello
What is you receive the exact error message?
Method 1:
I suggest you to uninstall all previous versions of the software and then reinstall the software on the computer and check if it helps.
See the articles below:
http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program
http://Windows.Microsoft.com/en-us/Windows7/install-a-program
Method 2:
If the method above does not work, then I suggest you to contact the support of software to improve assistance.
http://www.hallmarksoftware.com/support/support.aspx?NetID=CJ&RS=48&preflanguage=5
-
I can't sync my iPhone with iTunes 5. OK video ist in photos und - but the recorded voice (Sprachmemos) does not work
Hello
Click on these links, they should help you!
https://support.Apple.com/en-GB/HT201253
iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
Jack
-
iPhone 6 s think is store songs, but the music app does not work
I've upgraded to an iPhone 6s, and I restored it to my backup so that all my contacts on my phone.
I do not keep the music on my phone because it takes place, and I can just listen to my library of music to iCloud. However, each song that I play, my phone displays I'll keep the songs on my phone, but the music app always said that I don't have any songs downloaded on my phone. I'm especially worried about it because I had a problem with my previous phone where I didn't keep all the music on my phone, but for some reason any much space was taken over on my phone. I fear that my phone will fill with songs, but not recognize them (which can be irrational, but who knows). In any case, here are a few screenshots to show you what I'm talking about is about, what happens to someone else?
1. you can see it says there are "59 songs" on my phone
2. when I go to music app and search for downloaded music...
3. it's screen (which indicates that I did not download the music on my phone)
4. after a few minutes of songs, has increased the number of "Songs on my iphone..."
... And when I go to the "manage storage" section in the settings, the music app does not appear as an application that takes place (because apparently there isn't any music inside)
I'm worrying needlessly, or is my phone slyly fills with music?
So I discovered that after turning off "iCloud music library" under the "Music" tab in the settings, it displays much fewer songs on the 'About' page (although I still have none), and it showed that I had more than about 1 GB of storage space. So, I concluded that indeed, while I listen to music from my library iCloud, he should secretly Store songs on my phone (and perhaps easier streaming later?), and turn off streaming iCloud removes these songs. This is exactly what I wanted to know, but at least I can the hypothesis a little more on what iCloud music is streaming.
-
I want to reinstall windows xp family, but why my legal product key does not work? IM using it in a computer.
How to activate Windows XP
http://support.Microsoft.com/kb/307890/en-usSee the section titled: "how to activate Windows XP by phone.
Also, make sure that you do not confuse the product key numbers and letters
(number 8 for the letter B, etc.)===================================================================
Blank page to activate Windows in the wizard of Windows Product Activation
http://support.Microsoft.com/kb/314935How to contact a Microsoft Product Activation Center:
http://support.Microsoft.com/default.aspx/KB/950929/en=usMicrosoft Activation centers worldwide telephone numbers:
http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
(This site is for activating Volume License, but if you call, they will help you)The phone number is not working:
Microsoft Wordwide contacts: http://www.microsoft.com/worldwide/default.aspxOnce Windows activated / Genuine Advantage Notifications:
http://www.Microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=afd45b36-3d77-4259-801c-d31a9a90cdcf
(This tool will confirm that the copy of Windows installed on your PC is genuine and authorized)J W Stuart: http://www.pagestart.com
-
Powers of laptop on but the screen (monitor) does not work.
I have a HP compaq laptop 6720 (vista home basic, 1 GB of ram, intelcore,...)
Powers of laptop on and all lights are working, but monitor does not work.
Nothing on the screen, looks like no electricity on the screen or any contact of motherboard.
Need your help,Kind regards.
Hello
If you don't see anything on the screen when you start, and this includes see the HP Logo, it would seem that it's a hardware problem.
Contact HP Service or a good repair shop.
See you soon.
-
Java script not working not not in 1 pdf, but the same script does NOT work in other
Dear Experts,
I have a problem with java script.
I created 2 PDF files with the same name under the names of form and shape.
I wrote a javascript script and the script seems to work in a (Demand2.pdf) and DOES not work in others (exemple.pdf).
The link for Demand2.pdf is
https://Acrobat.com/#d=XIydWx1RIU4oNdTySHtHfgand the link for exemple.pdf is
https://Acrobat.com/#d=sKPRs2dtDY57RSvMVtnh3wCan you please guide me on this.
Thank you very much
BookFans
Hello
The second file (exemple.pdf) is saved as Static. The script changes the visual appearance of the form (show and hide objects). This requires the file to save dynamic PDF format. This option is available for registration - as the dialog under the file name.
Good luck
Niall
-
Clean install of Windows 7 but the activation key does not work
Hello, enter a new installation of Windows 7, the first OS on a new construction of the mine.
The problem I have is that the activation key will not work, the problem would beI use a Windows 7 (updated for Win Vista)? Or do I need a newproduct key?Thank youEricHowever, the requirements for the media upgrade is that you have an operating system already eligible such as Windows XP or Vista installed to use it. Since the Windows 7 end user license agreement.
15 UPDATES. To use upgrade software, you must first be licensed for the software that is eligible for the upgrade. After the upgrade, this agreement takes the place of the agreement for the software that you upgraded. After upgrade, you can no longer use the software that you upgraded.
So, if you are always denied, you will just have to reinstall Windows XP or Vista and let it do the verification of eligibility.
If your computer comes with a qualifying previous license such as Windows Vista or Windows XP and the certificate of authenticity is still attached to the machine in good condition, then the COST is reason enough to represent the compliance to the software license agreement. No previous required software installation, which means you can do a clean install with Windows 7 Upgrade disk.
How to do a clean install with upgrade disc:
Boot from the Windows 7 DVD
Click Install now
Accept the license agreement
When the option is displayed to select a type of installation, click (Custom advanced)
Click on drive Options
Select the disc/s click on Delete
Click new
Click on apply
Click OK
Click Format, and then click next to proceed with the installation
Skip entering your product key Windows 7 and complete the installation.
When you reach the desktop, click Start, right-click on computer
Click on properties
Scroll down to the Windows Activation
Click the link x days before activation.
Click on the link that says: "show me other ways to activate.
Enter the product key
Click next
Select the Activation of the phone
Click Next when you enter your key page
Select your country
Click Next, call the number listed
Be sure to explain your situation to the Appeals Officer.
Provide the installation generated when ID requested by the call agent
They give a confirmation ID in return, enter it
Click next to complete the activation.
or
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us
----------------------
Maybe you are looking for
-
2000-2b22DX HP: HP 2000-2b22DX Ram Upgrade
Recently, I encountered some problems with my laptop. I have accumulated a few programs of work (I'm a designer and a musician for hobby) so the tear begins to take a toll.First of all, I want to know how can I upgrade Ram. I looked in the next page
-
How can I recover my iMac G5 2005 backup?
My iMAC G5 exploded in 2005, but before that, there was a scheduled backup (umbrella icon) which has saved the files somewhere... I think that combined with the service of pre-iCloud mac.com, but am not sure about this. I have a new iMac and wonder i
-
It takes to run Windows Defender if I have Norton Internet Security?
If I have Norton Internet Security installed. Should I have Windows Defender running? Original title: what security is ok
-
I much Adware (Adware 9) and it is in my C: drive the Adware transformed into Local C: drive and I have 2 Drives.Pls Local help me!
-
Vista: Gets the IP address can ping websites by FQDN and IP address but impossible to surf the internet.Default gateway is correct Same result using two network adapters. Norton internet 2010 (same result enabled / disabled)WinsockFix (no joy)