Is there an event to find out when a reading of his judgment?
I'm developing an ActionScript 3.0 for Playbook.
I want to know when a sound has finished playing. All sounds are 1 second length.
This is my code:
import flash.media.Sound; ... private var yesSnd:Sound; private var noSnd:Sound; ... // Class constructor. yesSnd = new Sound(); yesSnd.load(new URLRequest("assets/sounds/yes.wav")); noSnd = new Sound(); noSnd.load(new URLRequest("assets/sounds/no.wav")); ... // Another method yesSnd.play(); ... noSnd.play();
By the way: can I play sounds on PlayBook?
I'm agree with peter that even a simple search could have answered your questions I already had an example avalible. You must use the SoundChannel returned by the play() function to add.
channel.addEventListener(Event.SOUND_COMPLETE,);
Tags: BlackBerry Developers
Similar Questions
-
Need an event to find out when my components are no longer displayed
Greetings!
Funny that it is difficult to make such an obvious thing GUI development.
I have a series of custom components in a viewstack. When one of them get away because the user clicked to see another component, it should be able to know that it is removed! Or at least, there should be a 'aboutToBeDisplayed' event so that it can reset its content!
These obvious manifestations are in Java, MFC, QT, etc... But I can't find it in Flex!
Any help would be appreciated!
When a viewStack changes, the components are not explicitly added or removed. They are just hidden and displayed.
You can do things with the show and hide the event:
http://www.Adobe.com/LiveDocs/Flex/3/langref/MX/core/UIComponent.HTML#event:show
http://www.Adobe.com/LiveDocs/Flex/3/langref/MX/core/UIComponent.HTML#event:hide
With a ViewStack, you can also use the change event:
http://www.Adobe.com/LiveDocs/Flex/3/langref/MX/containers/ViewStack.HTML#event:change
According to your specific needs, some may be better suited that relate to the components being added or removed from the scene:
http://www.Adobe.com/LiveDocs/Flex/3/langref/MX/core/UIComponent.HTML#event: Add
http://www.Adobe.com/LiveDocs/Flex/3/langref/Flash/display/DisplayObject.HTML#event: added
http://www.Adobe.com/LiveDocs/Flex/3/langref/Flash/display/DisplayObject.HTML#event:addedT oStage
http://www.Adobe.com/LiveDocs/Flex/3/langref/MX/core/UIComponent.HTML#event:remove
http://www.Adobe.com/LiveDocs/Flex/3/langref/Flash/display/DisplayObject.HTML#event:remove d
-
W376g (tracfone) how can I find out when any text message arrived?
Like all communications, WHEN something is said is critical to the context of what is said... How do I know WHEN a message has landed on my phone? I don't see time & date stamps for text messages.
Thank you, JED
Hi Jed, the phone also has an external icon that should be flashing when you have a message waiting... as well as an icon of the screen itself
then during playback of the message... Press the arrow down to get the information of 'delivery '.
-
Is there a way to find out programmatically if the sequence ends?
I can determine if a sequence has failed (RunState.SequenceFailed), Errored (RunState.SequenceError.Occurred) and is on go to cleaning (RunState.GotoCleanup), but I don't know how to determine if the sequence ends. Is there a Boolean value or another way to determine this?
Objective: I believe that cleaning MainSequence work again even if a sequence ends. I wish I had a step in cleaning that works only for a dismissal (must be in "MainSequence"). Is this possible?
Thank you!
I may have been able to get Execution.GetStates () to work, however, after reviewing the methods of execution, I found an alternative. I was looking for to use this as a precondition, so I don't know how to use GetStates() in the prerequisite (because it returns the State to another variable) without calling it in another statement before the one that interests me. I'm güssing there is a way (maybe I'm overthinking that), but what follows, worked for me:
Solution:
RunState.Execution.GetTerminationMonitorStatus (Locals.TerminationMonitor)
where Locals.TerminationMonitor is an object reference variable initialized to RunState.Execution.InitTerminationMonitor () beginning of the test (I did it in the configuration of MainSequence steps).
Thanks again!
-
I was told that people receive ims from me that I'm not sending I change the password on my account, but is there a way to know what sent my account
Windows Live Mail help is in this forum
http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail?tab=all -
Can I find out if a prepaid Xbox Live card has been activated or is used?
Separated from this thread.
is there anyway you can find out if paid a Xbox live card has been activated or is used? Need help
Sorry, Xbox only is not supported here in the community.
Try Xbox support
https://support.Xbox.com/en-us/
or
The Xbox community forums
http://forums.Xbox.com/default.aspx
Don
-
Find out if Microsoft Office installed by program
Hello
Is there a way to find out if Microsoft Office is installed on the computer by programming? I need to generate a different report format is so dependent on Word and Excel is installed or not.
Thank you!
Kind regards
Tom
Read the registry! http://StackOverflow.com/questions/3266675/how-to-detect-installed-version-of-MS-Office
-
I thought WWDC 2016 was just June 13 at 10 am PDT. Some sites say that the event is from 13 to 17 June. What is the date on which they will announce if there are new products coming out. What is 13?
WWDC is the 13th week, not a single day. However, at 10:00 13 will be the speech. It's what you want to watch. You can download the application to your computer via: Developer Apple WWDC Watch - WWDC -. You can download the app for iPhone, iPad, or contact via the iTunes Store.
-
How can I find out if there are viruses on my laptop and how do I clean them
How can I find out if there are viruses on my laptop and how do I clean them?
Please provide details as to why you feel that there is a virus on your computer.
-
How can I find out if firefox is locked when I'm on a view of the Bank?
When I get on an Internet site of the Bank to pay the Bills, how can I find out if firefox is locked if nobody sees what I'm doing?
Looking for the blue color of the key of the identity of the Site. In addition, you can view the information on this web site by clicking on the Site identity button, the lock appears here.
-
I had an Apple iPad since when they went out first; How can I know what version I have so I can upgrade to the latest version, I can use? I also have a desktop computer Apple which is older than the iPad? Thank you
Parameters
General
On
If you have had since it first came out, then it is very possible that you have a first generation iPad (if your ipad has no camera it's a first gen). If this is the case iOS 5.1.1 is the highest iOS, you can run
If you have a newer version than the one you can do your research. Update to the latest iOS may require that you run the latest version of iTunes, but I know that mac set out operating systems often and cannot run the latest versions. So I would research before accidentally yourself updating you in a corner (some people update their live iPad (which came with iOS 6 I believe) and then find out that their computer can not run the most recent iTunes they need to synchronize their iPad to their mac.)
-
Original title: media Player from the window of the main monitor to the secondary display.
Hello
Whem I'm moving my Windows Media Player fromprimary on secondary screen (or any other window),
is there an event generated by the Windows operating system?
If yes how can I capture this event?
Best regards
Sharad
Hello
There is no event that is generated when you move any program or any window from primary monitor to secondary monitor.
For more information visit: How to view and manage the event logs in in Windows XP Event Viewer
-
* Original title: startup
How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?
Hello
I understand you want to learn about programs, you should start your Windows startup. I will certainly help you to question.
When you start Windows by using a normal startup startup, several applications and services automatically, and then run in the background. These programs include the base system, antivirus software, utility applications processes system and other software that was previously installed. These applications and services may cause interference when you install or run a program.
The system configuration is a tool that can help identify problems that might prevent Windows from starting correctly. You can start Windows with common services and startup programs turned off and then reactivate them, one at a time.
I suggest you to refer to the links below and check if this is useful:
Using the Configuration System (msconfig)
Perform a clean boot to determine if background programs interfere with your game or program
Hope this information helps.
Please get back to us with an update on the issue, we will be happy to help you.
-
API call to find out if there is an Internet connection?
Is there some API call in AIR or the libraries of the Playbook with which I can determine if there is a live internet connection? I would like to know when the user is on any of the Wifi / 3G / 4G (that is, any type of connectivity) so my application can try asking in the data row instead of using local cache.
Thank you!
alinium wrote:
Is there some API call in AIR or the libraries of the Playbook with which I can determine if there is a live internet connection?
There are a few pages out there with examples:
air.net.URLMonitor: http://livedocs.adobe.com/flex/3/html/help.html?content=network_connectivity_1.html
above video tutorial using the API call: http://tv.adobe.com/watch/adc-presents/detecting-network-connectivity-in-your-adobe-air-application/
-
It says after effects download now... but there is no bar to download. How can I find out what percentage of its establishment?
You have the required 64-bit computer?
Maybe you are looking for
-
Google maps and maps does not not on iOS10/iPhone 7
Since I have the iPhone 7 and by doing so updated to iOS10 my Google Maps constantly I am at home. I've deleted and reinstalled and it worked brielfy before stopping in a random place, and then finally get back to me at home. The possible reasons for
-
Well went and at the bottom of the screen are three black circles. An about 1 '' 1/2 acoss and two smaller approximately 3/4 "overall. I put him on the witness stand and after that interview was made, I discovered she sprayed water on the monitor a
-
Please, can someone help me? I changed my password of e-mail of the PC, and now I can't access my BB. When I enter the "E-mail accounts" menu in the phone, I have two categories here: BIS and BES (I have a simple number, not a business Edition), and
-
Backup blackBerry curve blackberry Smartphones
I just got my software on my blackberry curve 9300 BB 6 back to bb 5 and I lost all my contacts and bbm contacts I did a back up before I went down so if I had to restore it would be there just restore my contacts and other or he would give me my bb6
-
cant bluetooth printer officejet 150-mobile
How can I Bluetooth m jet 150 portable printer hp Office