Flex mobile:how can view listen to main application events?
I used to use "this.parentApplication.addEventListener" to listen to main application's events in AIR for desktop. But this seems not working in AIR for Android.
What is the trick? Or what's the new event mechanism?
It's now FlexGlobals.topLevelApplication. parentApplication may or may not point to the same thing depending on it's context.
Similar Messages
-
How can I put my main Application class in a package?
Hello,
I would like to put my main Application class for my air app inside a package. If I create a regular FLX application, this works fine. In that case I just move the application file created into a packade and change the run/debug settings. This does not work for an Air app however, when I try I first get the error:
Adobe AIR application is missing the corresponding MyApp-app.xml
So I move the MyApp-app.xml into the same package, then I get:
Unknown error generating output application.xml files. Check the Eclipse error log for more details.
Is it possible to have the man Application class reside inside a package for air applications?
Regards,
MikaelHi Mikael,
I ran into the same result as you so I asked around and it sounds like this might not be supported. However, I'd recommend reposting this question over on the Flash Builder forums to see if anyone has found a workaround.
Please let me know if you're able to resolve this.
Thanks,
Chris -
In Lightroom mobile how can move photos within the collection????
In Lightroom mobile how can move photos within the collection????
What you can do is to move (or copy) a photo form one collection to another. This can be triggered via the top right app menu item from grid view. Same menu is available when you open up an image for editing. Hope that helps. -Guido
-
How can I listen on 2 ports in 1 app
Here's a synapse of what I'm doing. I'm working on a graphical console program. Basically, I created a GUI interface, for a command prompt program. I'm basically trying to create a command prompt for the new millennium. It allows for multi-connections, has drop-down auto completes, syntax highlighting, object-oriented design, etc. I created it as a multi-threaded server and allows for remote and local connections. The way I have it designed is there are 2 main programs. The graphical client program and the server program. The server program is started whenever the client is started and accepts connections on port 9671. The graphical client can connect to local and remote machines. The client also can store information for multiple sessions in a single window which the user can juggle between. I decided that the server will consist of multiple programs similar to a Linux shell. Rather than build all the commands into the server I can create multiple programs for the server. Once the user needs to do something like copy a file I can call the File program, pass it the info, and have it handle the routine. I decided to have it where once the program is called it will connect to the main server on port 9672 so they can communicate. So what I'm wondering is how can I start my main server on 9671 and allow for connections on port 9672? Remember since I allow for multiple connections I need to be able to find out which thread started the session. I'm thinking either when I call the File program I can pass some thread id so it knows which program called it or I can create another program which runs on port 9672 and I can use the main program as a buffer between itself and the other server? Sorry for the long winded explanation but when I give too little info I usually get people asking me why I'm trying to do it:
<CODE>
package directlinkserver;
import java.io.*;
import java.sql.*;
import java.net.*;
import java.util.*;
public class DirectLinkServer {
static int portOpen1 = 9671;
public static void main(String[] args) {
try {
ServerSocket portListener1 = new ServerSocket(portOpen1);
DirectLinkServer userThreads = new DirectLinkServer();
while (1 == 1) {
Socket userConnection = portListener1.accept();
userThreads.new PortConnection(userConnection);
catch (Exception e) {
System.out.println (
"The server encountered a serious error. Server shut down.");
e.printStackTrace();
System.exit(0);
class PortConnection extends Thread {
Socket ourConnection;
BufferedReader serverInput;
PrintWriter serverOutput;
PortConnection(Socket userConnection) {
try {
ourConnection = userConnection;
serverInput = new BufferedReader(new InputStreamReader(userConnection.getInputStream()));
serverOutput = new PrintWriter(userConnection.getOutputStream(),true);
start();
} catch (Exception e) { System.out.println("An error occurred when a user attempted a connection."); }
public void run() {
serverOutput.println("Welcone to the Server.");
try {
serverOutput.close();
serverInput.close();
ourConnection.close();
} catch (Exception ex1) {}
public void commandConnect() {
</CODE>Well, I'm still going to ask that. What's wrong with just using the one port? Also, your design seems questionable. How will the server know to start when the client starts, if the server isn't running already and listening on the appropriate port? It's a chicken and egg problem, and generally (every single case I can think of) the server just sits and runs, whether or not there are any clients.
-
Hi how can I move the main text in the "San Fransisco CV" up.
The name thats in the "box" as the "adress" ect, is easy to move up...
But the main text please...
BR,
DDavid,
The various templates in Pages seem to have been designed by individuals without much guidance or mandate for standard approaches to layout. In a way, tha's good because you have a variety of philosophies to choose from.
The message is that you can't take what you learned here and assume that all the templates work this way. I answered your question by turning on the Layout View and looking at the Inspectors to see what controls had been used.
Jerry -
My computer crashed necessitating re-install of operating sys and all programs including iTunes. When I click on a song in my library I get an error message "can't find this song, want to search?" What gives? How can I listen to songs in my library on this computer now?
It is working now. I no longer get the message about the item not being available in the US and I can access the store.
-
If I imported a CD into my iTunes library from one computer how can I listen to it from another computer? I imported music from a CD into my compter at work and when I got home and went to my iTunes account none of the songs were in my library. I also noticed that on my Work computer there were a couple songs that I had to click on the little 'cloud' icon before I could listen to them (these were not songs I imported they were songs that were already in my library). Not sure if this makes semse...help.
jamie171 wrote:
My question is since I have imported them into my iTunes library from one computer why can't I access them from my iTunes library from another computer that I have authorized to access whats in my library? Is there no way to import songs only once into the library and then access them from all my authorized computers?
Only if you have iTunes Match or of the computers are on the same local network. -
How can I listen to music from iphone 4s via apple tv while doing a phone call at the same time?
When I take a call on the iphone, iphone stops streaming the music to apple tv until I finished the call.
thx!
Claus
PS: did ask the same question to apple hotline in germany. Answer: we don´t know... funnyWelcome to the Apple Community.
As far as I know you can't, which sort of makes sense, it seems logical to pause whatever you are doing while you take a phone call, which after all is the primary function of a phone. -
How Can I listen to the line-in on my T400?
When I am at my desk, I've always had my satellite radio plugged into the line-in on my computer so that I can listen to it through the same speakers. With my new T400, I have the radio's output plugged into the line-in on the Advanced Dock. I know that it's getting a signal because if I record with Microsoft Sound Recorder, it records the radio.
How can I listen live to the signal coming into the line-in?You can thank Microsoft for this one. They disabled the pass-through ability in Vista. Apparently too many people complained about feedback issues when trying to use webcams or VOIP programs and didn't know to mute the Line-In on the mixer. It took me forever to find how to correct it.
The following will enable the input sliders in your playback devices so audio pass through works without having to run through an application like it worked in XP. Remember, always backup your Registry just in case. I had to create new Keys for filter and SpeakerHp but yours may already be there
1) Open regedit (Start->Run, type regedit)
2) Navigate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE1031*8}\0000\Settings\filter\SpeakerHp\
3) Create a new Binary Value
4) Give it the name EnableInputMonitor
5) Set it's value to 01
6) Restart your machine
7) Open your Playback Devices (right click on volume control icon in system tray, select Playback Devices)
8) Open the Speakers/Headphones
9) Go to the levels tab
10) Unmute the input monitor
T500 - P8600 2.4Ghz Core 2 Duo, Modded - 4GB Patriot DDR3 and 320GB Caviar Black 7200rpm drive with Ati HD3650 and Catalyst 9.6 modded drivers - Vista Business 32bit stripped down to bare bones with VM's from Ubuntu to Win7RC1 64-bit. -
How can i transfer my main HD to a new one?
How can i transfer my main HD to a new one?
If yours in a MacBook Pro notebook computer, the usual way is to buy or borrow an external enclosure to do the transfer from a perfectly-working drive inside your MacBook to the new drive mounted in the enclosure.
If your internal drive has failed, other methods may be needed.
If you do not already have at least one external enclosure, you should buy one to use for your Backup Drive. If money is short, you could borrow the enclosure your backup drive is in (in most cases) for this transfer.
The Mac will boot from any drive specified in
System preferences > Startup Drive ...
... regardless of whether that drive is Internal or External. -
I would like to create a playlist of some of my voicememos to hear on my iphone5. I have no problem creating the list and can listen on playlist on computer but not when i sync to my phone. How can I listen to voicememos in a playlist on my iPhone?
Hi czigrand,
Thanks for visiting Apple Support Communities.
Currently, you can gift dollar amounts or individual items (EG. songs) on the iTunes Store. See this article for more information:
In the iTunes Store, you can gift a dollar amount or specific music, movies, TV shows, or apps from your iPhone, iPod touch, iPad, Mac, or PC. Follow these steps to send a gift from the iTunes Store.
iTunes: Sending iTunes Gifts
http://support.apple.com/kb/HT2736
Best Regards,
Jeremy -
How can I listen to itunes and play a game at the same time on my ipad 4?
How can I listen to itunes and play a game at the same time on my ipad 4? This means I need to run 2 apps at the same time itunes and my game. The game has its own sound control so I can turn off its sound while i listen to itunes tracks. But I don't know how to set it up so the ipad does both.
Anytime you open an app that has a persistant sound stream - a movie, a podcast, some games - it will overide the music app's stream. nothiong you can do to change it.
-
How can you listen to music and play a game at the same time?
How can you listen to music and play a game at the same time?
I am playing music, by starting the Crash Baandicoot Nitro Kart 3D game it shuts off the music playing. Is there a way around this?
It seems like this should be possible.
Message was edited by: RuthlessVengeance
Message was edited by: RuthlessVengeanceSelect the music play list you want to listen to and start it playing. Go back to the home screen and start the app you want to use, music will stop. Press the home button two time quickly and it will bring up a simple control for controling the music. This works for me with all of the apps I have purchased including games. Just a note you can pull up the same music control if the iPod is a sleep and locked by pressing the button three times quickly.
Mike -
How can you listen to music without headphones?
How can you listen to music without headphones?
- Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
Try the following to rule out a software problem
- Reset the iPod. Nothing will be lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup
- Restore to factory settings/new iPod.
- Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
Apple Retail Store - Genius Bar
Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
Apple - iPod Repair price
A third-party place like the following will replace the jack for less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the jack yourself
iPod Touch Repair – iFixit -
How can I listen to a sound file on Internet?
How can I listen to a sound file? On Internet
You need to download other browsers from the App Store. Use the App Store app And search for browsers you'll find a bunch of them. Download one that will do what you want. Once it's downloaded tap on the app icon to start the app.
Maybe you are looking for
-
I have the following situation. 1 Apple ID. 1 iTune account. I have 2 ipads and 2 iPhones 1- I would like to have a set of 1 ipad and 1 iphone (mine) sharing the same contacts and calendar entries (synching from outlook) 2- I would like to have anoth
-
Ipod touch won't sync on laptop but different ipod will sync
I'm having some issues trying to sync my wife's ipod touch. She's had it for a couple years and we haven't had any issues with it before. She purchased a couple songs recently and when we connected the ipod a message came up saying there was a soft
-
Cisco MSE RF fingerprinting problem
Hi When calibrating a floor using the point method, the model built is a good indicator of the signal experienced by the client at certain points. What happens when two buildings are very close together and the client decides to connect to an AP in a
-
Down Arrow button is blurr in CRM 2013
Hi , I am using CRM 2013. See, the Down arrow buttons, in above screen shot, all are blurred. I dont know, whats wrong with it. Any suggestion to resolve this resolution issue ? Thanks!!! Make sure to "Vote as Helpful" and "Mark As Answer",if you get
-
Keyword Search using the SOUNDS_LIKE modifier, Java API
Hello guys: Does anyone have a piece of code that shows how can I do a search, using the keyword and the SOUNDS_LIKE mod, like on the Data Manager? I've seen the blog "Performing Free Form Searches with MDM Java API" but I'm afraid this doesn't apply