Not working DragManager on AIR Android

I developed an AIR Application 2.6 for Android Samsung Galaxy Tab.
If i use the DragManager in a Desktop Application the DragManager is working fine but if i test it on Android
the DragManager ist not working.
You can test it with a normal Halo Button like:
<mx:Button xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx"
          mouseMove="dragIt(event)">
Here is the Event-Handler dragIt:
private function dragIt(event:MouseEvent):void {
                var dragInitiator:Button = Button(event.currentTarget);
                var dragSource:DragSource = new DragSource();
                dragSource.addData("add_something", "some data");
                // Create a copy of the image to use as a drag proxy.
                var img:BitmapAsset = new buttonIcon() as BitmapAsset;
                var dragImg:Image = new Image();
                dragImg.source = img;
                // calculate dragImage offset
                var offset:Point = new Point(event.localX - img.width / 2, event.localY - img.height / 2);
                DragManager.doDrag(dragInitiator, dragSource, event, dragImg, offset.x, offset.y);               
Is there any way to solve the problem or can i wait until the next AIR SDK Release.

that is exactly the problem. I get no error the DragManager.doDrag is simply not working. If i put everything in a try-catch block nothing appears. So everything seems to work fine but the doDrag method doesn't work.
  var dragInitiator:Button = Button(event.currentTarget);
try
                var dragSource:DragSource = new DragSource();
                dragSource.addData("add_something", "some data");
                // Create a copy of the image to use as a drag proxy.
                var img:BitmapAsset = new buttonIcon() as BitmapAsset;
                var dragImg:Image = new Image();
                dragImg.source = img;
                // calculate dragImage offset
                var offset:Point = new Point(event.localX - img.width / 2, event.localY - img.height / 2);
                DragManager.doDrag(dragInitiator, dragSource, event, dragImg, offset.x, offset.y);
catch(e:Error)
                this.label += e.errorID + "; " + e.name + "; " + e.message;

Similar Messages

  • Flash player does not work with new ICS Android 4.0.4 OS. Has this problem been addressed?

    Flash player does not work with new ICS Android 4.0.4 OS. Has this problem been addressed? I am using Firefox Beta for android and I also tried just Firefox.

    Please check the Play Store app for any Flash updates and install them if present.

  • Multi gestures not working on iPad Air ios8 onwards

    Multi gestures not working on iPad Air ios8 onwards. Turning gestures off then on works briefly. It's annoying. Is the Air bust? In for rep-air?

    MMine has not been working ever since ios8 update. Apple blamed a game I have on the iPad, however this problem occurs on all apps including apple own brand.
    ITs it's almost like they don't care
    come on Apple sort this out !! It's been too long

  • Webcam not working with adobe air

    hey frnds,
    i'm trying to capture webcam snaps and storing it on local desktop.
    Below code of capuring snap is working with flex but same code not working in adobe air.
    I'm using Adobe Flash builder beta 2
    is any setting is required to use webcam with adobe air?
    i'm using following code
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/halo" creationComplete="init();">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.core.UIComponent;
                import flash.media.Camera;
                import flash.media.Video;
                private function videoDisplay_creationComplete() : void
                    var camera:Camera = Camera.getCamera();
                    if (camera)
                        videoDisplay.attachCamera(camera);                   
                    else
                        Alert.show("Oops, we can't find your camera.");
                private function capture_click() : void
                    var snap:BitmapData = new BitmapData(320, 240, true);
                    var snapBmp:Bitmap = new Bitmap(snap);
                    snapBmp.width = 320;
                    snapBmp.height = 240;
                    if(snapshotHolder.numChildren > 0)
                        snapshotHolder.removeChildAt(0);
                    snapshotHolder.addChild(snapBmp);               
                    snap.draw(videoDisplay);               
        ]]>
        </fx:Script>
        <mx:HBox>
            <s:Panel title="Video">
                <mx:VideoDisplay id="videoDisplay" creationComplete="videoDisplay_creationComplete();" width="320" height="240" />       
            </s:Panel>
            <s:Panel title="Snapshot">
                <mx:UIComponent id="snapshotHolder" width="320" height="240" />
            </s:Panel>       
        </mx:HBox>
        <mx:HBox>
            <mx:Button label="reload camera" click="videoDisplay_creationComplete();"/>
            <mx:Button label="capture" click="capture_click();"/>  
        </mx:HBox>
    </s:WindowedApplication>
    Camera is connected but cannot see anything inair,
    plz guide me in this.
    thx in advanced,

    I seem to have the same problem. When creating an web application it works fine, but when creating a desktop application it doesn't. I can't figure out what the problem is.
    Does anyone know?

  • Webcam not working for Macbook Air 2013 after upgrading to OSX Mavericks? Yahoo/ Google/Skype cam chats not working. Facetime works though. Any updates of Mavericks released to fix this?

    Webcam not working for Macbook Air 2013 after upgrading to OSX Mavericks? Yahoo/ Google/Skype cam chats not working. Facetime works though. Any updates of Mavericks released to fix this?

    I have a MacBook Pro Retina display: 15.4-inch late 2015 with OS X Mavericks install, only on second week. 
    Insight works on FaceTime, Skype, but yahoo program does not show insight cam in dropped down.
    Now when I got my new MacBook Pro, I down loaded all new Skype (worked tested), FaceTime (Worked Tested), Yahoo (not worked)
    Fix:
    With the new Maverick you have to use there messager program Version 8.0 (4218). Once I add my yahoo account video works again.
    It also supported AOL, AIM, Google Talk, Jabber.
    Guess I miss it frist time... hope this helps...

  • FaceTime worked not working on Mac Air

    FaceTime is not working on Mac Air version 10.9.4. Was working fine before. When logging in with Apple ID it will not Verify. Seems like it is corrupt. I can't reinstall app because when I throw it in the trash I get a message "FaceTime can't be modified or deleted because its required by OS X".

    You posted in the iPad forum instead of the OS X 10.9 forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/welcome I'll request that Apple relocate your post.
     Cheers, Tom

  • Quicklook (jpg) is not working in iPad Air

    Quicklook (jpg) is not working in iPad Air; only option is airdrop or sharing/opening in the apps - Flickr, Dropbox, PS, etc.

    Are you saying that when you receive an email that has a photo attached you cannot see it in the Msil app?
    Try quitting the mail app and then reset the iPad.
    Double click the Home button to show the screen with running and recently used apps. Each app icon will have a sample page above it. Flick up on the page (not the app icon) and the page will fly away and the app icon will disappear. This quits that app. Then reset your device. Press and hold the Home and Sleep buttons simultaneously until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • Download link not working in Adobe AIR app.

    I wanted to let users browse my site as a desktop application,
    but didn't have the time to write an application from scratch. SO tried following trick. Created a simple Adobe AIR application with a single page. This page redirects to my website and hence loads the website in the AIR window.
    Everything is working fine except that the download links are not working. The download doesn't start. Nothing happens. What is the solution here? Any help is appreciated.

    I am now facing the same problem. I wrote a servlet .
    code like this
             response = (HttpServletResponse) faces.getExternalContext().getResponse();
             response.setContentType("application/x-download");
             String agent = request.getHeader("USER-AGENT");
             boolean isIE=false;            
            if (null != agent && agent.indexOf("MSIE")!=-1) { 
                isIE=true;
            if (isIE) {
                fileName = URLEncoder.encode(fileName, "UTF-8");
            } else {
                fileName = new String(fileName.getBytes("utf-8"), "ISO-8859-1");
            response.setHeader("Content-Disposition","attachment;filename="+fileName);
            ServletOutputStream os = response.getOutputStream();
            byte b[]=new byte[1024];
            int n;
            while((n=in.read(b))!=-1){
                os.write(b,0,n);
           in.close();
           os.close();
    and i open a new window refer to above jsp ,also i set a breakPoint at os.close(),the program has passed through,but nothing happened in the window.
    If i use IE or FF ,the browser will open a small window to allow me select whether open or  save the file.So can anybody give me some advice.Is it because air using webkit engine and the engine does not do this kind of job?
            Thanks.

  • Flash drag and drop not working on Firefox for android browser

    Drag and drop functionality is not working using Firefox Browser for Android on tablet. We tested with flash action script 2.0 & 3.0 content, both have same issue. Specs of the tab and OS are as follows.
    Android - Kitkat 4.4.2
    Tab models - Lenovo A7600H and Samsung Tab4 T531
    Please refer to a previous case raised on the same issue here at this link (Case 1029615) - https://support.mozilla.org/en-US/questions/1029615
    Additionally, we observed that the object on which Drag and Drop event was triggered, is moving little bit when we double tap.
    Does Firefox provide any libraries to support Drag and Drop functionality on Flash? We are using Geekoview api to execute flash content in our app. Will the same support be provided in Geekoview as well?
    Are there other folks facing the same issue? Is there a solution or workaround to get this feature running?

    Flash on Android is no longer supported by Adobe. While Firefox does support basic functionality we mainly focus on legacy video applications. You may run into issues with Flash and Geckoview. I doubt we have any resources to support that configuration.

  • Please Help! Drag and drop does not work in Adobe AIR 3.1 (FlashBuilder 4.6)

    I am working on a PC is made of air and flashbuilder 4.6.
    Drag and drop application does not work in Flash Builder 4.6.
    However, the same source will work with Flash Builder 4.5.
    Please help me.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  backgroundColor="#323232" width="100%" height="100%"
                                  initialize="init(event)"
                                  nativeDragEnter="onDragEnter(event)"
                                  nativeDragDrop="onDragDrop(event)">
              <fx:Script>
              <![CDATA[
                        import mx.events.FlexEvent;
                        protected function init(event:FlexEvent):void
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
                        private function onDragEnter(event:NativeDragEvent):void
                                  if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
                                            NativeDragManager.acceptDragDrop(this);
                        private function onDragDrop(event:NativeDragEvent):void
                                  var arr:Array;
                                  arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
                                  startImage.source = (arr[0] as File).url;
                ]]>
              </fx:Script>
              <s:layout>
                        <s:VerticalLayout/>
              </s:layout>
              <s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
              <s:Image id="startImage" width="100%" height="100%"
                                             horizontalAlign="center" verticalAlign="middle"/>
      </s:WindowedApplication>

    Thank you answers, but it was not the answer I wanted.
    [Problem]
    * Flash Builder 4.5.1(updater) or Flash Builder 4.6
    - If you have installed on pc, does not work adobe air drag and drop
    [Solution]
    1. Reinstalling the Windows 7 (32bit).
    2. Install Flash Builder 4.5.
    3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
       (Instead of using Flex SDK 4.6 is set up)
    In addition, Windows7 64bit environment does not work drag and drop.
    Is there another solution?

  • HP Laserjet Pro 1102w Wireless (Not working on MacBook Air 10.10)

    HP Laserjet Pro 1102w Wireless is not working on my MacBook Air Yosemite (v10.10).
    I tried setting it up via this link: (v10.10 Yosemite, Method 3: Wireless Setup Using a USB Connection)
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02847467#N2251
    All I get under printers is the USB kind and NOT the Wireless/Bonjour kind.
    Can anyone help me out?
    Thanks.  

    Hi @Random_Pelican ,
    I see that you are having issues setting up the printer on 10.10. I would like to help you out today.
    If the printer has a valid IPv4 address and you still can't add the printer as a Bonjour printer, most likely Multicasting is turned off on the router, since your not able to add the printer as a bonjour device and the other devices won't recognize the printer. Just call the router company and have them turn it on.
    If the printer doesn't have a valid IPv4 address please try these steps:
    Reset the printer first to clear out any previous network settings.
    Turn the printer off, hold down the wireless button and cancel (x button) while turning the printer back on and don't release the two buttons until the printer stops making noise.
    Print out a configuration report and make sure the SSID and IP address are cleared.
    Printing a Configuration Page.
    Make sure Safari is set as the default browser. Sometime the Embedded Web Server won't open if it isn't.
    Open Safari, across the top select the Safari menu, select Preferences, General, set as default.
    I will provide the steps for 10.9, which should work the same for 10.10.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Here is a Youtube video of the Laserjet P1102w wireless installation on Maverick.
    Laserjet P1102w.
    You may follow the steps instead of watching the video.
    You have to connect the USB cable from the printer to the computer to install the printer as a USB device first and then configure the wireless network.
    Turn the printer on, connect the USB cable and install the Apple Update that should automatically load.
    Then go to the Apple, System Preferences, Printers and Scanners.
    Highlight the Laserjet on the left side of the window.
    Then click on Open Print Queue, click on Settings, click on Utility, click on Open Printer Utility, then click on the HTML Config button.
    The Embedded Web Server for the printer will open.
    Click on the Networking tab, select Wireless on the left side.
    Fill out this information for your network. Status make sure you select Enabled.
    Apply the settings.
    Then go back to Apple, System Preferences, Printers and Scanners and click the + sign to add the Laserjet bonjour printer. (might take a couple of minutes to appear) Make sure the printer listed beside use: shows the proper printer name and not the default driver, then click on the add button.
    Delete the USB printer from the list from the Printers and Scanners window.
    Disconnect the USB cable.
    Test the printer.
    Let me know how you make out.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Reset not working on iPad Air. I just bought this iPad Air from an individaual.  It was listed as new and came with the box, charger, and guide.  The seller said it was jail broken and I told him I did not want it jail broken  and he said he would reset

    He said he would reset it to factory and I said ok I would purchase it.  He supposedly received it as a gift from his business and already had one.  Well it all looks in new condition and powers up and down ok, and connected to WIFI when I checked it out at Starbucks.  SIRI worked, Safari and the camers worked so I took it.  Nothing was on the screen but standard  app symbols you see on a new iPad.  I compared it to a display at a store.
    Well when I got it home I plugged it into my computer and it asked me to trust and I said yes ond on the Air it asked to ok it and I did.  Then I tried to go to App store and it came up and asked for the password for a Apple ID.  Of course I did not have it.  I then tried to do a reset.  I went to Settings and did a reset erase everything.  It asked me twice if I wanted to reset as it was not recoverable.  I said yes.  It did not ask for and Apple ID or password. The Air reset started and the Apple logo came up and a bar started to move arcoss under it.  It almost became a full bar when the screen went blank and the little small rotating symbol came up.  It just kept rotating and never finished.  Had to do a hard reset holding the Home and Sleep button for 10 seconds and the the Air came back.  Everything is working on the Air except I can not get it to reset and link it up to my computer itunes.
    It is on IOS 7.0.4
    I hope I am not out my $475.  Any help would be appreciated.  Any options or suggestions.
    Thanks.

    You need to return it to the seller and get your money back.  You cannot reset or use the device with another AppleID installed unless you know the password for that ID.
    If the device has been jailbroken, no one on here can give you any further help...the Terms of Use prohibit us from doing so.

  • Trace not working when create air app in flash cs6

    hi
    when i compile air app in flash cs6 , trace function dont workk and flash cs6 dispatch error with this title: test movie lunch failed, please help me

    yeah, that happened to me, is not a compilation error is a popup that says "test lunch movie failed". I usually happened when the machine is saturated memory, and does not work well until after restart 

  • HT4628 The Wifi does not work when Macbook Air is started by Win8. How to let the Wifi work in Win8 ?

    Hi all,
    WIFI of Macbook Air works when the notebook started with OS X.
    But when I restart the Macbook Air with Win8, the Wifi does not work.
    The Macbook Air was bought last month. It is new model. The wifi may be a/c.
    Thanks,

    hey zyzzyxx, you're not the only one with this issue. it happens to me too. as soon as i unplug my cintiq via thunderbolt display my connection shoots straight back to having 20mbps down. i checked it using a speedtest.
    ever find a fix for it?

  • MMS not working, iPhone 5 to Android phones

    Just like the title says, I cannot send MMS from my iPhone 5 to my friend's Galaxy S4. We text message fine, so SMS is working. I have MMS messaging turned on in my settings. I've tried resetting network settings. I still can't send or recieve any pictures to and from Android phones. I also tried turning WiFi off and it still wouldn't send/receive with just the data turned on. Please help! I'm out of ideas.

    not sure what carrier you are using but i use straighttalk and had same issue....here is how i resolved it
    1. delete any profiles you have saved settings>general>profile  delete if you see profile there if not go to step 2
    2. turn on wifi (my internet was also not working)
    3. open safari
    4. type iapnupdatetfdata.straighttalk.com
    5. download profile
    6. turn off wifi
    7. turn off phone
    8. turn on phone
    my internet and pictures worked after this, any user, any carrier, no issues....hope this is helpful!

Maybe you are looking for