What should I use to load the audio in as3 instead of load()?
Hello.
I have a setup of the 4 x 4 pads, which are essentially the buttons or video clips with 3 States to show a visual feedback (like lighting to the top of the pads when they are pressed). I tested this configuration on an android tablet, but also a laptop touchscreen Windows 7. Obviously, the computer laptop windows 7 is more powerful and therefore more reactive.
But not sensitive enough.
I wonder how I should approach the loading of the audio files that are short drum-kit sample sounds in mp3 format stored in a current folder next to the swf file.
Is there a better way, as a way to cache the sounds so that I don't have to reload them each time the sound event fires?
Any help on this is greatly appreciated. (I'm just not aware of how else, right now, approaching loading sounds other than calling a new sound, each time that the button is pressed, so not really caching of sound)
You can use either:
var kickc_03:Sound = new kickc_03_mp3(); don't know whether to use Sound() or kickc_03 here...
or
var kickc_03:kickc_03_mp3 = new kickc_03_mp3();
they will both work because its subclasses kickc_03_mp3.
If I were you I would do something like:
run this time
var drumNum:int = 16;
var soundArray:Array = [null];
var C: Class;
init();
function init (): void {}
for (var i: int = 1; i<>
C = Class (getDefinitionByName (formatF (i) + "kickc_" + "_mp3");
soundArray.push (new C());
}
function formatF(n:int):String {}
s var:String=n.toString();
While (s.length<>
s = « 0 » + s ;
}
return s;
}
//////////////////////////////////////////////
now, whenever you want to generate a noise of kickc_somenum_mp3, use:
soundArray [somenum] () .play;
Tags: Adobe Animate
Similar Questions
-
What should I use to create the user interface of a CEAP plugin on mac
Hey there,
I'm new to the development of a plugin, but I did development of script for quite a long time however. I'm tring to develop an ECAP plugin. I go to the sample project of "Panelator" (from AE CC SDK), but I don't know how to create ui for the control panel plugin stuff.
The sample project is not an example of code to do this on a mac computer, I found the code examle for windows however.
So, can someone generously tell me how? I had to do with cocoa? But as I understand it, I can only use Objective-C to write cocoa ui.
Thank you very much!!!
Hi Li Zhiqing,
We have just announced in the next major update to AE CC signs HTML5 is supported:
http://blogs.Adobe.com/AfterEffects/2014/04/new-changed-after-effects-CC-2014.html
This will allow to create the user interface using HTML5 and use your scripts for the conduct of AE. It is quite a bit easier than the use of cocoa for the construction of the UI panel. Thoughts?
-
What should I do to get the rundll error load it says this c:\windows\system32\swwagui.dll, but when I search it he says that it excist doesint
yeremis,
You don't need to download the help file. So just follow the steps described in this article, that it will guide you through performing a clean boot. The boot will start Windows without other programs startup. This should stop any program that tries to use swwagui.dll. Then you can go back and turn on startup one items at a time to determine which type of program is causing the problem.If the error persists while in a clean boot state then you should try a restore of the system forward when the problem started. Mike - Engineer Support Microsoft Answers
Visit our Microsoft answers feedback Forum and let us know what you think. -
I finished the installation of Sharepoint 2010 and went through the Setup Wizard. It is said to use the username and password you loged on the server with does not work. What should I do to access the sharepoint URL?
Hello
Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Forum. You can follow the link to your question:
http://social.technet.Microsoft.com/forums/en-us/sharepoint2010general/threads -
should what software I use to burn the iso file of windows xp?
should what software I use to burn the iso file of windows xp?
I like ImgBurn.
-
Try to load software PhoneTree and I continue receiving ADODC error code. What should I do to install the software? How can ADODC error be corrected? I have Windows VISTA
Hello
Thanks for posting your question in the Microsoft Community.
From the description of the problem, you are not able to install a belkin wireless adapter. I'll be happy to help you on this question.
You did changes to the computer before the show?
Method 1: I suggest you to run the fixit from the following link:
Diagnose and solve the program installation and uninstallation problems automatically
http://support.Microsoft.com/mats/Program_Install_and_Uninstall/Method 2: I suggest you perform the clean boot and check if the problem persists.
How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8
http://support.Microsoft.com/kb/929135Note: Follow How to reset the computer to start as usual after a clean boot troubleshooting article KB929135 to reset the computer in normal mode.
Get back to us and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.
-
I own PS CS6 and I can't use it because I have an offer to use creative cloud for $29.99, later to be $49.99. I can't CANCEL it. I don't want CC. What should I do to stop the offer to cut my PS?
It seems that you have the Adobe Creative Cloud Desktop application installed somehow.
Please uninstall the Adobe creative cloud app and all the Adobe apps that might be installed on your computer.
Run the CC cleaning tool to clean things: use the cleaning tool CC to solve installation problemsand then restart. Then, please reinstall your CS6 and enter your serial number.
Guinot
-
Hello, I can't configure Siri, Siri is enabled and when, select 'Allow' Hey, Siri "" then is presented the installer A Siri cannot hear me, what should I do? Restart the phone, turn off the Siri allow, clean the speaker, all of this done, but nothing doesn't work, it doesn't work well as Siri does not hear me!
Fanat_UKR wrote:
Hello, I can't configure Siri, Siri is enabled and when, select 'Allow' Hey, Siri "" then is presented the installer A Siri cannot hear me, what should I do? Restart the phone, turn off the Siri allow, clean the speaker, all of this done, but nothing doesn't work, it doesn't work well as Siri does not hear me!
your phone must be connected to a power source to use Hey siri since you have an iphone 5. Most recent iphone don't need to be plugged into a power source.
-
What should I use for a replacement of WinMail in Windows.
What should I use for a replacement from WinMail in Windows 7 when requires it a number of sites to meet an address or a link that the site offers an answer or a question. I have msn, yahoo & gmail but lost WinMail when I've upgraded from Vista to Windows7.
I lost WinMail thur a mistake some time & it was a nighmare tring to meet links on sites that requires to open a format Outlook, Outlook Express or WinMail.I have msn (hotmail), yaho & gmail, but none of them will come when I'm trying to respond to the link sites for a response. If one of those that should be used, how it equal in Windows7?
Windows Update has nothing to do with the upgrade of Windows.
Unlike Windows XP & Vista, Win7 does not have a default email Client. [What were thinking?]
You will need to install a (e.g. MS Outlook;) Windows Live Mail; Oiseau-tonnerre) , and then set it as a default for mail in CUSTOM (<>) Set Program Access and defaults of the computer before any function article send to or MailTo will become available.
You will find support for Win7 e-mail Clients in this forum: http://social.answers.microsoft.com/Forums/en-US/w7network/threads
Support for Windows Live Mail (which will be able to import your data from Windows Mail Backup), you will find in this public newsgroup:
http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Windows.live.mail.desktopThrough your News Reader:
News://msnews.Microsoft.com/Microsoft.public.Windows.live.mail.desktop~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
What program (free) can I use on my HP laptop (running on Windows 7) to take video of my screen? I used Jing to capture video, but it registers as a .swf file. I have not anything that can play a .swf. I tried Zamzar, but he's not convert .swf files. So, what can I use to convert the .swf in .mp4, please?
I tried to download CamStudio, but Google Chrome has blocked, saying that the zip file would affect my browsing experience.
I'm not a technology person. Any help is appreciated. Thank you.
DM
If you want a basic registration application that TechSmith is also Snaggit that will record audio and video, making the screenshots & is $ 49 for life. Your call.
-
What should I do to remove the user name of the saved list when I connect
What should I do to remove the user name of the saved list when I connect
I think maybe he's talking about the list that is displayed when you connect to a web mail service. It shows several previous usernames used. How to remove one of them from the list?
-
my screen is dirty, what should you use to clean?
my screen is dirty, what should you use to clean?
LCD or CRT?
If it is a CRT glass, you can use Windex and paper towel. Spray a little on the towel, just enough to moisten it (not enough to leave any term) and wipe the display until it is clean. Follow up with a scrap of paper dry towel or microfibre.
If it's an LCD screen (even on a laptop), you can use the same method, but NEVER use a napkin on the screen LCD; Instead, use a microfibre cloth. They are less likely to scratch.
On any type of screen, it is a good idea to use something like a can of compressed air to blow something loose there first before wiping.
SC Tom
-
What should I use DC pro adobe acrobat to convert a PDF file to a word document?
What should I use DC pro adobe acrobat to convert a PDF file to a word document?
Hi phill79718850,
You can subscribe or buy Acrobat DC Plans and price | Adobe Acrobat DC to export your PDF files to Word & other supported files formats or you can subscribe to the service https://cloud.acrobat.com/exportpdf to export it to Adobe PDF format online
Kind regards
Nicos -
I bought an image and the download is in a format that I can't open. #77602421. What should I do to get the photo in jpeg.
Thank you
You will need to use Illustrator to convert it to JPG. Or ask someone with Illustrator or compatible app to convert it for you. You can try to import into Photoshop for editing, but you will not be able to increase the size without loss of quality.
-
My photoshop elements 13 installation has been interrupted, I can't seem to get restarted, so I restarted my computer and I am still unable to restart the download. What should I do to get the download restarted?
Available downloadable Setup files:
- Suites and programs: CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
- Acrobat: XI, X | 9,8 | 9 standard
- First Elements: 13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
- Photoshop Elements: 13 | 12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
- Lightroom: 5.7.1. 5 | 4 | 3
- Captivate: 8 | 7 | 6 | 5.5, 5
- Contribute: CS5 | CS4, CS3
Download and installation help links Adobe
Help download and installation to Prodesigntools links can be found on the most linked pages. They are essential; especially steps 1, 2 and 3. If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".
Maybe you are looking for
-
Remove cookies from my browser
Hello How to remove cookies from my browser google (MAC Book pro retina, 15-inch - OS Y Yosemite 10.10.5 version Thanks for your reply.
-
I am a beginner with the computer. I often run EtreCheck. I think it is a great free software. I still get performance: Excellent for what it means? Today first time I get this system of launch of agents: ⓘ com.apple.Finder.plist (2015-11-17) - inval
-
Departure from Hi-speed on Satellite Pro C70 - B
On my Satellite Pro C70 - B new, I put the option to hibernate the laptop when I close the screen.After a few updates, now I can't enter sleep or hibernation mode, but I have the new option start Hi-speed.But when I use this option, the system goes t
-
Windows Update crashes when activated
My computer started as a Vista Machine. When I got my free upgrade to windows 7 64 bit I started to have a problem of Hanger with in minutes of boot upward. I traced the problem occurs only when the computer has internet access. I traced it furthe
-
No program recently added or changed is, usual microsoft updates