GameInput in MXML/Flex project not working

I am trying to add Joystick support to a MXML/Flex based application (FlashBuilder, using Apache Flex 4.12.0, FP 13, AIR 13.0beta) but it does not seem to work.
I am adding the following lines in the preinitialize function of the main MXML (which is the earliest point I can call a function I assume):
<s:WindowedApplication
               preinitialize="preinitialize(event)"
/>
<fx:Script>
<![CDATA[
private function preinitialize($event : Event) : void
     var gameInput : GameInput = new GameInput();
     gameInput.addEventListener(GameInputEvent.DEVICE_ADDED, onDeviceAdded);
     trace("GameInput.isSupported - " + GameInput.isSupported);  // returns true
     trace("GameInput.numDevices - " + GameInput.numDevices); // returns 0
private function onDeviceAdded($event : GameInputEvent) : void
     trace("GameInput.isSupported - " + GameInput.isSupported);  // returns true
     trace("GameInput.numDevices - " + GameInput.numDevices); // returns 0
</fx:Script>
However, the trace for "GameInput.numDevices" always returns "0".
The USB Device is connected properly; when I run the same code in a pure AS project (Flash Professional, same AIR SDK 13) the "GameInput.numDevices" trace returns "1".
This means, the device is working and the MXML/Flex must be the bottleneck.
Does anybody know, if I'm either missing something, or if this is an issue/bug with Flex/MXML?
[Update]
- Unplugging and replugging the device correctly calls the event handler and numDevices is displayed with "1". However, this is no solution, since the identification of the device needs to happen without such an procedure.
- With an older SDK (Flex SDK 4.6 + AIR SDK 3.8) the device is actually correctly identified from the start so there must be a bug in the newer AIR SDK version(s). I will fill out a bug report for this and post it here for reference.
[Update 2]
Bugbase report URL: https://bugbase.adobe.com/index.cfm?event=bug&id=3749005
Message was edited by: janfriedrich

do your IE has installed flashplayer plun-in? if so, is plug-in enabled?

Similar Messages

  • Additional SDK for Flex Builder - not working

    Hi,
    I have a Flex Builder 3.0.2. It's shipped with Flex SDK 2.0.1 and 3.2. I would like to add the new Flex SDK 3.5. I followed the documentation: http://livedocs.adobe.com/flex/3/html/help.html?content=build_6.html#162812:
    - extracted SDK 3.5
    - added into my SDK list
    - set to default
    - restart Flex Builder
    - clean project
    But it's just not working. There are many functions from the documentation I can't use still (but should be available with SDK 3.5). How can I fire SDK 3.5 up?
    Thanks in advance,
    Peter

    I can't solve your problem, but I can say that Flex Builder 3
    is much faster amd more stable than FB2.
    Tracy

  • Create library (swc) in Flash Builder 4 / Flex Project (not in a Library Project)

    I want to create a swc file to use it in an other project. I can't use the Flash 4 Library Project to do this, because in a Library Project I
    haven't the possibility to use data/services, which I need for my library. After click on "data / services" I get the message "This view is only for Flex-Projects available".
    Has anyone a solution for my problem?
    Thanks for your help.

    Connect to PHP in FB4 is used when you have a PHP Class and you want to use that in FB, for example Employee.php and it has a Employee class and various methods in that like create, update, get, delete.
    However, if you have exposed your functionality in PHP as a HTTP URL (i.e. it is not a class), then you should be using HTTPService from the data menu.
    So if your file is login.php and is accessible as a URL, then using the HTTPService and enter the URL.
    Does this help?
    -Sunil

  • Import Project not working... Help?

    I cannot for the life of me figure this out. Running two macs. I have an assistant now who rates/edits photos on one mac running Aperture. When she finished, I exported the project (without checking 'consolidate images') and then imported them on my computer. When I did this, I got the following:
    http://www.redtreedesign.com/other/aperture.png
    So I thought - maybe I should have checked the checkbox on the export. So I went back, checked the box and exported. Sure enough, on the import, I got the same. No files anywhere to be seen, but several folders.
    Any ideas? The files are stored in the aperture library (not referenced).
    Thanks,
    Josh

    I cannot for the life of me figure this out. Running
    two macs. I have an assistant now who rates/edits
    photos on one mac running Aperture. When she
    finished, I exported the project (without checking
    'consolidate images') and then imported them on my
    computer. When I did this, I got the following:
    http://www.redtreedesign.com/other/aperture.png
    How are you transferring the exported project between computers? If you are using the Windows drive sharing feature, that will not work and probably give you what you see. It could be something else as well.
    That would be my best guess as to what is happening. You could double-check the exported project contents when you receive it, use Finder to right-click on the project and select "Show Package Contents" - then you are looking at what files are inside that project. Compare what is in the original exported project on the computer it normally lives on with the copy, and see if there are any differences.

  • Flex App not working in IE9

    Friends,
    We have a Flex browser based app (Flex 3.6 SDK) and it has been running smoothly on IE since last 1 yr. Front-end is Flex, Middle layer Fluorine web services aka .Net, back-end is SQL. One of our customer reported this peculiar problem that it is not working on IE9 (its a Win 7 64bit laptop). Not working means that after he hits the url, the page loads fine but when he tries logging in he gets error (Thats an error we shoe when we get failure callback from middle layer). Now .Net/back-end people checked the logs and told me that they do not receive any hit from that account. So it means the <mx:Remote object> call for login never reached them. But then how come we got error callback?
    Notably,
    1. we are not using any session timeout so there is no question of fault callback coming due to that. is their any way that we got a fault callback of Remote Object without it reaching the .Net layer? How can we rectify it?
    2. we used Adobe connect and checked this client's machine and we found that his internet options on IE are fine as per http://blogs.adobe.com/cnflash/2011/09/23/adobe-flash-player-cannot-work-on-ie-9-after-ins tallation-or-updates/ . also he is able to open Flash videos without any peoblem so it seems that Flash perhaps is working fine on it.
    what other areas can we check to solve it? Any help is valuable guys....
    Regards,
    Shubhra Bhushan

    check with firebug.
    i suspect that client load swf from cache. means he might not have latest version of swf. make sure he has latest swf.
    parameter mismatch will lead to these kind of issue

  • Cp6 project not working on tablets

    Hello.  I have a Cp6 project that I published as swf and html5 (combo) which runs perfectly on a PC with Windows 7 using either IE9 or Google Chrome. This project is also SCORM 1.2 enabled and works fine on the LMS - either SCORM Cloud or the client's LMS.
    The strange thing is when I tested launching on an Android Samsung S Note, it acts like it’s going to launch but never really does. And, it actually did launch and play great the first time I tested it a couple weeks ago on my PC.
    I had someone else test the same file on a Nexus 7 tab via SCORM Cloud and all he saw were black screens so it didn't work there either.
    One of my counterparts launched it from his Apple products and here are the results.  (I published the same project as HTML5 only and asked him to test both.)
    PowerBook (Apple)
    On the HTML5 alone course I just had a gray screen.
    On the full SWF/HTML5 course everything worked as expected, including the video slides and the PDF text versions. There was a visual 'glitch' every time there was a transition from a static slide to video and from a video clip to a static slide.
    iPad Gen 2: Neither course worked, all I would get is a gray screen on both of them that didn't lead to anywhere.
    iPad Gen 1: Same thing, gray screens on both of them.
    Here are the browsers that were tested in the Apple products:
    Firefox v. 26.0ts
    Safari 6.1.1
    Chrome 32.0.1700.77
    IE 10.0.9200.16384 (running with Windows 8 through Parallels)
    So it seems to be the tables are having issues.  Any ideas?  Is there anything else I need to do to enable this project to work on tablets - Android or iOS?
    Thanks again.

    HTML5 should run, but how is an iOS device going to play a SWF? The OP said he published as swf and html5 (combo).
    When publishing to SWF and HTML5 there are 3 html files created:
    index.html (HTML5 document)
    multiscreen.html (Not an HTML5 doctype and uses frameset which is not declared in doctype)
    "project name".htm (Not an HTML5 document loading a SWF)
    You should be using the multiscreen.html file to determine which content to deliver, and start your troubleshooting from there. You will need to determine which actual file is being used when the different users experience issues.

  • Visual Gesture Builder Analysis project not working ?

    Hi,
    I'm working on Visual Gesture Builder and I try to understand how to use it. Currently, I use the 1409 release of the SDK, but I did some tests on 1406 version and it's not working too.
    My problem is the next : when I build a training project, I can successfully produce a .gba file and test it with the live preview tool but I can't use it in the analysis project. I include the same clip or another, and I start the analysis, then the output
    pan show me "SUCCESS:" and no more messages. The control pan is not updated (the table project analysis results contains just the header row) and when I click on the clip, they are not any suggestion of tagging, just my timeline with my own tags
    if it's a clip that I used in the training project. 
    I made many tests, like change streams recorded in kinect studio or using KSConvert.exe to upgrade my clip, but nothing happens. I tried to use VisualGestureBuilder.exe with command line and the option -analyse, but the message is always the same : the command
    line arguments were not valid. I saw all videos (MVA and blog's evangelist) about Visual Gesture Builder and reproduce step by step all manipulations, but nothing with the analysis project.
    Thanks.
    PS : sorry for my poor english. 

    Thanks Brekel for your reply , 
    i presume my assumption are true, regarding Kinect Regions (Kind
    Request 3) do you have any info on that ?
    Thanks 
    Vuyiswa Maseko

  • Flex debug not working in FB3r3 on web apps

    I am developping a Flex application for an Apache Tomcat 5.5
    server.
    I installed eclipse 3.3 with the FB3r3 plug-in (after
    uninstalling Flash as requested). To test all was well I created a
    simple web application with server type 'none' the Flex debugging
    worked fine. However, if I set the server type to J2EE with a
    Tomcat 5.5 server the Flex debugging does not work with the same
    application.
    I have tried switching web browser from internal to default
    system (IE) (the browser used with the 'none' application), but
    this didn't help.
    What have I missed? Any help appretiated.

    Well... even though the upgrade brought all the settings over
    from CF7, the debug settings weren't implemented. The setting was
    checked like it was implemented but it wasn't. To fix, uncheck and
    save your settings. Then recheck the debug setting and save.

  • Flex Socket not working in Android Gingerbread

    Hi,
    I am having this mobile application where it will connect to Air ServerSocket deployed in desktop machine. The problem is socket connection is not working in my device running Android 2.3.5 while it id working on the other device running 4.2.2. Please help.
    Best regard,
    Victor

    do your IE has installed flashplayer plun-in? if so, is plug-in enabled?

  • Flex components not working after upgrade to Flash Builder 4

    I just purchased Flash Builder 4 and imported my project from Flex Builder 3. Everything worked except my Flex components that were created in Flash Professional using the Flex Compoent Kit are not showing up at all in my Flex app. The components were created in Flash CS3 and published to an SWC. I even tried upgrading to Flash Professional CS5 and re-publishing but that didn't help. These components work fine in Flex Builder 3 with Flex SDK 3.2. Does anyone know why they aren't showing up in Flash Builder 4 using Flex SDK 4.1 and AIR 2.5 SDK? I need this to work with AIR SDK 2.5 so I can compile for Android. Thanks, Ryan.

    P.S. when I say they aren't showing up I mean they aren't visible in the running application. Flash Builder is finding them in the SWC though because I instantiate the components in my mxml file and it compiles without errors. - Ryan

  • Managed Beta 2 - Entity Framework projects not working

    Tried to do the simplest EF test I can think of:
    1. Removed all the Oracle stuff on my system, to get rid of the developer tools and such. Reinstalled the stock 11.2.3.0 client (without developer tools). Installed the new managed beta 2 in a new home, with development tools.
    2. Create a new .net 4 project (C# console app).
    3. Create a new Oracle connection, using the managed provider. Browsed tables around a bit, and this works.
    4. Create a new EF model, load tables from the database. This also works.
    Where it goes wrong is when I try to run it and do a query, I get this:
    ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.
    Inner ArgumentException: "Unable to find the requested .Net Framework Data Provider. It may not be installed."
    Explicitly adding a reference to Oracle.ManagedDataAccess and setting Copy Local = True didn't change anything. I'm not sure at this point what it's looking for, but it's not finding it.
    Also tried adding a configuration section and setting TNS_ADMIN, just in case it was that. That didn't solve it either. In fact I had to add this to the top of the config file to get it to even run after setting up the config:
    <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.112.3.60, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    I'll update the post if I figure out what's going wrong here, but it seems like this should be working.

    Answered my own question. Probably should have known this one since I ran into it in beta 1.
    This needs to be added to the config file:
    <system.data>
            <DbProviderFactories>
              <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client"
                   description="Oracle Data Provider for .NET, Managed Driver"
                   type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.112.3.60, Culture=neutral, PublicKeyToken=89b483f429c47342" />
            </DbProviderFactories>
          </system.data>Not 100% sure on that public key token, but it seems to work.

  • Project not working after upgrade to Kura 1.2.0

    Hello everyone, newcomer in the kura world here.
    Recently got a project working with kura and OSGi framework in my working place, but as we re-factored some code and decided to upgrade to kura 1.2.0, the project in my machine it no longer working whereas my co-worker's does.
    my current system is:
    OS: elementary OS 0.2.1 luna
    Kernel: i686 Linux 3.8.0-44-generic
    CPU: Intel Core i3-2348M CPU @ 2.3GHz
    RAM: 4Gb
    Eclipse Version: Luna Service Release 2 (4.4.2)
    Eclipse Build id: 20150219-0600
    the log is full of not resolved references even though I imported the project as per https://www.eclipse.org/forums/index.php/t/1067345/ (he has a similar machine setup)

    Hello,
    Dependencies are missing from your Kura_Emulator_Linux.launch file. To correct these errors:
    1. Right click on Kura_Emulator_Linux.launch and select: Run As -> Run Configurations...
    2. On the Bundles tab, under Target-Platform, be sure the needed bundles are checked
    It looks like the main problem is javax.usb. Ensure that these bundles are enabled:
    javax.usb.api
    javax.usb.common
    javax.usb.linux
    If you continue to have problems, post the contents of your launch file and I can review it.
    Thanks,
    --Dave

  • Adobe flash player 11.9 DEBUG projecter not working

    my adobe 11.9 projecter thing is not allowing me to press create projecter, someone please help i really would like this to work

    i am having the same issue, constant pop-ups saying that it has stopped working. i have uninstalled, using the uninstaller provided as well as through control panel. I could not reinstall through the normal download manager, everytime i tried to open it the installer would crash AND somehow delete its installer from the download folder magically... i tried to reinstall with a downloadable .exe and it seemed to work but quickly reverted to crashing before i could play even one youtube video. I cant visit hardly any websites without getting constant crash pop-ups. PLEASE HELP! i will remote desktop asap or try to downlaod whatever, but id really love to fix this without a complete reformat.

  • Order of "New" button for creating project not working

    Hi
    In Project Server I've added several EnterPrise Project Types, and now I want to sort them the way I want in the "New" button in project center. But no matter what I do, the order is always the same. For instance, if I tick the box for the "Construction"
    EPT, it does not go to the end of the dropdown list when you click the "New" button.
    I have tried this in other deployments and it's working, so how can I debug this?

    Hi Pedro,
    Have you configured the EPT order in the server settings, as per the section #11 in the following article?
    http://technet.microsoft.com/en-us/library/gg597674(v=office.14).aspx
    In case you did, I've never heard or seen such a bug. I'd advice to recreate EPTs from scratch since they are just containers.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Flex project only works when located in original folder

    I just started playing around with AS3 (sound spectrum) and
    I'm using Flex to do that. When I open the html file from the bin
    folder while it's in the project's original location, it works
    fine. But if I move that folder (or any of the project's folders)
    to another location, the music plays, but none of the sound
    spectrum stuff is happening. So what do I have to do to make this
    work in another location or online? By the way, this is on OS
    X.

    This is usually a security sandbox issue.
    The Flash Player can only access resources from the exact
    same domain that it was served from.
    Flex Builder cheats by installing itself in a trusted folder.
    To access resources in a different domain, you need a
    crossdomain.xml file on that server.
    http://www.crossdomainxml.org/
    Tracy

Maybe you are looking for

  • Insert statement in when-checkbox-checked trigger doesn't work

    in a when-checkbox-checked trigger, I wrote the follwing code : IF :sunday = 'Y' THEN msg_alert('Y','I',false); pkg_var.v_day_count := pkg_var.v_day_count + 1; msg_alert('1','I',false); :schtm_skmk.day_id := '1'; msg_alert('2 ',I',false); INSERT INTO

  • Exclusion mask - multiple exclusions

    Hello Experts, I've a folder where 4 types of CSV files will be put in: REC.5499740508504.541448800xxxx.<timestamp>.csv REC.5499740508504.541448900xxxx.<timestamp>.csv REC.5499740508504.54144969999xx.<timestamp>.csv REC.5499740508504.541449000xxxx.<t

  • My iTunes Store does not open on my phone. What shall I do? Thanks

    Please help

  • How to view contenets of Queues/Topics?

    I have been sending some XML files through my ESB flow to a JMS destination(Consumer). The flow will be successfull. But I cannot watch the contents of these JMS destination queues anywhere. I want to watch if the output data is correct in case I hav

  • IPhoto simply refuses to open

    this is driving me nutz: i bought iLife, i installed iLife. Garage Band works, iTunes works, iMovie works, iDVD works...everything works... ...EXCEPT iPHOTO!! The doofy little icon bounces, then I get a message: "iPhoto has unexpectedly quit. Would y