Implementing drag and drop across components with drag image...

Hey all,
Finally got the hang of drag and drop. Not too hard, but a little time consuming. I found an article showing how to capture and drag a BufferedImage within a JTree. When you click and drag a node, it creates a BufferedImage of the node on screen and "ghosts" it a bit, which has a very appealing effect.
However, when I try to drag this image to a JList component, it disappears. So I created the same affect in the JList component. Now you can drag the image from the tree to the list and vice versa. However, the problem is, the image does not "fly over" the borders of the two components (butted up against each other) with the mouse. The image seems to go under the borders, while the mouse floats above everything.
What I would like to do is be able to drag the image all over the application, perhaps even the desktop in the case of a SDI application. I want to be able to see this image drag from my Java app over the Windows Explorer folder, just like how you can do that with Windows Explorer, dragging an image of the selected node into any app that supports the drop. I know we can handle the "transfer" data from explorer and vice versa, but how to be able to keep an image with the mouse?
My best guess is somehow using the Glass pane, grabbing a ref to its BufferedImage (if that is even what is there), and drawing the dragged item in that pane. But, then, how will the image move over the desktop outside of the app, where a glass pane is not?
Is there a way to draw on top of anything, anywhere, but still be able to redraw the background as the image moves with the mouse? There are times where the image may be big, so I don't want to have to capture the underlying screen as an image covering the size of the drag image to restore it as the drag image moves around.
Thank you.

We know cursors support some degree of transparence because they have shapes other than blocks.
I've done some playing around with
Toolkit.getDefaultToolkit().createCustomCursor(....);The sad news is, it seems that as soon as a pixel's alpha value is greater than 0, it automatically becomes 100% opaque.
The best you can do, is to take your image, and divide it into a pixel-checkerboard, and set the alpha value of alternating pixels to 0.
e.g.
BufferedImage i = new BufferedImage(32, 32, BufferedImage.TYPE_INT_ARGB);
        int[] data = ((DataBufferInt)i.getRaster().getDataBuffer()).getData();
        boolean on = true;
        for (int z=0; z<data.length; z++)
            if (on)
                data[z] = 0xffffffff;
            else
                data[z] = 0x00000000;
            on = !on;
            if (z%32==0) on = !on;
        Cursor hazyWhite = Toolkit.getDefaultToolkit().createCustomCursor(i, new Point(0,0), "hw");

Similar Messages

  • Drag and Drop using Components[

    Hi,
    As anyone used Drag and Drop for components? I mean, allowing the user to drag and drop a component around a container? Just curious, so far from what I've seen, the only things that can be dragged/dropped are properties of a given object, such as 'text" from a JLabel.
    thanks

    IMHO, you don't need fancy drag and drop features to do that. Implementing MouseInputListener and listening for mouseDragged is a good start. Then setting the component's bounds depending on the location of the mouse at the mouseReleased event (wrt the starting offset) could be a good idea (if you're using absolute positioning, of course).
    From there, it all depends on what you want it to look like during the "transfer". You could, for instance paint the component in a BufferedImage at the start of the D&D and then paint the image with transparency as the mouse is moving.
    Camickr had an interesting post that might help you :
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=492100

  • How to drag and drop a file with its Systemfile icon to a Jtext area

    I want to drag and drop a file to a JText area with its system file icon , but the problem is I cant show the file icon.
    Anyone knows this.
    this is my code.
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.dnd.DnDConstants;
    import java.awt.dnd.DropTarget;
    import java.awt.dnd.DropTargetDragEvent;
    import java.awt.dnd.DropTargetDropEvent;
    import java.awt.dnd.DropTargetEvent;
    import java.awt.dnd.DropTargetListener;
    import java.io.File;
    import javax.swing.*;
    import javax.swing.filechooser.FileSystemView;
    public class FileDrag extends JFrame implements DropTargetListener {
    DropTarget dt;
    File file;
    JTextArea ta;
    JLabel lbl;
    Graphics g;
    ImageIcon tmpIcon;
    public FileDrag() {
    super("Drop Test");
    setSize(300, 300);
    getContentPane().add(
    new JLabel("Drop a list from your file chooser here:"),
    BorderLayout.NORTH);
    ta = new JTextArea();
    ta.setBackground(Color.white);
    getContentPane().add(ta);
    dt = new DropTarget(ta, this);
    setVisible(true);
    public void dragEnter(DropTargetDragEvent dtde) {
    System.out.println("Drag Enter");
    public void dragExit(DropTargetEvent dte) {
    System.out.println("Source: " + dte.getSource());
    System.out.println("Drag Exit");
    public void dragOver(DropTargetDragEvent dtde) {
    System.out.println("Drag Over");
    public void dropActionChanged(DropTargetDragEvent dtde) {
    System.out.println("Drop Action Changed");
    public void drop(DropTargetDropEvent dtde) {
    FileSystemView view = FileSystemView.getFileSystemView();
    JLabel testb;
    Icon icon = null;
    Toolkit tk;
    Dimension dim;
    BufferedImage buff = null;
    try {
    Transferable tr = dtde.getTransferable();
    DataFlavor[] flavors = tr.getTransferDataFlavors();
    for (int i = 0; i < flavors.length; i++) {
    System.out.println("Possible flavor: " + flavors.getMimeType());
    if (flavors[i].isFlavorJavaFileListType()) {
    dtde.acceptDrop(DnDConstants.ACTION_COPY);
    ta.setText("Successful file list drop.\n\n");
    java.util.List list = (java.util.List) tr.getTransferData(flavors[i]);
    for (int j = 0; j < list.size(); j++) {
    System.out.println(list.get(j));
    file = (File) list.get(j);
    icon = view.getSystemIcon(file);
    ta.append(list.get(j) + "\n");
    ta.append("\n");
    tk = Toolkit.getDefaultToolkit();
    dim = tk.getBestCursorSize(icon.getIconWidth(), icon.getIconHeight());
    buff = new BufferedImage(dim.width, dim.height, BufferedImage.TYPE_INT_ARGB);
    icon.paintIcon(ta, buff.getGraphics(), 10, 10);
    repaint();
    dtde.dropComplete(true);
    return;
    System.out.println("Drop failed: " + dtde);
    dtde.rejectDrop();
    } catch (Exception e) {
    e.printStackTrace();
    dtde.rejectDrop();
    public static void main(String args[]) {
    new FileDrag();

    I want to drag and drop a file to a JText area with its system file icon , but the problem is I cant show the file icon.
    Anyone knows this.
    this is my code.
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.dnd.DnDConstants;
    import java.awt.dnd.DropTarget;
    import java.awt.dnd.DropTargetDragEvent;
    import java.awt.dnd.DropTargetDropEvent;
    import java.awt.dnd.DropTargetEvent;
    import java.awt.dnd.DropTargetListener;
    import java.io.File;
    import javax.swing.*;
    import javax.swing.filechooser.FileSystemView;
    public class FileDrag extends JFrame implements DropTargetListener {
    DropTarget dt;
    File file;
    JTextArea ta;
    JLabel lbl;
    Graphics g;
    ImageIcon tmpIcon;
    public FileDrag() {
    super("Drop Test");
    setSize(300, 300);
    getContentPane().add(
    new JLabel("Drop a list from your file chooser here:"),
    BorderLayout.NORTH);
    ta = new JTextArea();
    ta.setBackground(Color.white);
    getContentPane().add(ta);
    dt = new DropTarget(ta, this);
    setVisible(true);
    public void dragEnter(DropTargetDragEvent dtde) {
    System.out.println("Drag Enter");
    public void dragExit(DropTargetEvent dte) {
    System.out.println("Source: " + dte.getSource());
    System.out.println("Drag Exit");
    public void dragOver(DropTargetDragEvent dtde) {
    System.out.println("Drag Over");
    public void dropActionChanged(DropTargetDragEvent dtde) {
    System.out.println("Drop Action Changed");
    public void drop(DropTargetDropEvent dtde) {
    FileSystemView view = FileSystemView.getFileSystemView();
    JLabel testb;
    Icon icon = null;
    Toolkit tk;
    Dimension dim;
    BufferedImage buff = null;
    try {
    Transferable tr = dtde.getTransferable();
    DataFlavor[] flavors = tr.getTransferDataFlavors();
    for (int i = 0; i < flavors.length; i++) {
    System.out.println("Possible flavor: " + flavors.getMimeType());
    if (flavors[i].isFlavorJavaFileListType()) {
    dtde.acceptDrop(DnDConstants.ACTION_COPY);
    ta.setText("Successful file list drop.\n\n");
    java.util.List list = (java.util.List) tr.getTransferData(flavors[i]);
    for (int j = 0; j < list.size(); j++) {
    System.out.println(list.get(j));
    file = (File) list.get(j);
    icon = view.getSystemIcon(file);
    ta.append(list.get(j) + "\n");
    ta.append("\n");
    tk = Toolkit.getDefaultToolkit();
    dim = tk.getBestCursorSize(icon.getIconWidth(), icon.getIconHeight());
    buff = new BufferedImage(dim.width, dim.height, BufferedImage.TYPE_INT_ARGB);
    icon.paintIcon(ta, buff.getGraphics(), 10, 10);
    repaint();
    dtde.dropComplete(true);
    return;
    System.out.println("Drop failed: " + dtde);
    dtde.rejectDrop();
    } catch (Exception e) {
    e.printStackTrace();
    dtde.rejectDrop();
    public static void main(String args[]) {
    new FileDrag();

  • Drag and Drop from Table with Treebynestingtablecolumn

    Hi,
    I am using table UI element in Webdynpro ABAP.
    And I am showing data in tree format using element TreeByNestingTableColumnn.
    Now I tried to implement the Drag functionality for a nested table line and I face two problems:
    1. The requirement is to drag an item out of the table without selecting the reow before! I tried it (by implementing a dragable image etc.) but it seems that it is necessary to select the row first before being able to drag. The problem is that I don't use the property row selectable, so I can't select and therefore I cant drag, right?
    Is it possible to drag an item out of the table but not selecting it before?
    2. In the meanwhile I decided to use the property "row selectable". Now I am able to drag.
    BUT, if I drag a nested item (a child item) and drop it, then - instead of the expected data-reference of the selected item -  the data reference of the fathers node will be provided within wdevent.   Does anyone know why? and is my requiremnt solvable?
    Thanks and regards
    Oliver

    Hi Saravanan,
    thanks a lot for your answer. I was happy to hear that someone else also has the same curious problems than me
    In the meanwhile I was able to solve my requirement and I describe the solution here:
    - Important is how the table is defined:
       --> Set rowSelectable to 'true'
       --> Set selectionMode to 'none'
    - Insert a column. Insert as CellEditor an "Image". Mark the image as "isDragHandle". Now insert a DragSourceInfo.
      Take care on correct data binding.
    For any reason it works now With Treebynestingtablecolumn and without selecting a row, but by dragging the image.
    Best regards
    Oliver

  • Drag and Drop not working with spark HGroup with code

    Can anyone tell me why my HGroup won't fire the dragEnter dragDrop and DragOver events?
    Here is the sample code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.core.IUIComponent;
                import mx.events.DragEvent;
                import mx.managers.DragManager;
                private function dragEnterHandler(e:DragEvent):void {
                    DragManager.acceptDragDrop(e.currentTarget as IUIComponent);
                private function dragOverHandler(e:DragEvent):void {
                    DragManager.showFeedback(DragManager.COPY);
                //user drops src onto target, so re-parent the src to the target
                private function dragDropHandler(e:DragEvent):void {
                    var img:Image = e.dragInitiator as  Image;
                    var newImg:Image = new Image();
                    newImg.load(img.source);
                    var grp:HGroup = e.currentTarget as HGroup;
                    grp.addElement(newImg);
                private function mouseDownHandler(e:MouseEvent):void {
                    DragManager.doDrag(e.currentTarget as IUIComponent, null, e);
            ]]>
        </fx:Script>
        <s:layout>
            <s:HorizontalLayout />
        </s:layout>
        <s:Panel width="50%" height="100%" title="Drag me">
            <mx:Image source="http://www.google.com/intl/en_ALL/images/logo.gif" mouseDown="mouseDownHandler(event);" />
        </s:Panel>
        <s:Panel width="50%" height="100%" title="to Here">
            <s:HGroup width="100%" height="50%" dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);"  dragOver="dragOverHandler(event);" />   
            <s:HGroup width="100%" height="50%" dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);"  dragOver="dragOverHandler(event);" />   
        </s:Panel>
    </s:Application>

    Derek,IE11 is having some compatibility issues with the share point.Apart from IE11,it should work on IE10,9 and Firefox and chrome as well.
    Please check the links below that explains the issues with IE11 and the functionality of Drag and drop and limitations as-well.
    1.Since SharePoint 2013 fully support IE 32-bit version above 7, there might be compatibility issue with other browsers. I’d recommend you use IE 8,9,10 32-bit for optimal Performance.
    2. Open the same document library in Internet Explorer as this functions does not work with Firefox or Chrome by default
    3. Make sure the IE (Internet Explorer) Version should be 32-bit and not a 64-bit
    http://expertsharepoint.blogspot.de/2014/08/issues-with-sharepoint-2013-and.html
    http://expertsharepoint.blogspot.de/2013/12/how-to-upload-multiple-documents-in.html
    http://expertsharepoint.blogspot.de/2013/12/sharepoint-server-2013-drag-and-drop.html
    Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Drag and Drop not working with IE11,Firefox or Chrome on Windows 7 x64 SP1

    Hello,
     I am trying to use drag and drop on my system but it is not working. other's within my department have no issues, but they are using IE10. I also have SharePoint Designer 2013 installed.
    Any suggestions?
    Thanks,
    Derek

    Derek,IE11 is having some compatibility issues with the share point.Apart from IE11,it should work on IE10,9 and Firefox and chrome as well.
    Please check the links below that explains the issues with IE11 and the functionality of Drag and drop and limitations as-well.
    1.Since SharePoint 2013 fully support IE 32-bit version above 7, there might be compatibility issue with other browsers. I’d recommend you use IE 8,9,10 32-bit for optimal Performance.
    2. Open the same document library in Internet Explorer as this functions does not work with Firefox or Chrome by default
    3. Make sure the IE (Internet Explorer) Version should be 32-bit and not a 64-bit
    http://expertsharepoint.blogspot.de/2014/08/issues-with-sharepoint-2013-and.html
    http://expertsharepoint.blogspot.de/2013/12/how-to-upload-multiple-documents-in.html
    http://expertsharepoint.blogspot.de/2013/12/sharepoint-server-2013-drag-and-drop.html
    Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • Can't drag and drop in Finder with trackpad or magic mouse

    I can't seem to drag and drop anthing in the Finder window since updating to Mavericks (10.9). I've tried changing all magic mouse and trackpad settings.  I can drag and drop windows and apps on the dock.  No sure what the issue is....any help is appreciated!

    Had the same problem. Reinstalled the software - all is well. Cured many ills with the initial installation - don't bother trying to play with permissions, etc. Just reinstall.
    Thank goodness this isn't Micro$oft or you'd have to sit in front of the computer to keep answering the "Okay to reboot" questions every time a chunk of code is installed.

  • Drag and Drop not working with windows 8.1

    we using windows 8.1 for a few days now
    so we installed visual basic .net 2012 and starting our projects again we used in windows 7
    but now it seems that the drag and drop doesn't work in windows 8.1
    we only gets a forbidden icon when we drag it over the control
    please can someone tell us why windows 8.1 won't work with drag and drop
    we hope this can be fix in anyway because we don't like when our users use our programs
    and tell us that this point wont work in windows 8.1
    our code:
    Private Sub FlowLayoutPanel1_DragDrop(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragDrop
    If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
    e.Data.GetData(DataFormats.FileDrop)
    End If
    End Sub
    Private Sub FlowLayoutPanel1_DragEnter(sender As Object, e As DragEventArgs) Handles FlowLayoutPanel1.DragEnter
    Try
    If (e.Data.GetDataPresent(DataFormats.FileDrop)) Then
    e.Effect = DragDropEffects.Copy
    Else
    e.Effect = DragDropEffects.None
    End If
    Catch ex As Exception
    Exit Sub
    End Try
    End Sub
    Thank you.
    Dummy
    p.s
    we also got help from social msdn
    here the topic who all answered.
    social
    mdsn

    Hi,
    Welcome posting in TechNet forum.
    Do you mean the drag and drop action of files within different application?
    We may take a try to disable the UAC settings and see if the drag and drop would work. And please note if we have UAC disabled, Windows Store APPs would be expected not going to work.
    For the coding edit stuff, I suggest we keep focus on the MSDN thread.
    Best regards
    Michael Shao
    TechNet Community Support

  • ListView drag and drop - tearoff/resort with touch

    I want to use drag and drop internally within a ListView to resort items.
    I figured it out, and it worked well on my development system in the simulator using a mouse, but when I moved it to a tablet for testing, using the touch screen I couldn't get the items in the list to break free when I pulled them horizontally. They would
    bounce a little but I wouldn't tear off and allow me to move them.
    After some testing I happened to try it with the stylus, and using the stylus it tears of and allows me to move items as expected.
    Does anyone know what flag or setting I need to be setting to enable moving ListView items with finger touches?
    Parenthetically it took me a long while to find the right documentation spread over a number of questions, so for the benefit of those that find this message:
    you need to set
    CanReorderItems="True" AllowDrop="True" CanDragItems="True"
    to enable the tearoff resort feature
    to access the Drop event after the user has used tear off so you can record the changes you need to use
    itemListView.AddHandler(Control.DropEvent, new DragEventHandler(itemListView_Drop), true );
    instead of setting the event handler in the xaml

    I think to get your scenario working with touch I only had to make a one-line fix: 
    In ItemsPage.xaml line 86, setting IsSwipeEnabled to True will enable tear off via touch.
    http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.listviewbase.isswipeenabled.aspx
    This is specifically needed for touch because with a ScrollViewer (which ListView contains by default) causes panning, but mouse / pen do not.  Thus, this setting turns on special processing to decide whether you're panning the ListView control or trying
    to tear off perpindicular to the control.
    When I created my own repro project from your data,  I didn't get it initially because for a default ListView object, the property is true.
    Hope this helps,
    Matt
    XAML SDET Lead : Input / DirectManipulation / Accessibility

  • Is it possible to add a drag and drop interaction to a called image in a contaner?

    this forum is my last hope =( i know how to do drag and drop
    by itself, however right now i have my flash set up so that when
    you click BUTTON A, it does:
    on (release) {
    _root.gotoAndPlay ("photo1");
    once it goes to "photo1", on that frame, i wrote actions on
    the frame to:
    var myMCL:MovieClipLoader = new MovieClipLoader ();
    myMCL.loadClip ("images/heritageBrochureFront.png",
    "container_mc");
    stop();
    so it loads my picture into the container. my question, once
    the image it in the container, can i add drag and drop interaction
    to it? i would really love an easy solution.

    yes. there are a couple of ways to do this.
    one is the create a child movieclip of container_mc and load
    into that child and assign your onPress/startDrag
    onRelease/stopDrag methods to container_mc.
    a second way is to load into container_mc (like you're
    currently doing), wait until loading is complete (ie, use the
    onLoad method of an mcl listener) and then assign your methods to
    container_mc.

  • Mixed results on iPad and iPhone 6 Plus with background image. How to fix this?

    Flash Professional CC
    I'm having an issue with adding images on iPhone 6 plus and iPad. I'm getting mixed results with two items: 1) a background image and 2) a button that should appear at the bottom left-hand corner on any device. In one case the background image appears enlarged and only shows about 30% of itself. In the other case, the bottom left-hand button appears about 50 pixels to the left when x=0. I also get different results when I set the following:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    This does not produce the expected results. I would like to have consistent results across iPad and iPhone 6 plus, which seams to be an issue. The immediate fix for this is to leave the images on the stage instead of using addChild. I could then just stretch the background image so that it spans the whole screen. But I want to add the items dynamically for greater flexibility.
    Here are two cases:
    Case #1:
    This an iPhone 6 plus and you should notice 2 things. 1) There is black and white on both sides. The blue background SHOULD APPEAR ACROSS THE WHOLE SCREEN. 2) The red button in the corner SHOULD APPEAR IN THE LEFT MOST CORNER OF THE
    SCREEN.
    Case #2:
    This an iPhone 6 plus and I have set the scale X, Y to the stage.stageWidth/Height:
    mc_stageBackground_Main.scaleX = stage.stageWidth;
    mc_stageBackground_Main.scaleY = stage.stageHeight;
    This results in a close up of the background image.
    Here is the code that I'm using:
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    //When this is active the background image spans across the device (iPhone 6 plus) correctly. The main logo image does not line up correctly.
    /*stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;*/
    var main_logo:MC_LOGO_MAIN = new MC_LOGO_MAIN();
    var mainBackground_2208: MC_MAIN_BACKGROUND_2208 = new MC_MAIN_BACKGROUND_2208();
    var mainBackground_1024: MC_BACKGROUND_1024 = new MC_BACKGROUND_1024();
    var mainCorner: MC_MAINCORNER = new MC_MAINCORNER();
    var chapters: MC_CHAPTERS = new MC_CHAPTERS();
    var _stageWidth = 1024;
    if (stage.stageWidth > _stageWidth)
        //Add bigger background if the stage is bigger than 1024
        mainBackground_2208.x = stage.stageWidth/2;
        mainBackground_2208.y = stage.stageHeight/2;
        addChild(mainBackground_2208);
        //Using this code results in a very close up view of the stage on iPhone 6 plus  
        /*mc_stageBackground_Main.scaleX = stage.stageWidth;
        mc_stageBackground_Main.scaleY = stage.stageHeight;*/
        //Adds corner to the main screen.
        mainCorner.y = stage.stageHeight;
        mainCorner.x = (stage.stageWidth - stage.stageWidth);
        addChild(mainCorner);
        TweenLite.from(mainCorner, 1,{ height: 0, width: 0, delay:1, ease:Elastic.easeOut});
        //add logo to sit at 50 pixels from the top of the stage
        /*main_logo.x = stage.stageWidth/2;
        main_logo.y = (stage.stageHeight -stage.stageHeight + main_logo.height *.6);
        addChild(main_logo);
        TweenLite.from(main_logo, 1,{ y: -main_logo.height, ease:Elastic.easeOut});*/
    else
        trace ("The stage is 1024 or smaller");
        //Add 1024 background if stage is 1024 or smaller
        mainBackground_1024.x = stage.stageWidth/2;
        mainBackground_1024.y = stage.stageHeight/2;
        addChild(mainBackground_1024);
        //Adds corner to the main screen.
        mainCorner.y = stage.stageHeight;
        mainCorner.x = (stage.stageWidth - stage.stageWidth);
        addChild (mainCorner);
        TweenLite.from(mainCorner, 1,{ height: 0, width: 0, delay:1, ease:Elastic.easeOut});
        //adds chapters
        chapters.x = (stage.stageWidth - stage.stageWidth)+75;
        chapters.y = stage.stageHeight - 120;
        addChild(chapters);
        TweenLite.from(chapters, 1,{ height: 0, delay:.5, ease:Elastic.easeOut});  
        //adds the Main logo to sit at 50 pixels from the top of the stage
        main_logo.x = stage.stageWidth/2;
        main_logo.y = (stage.stageHeight -stage.stageHeight + main_logo.height *.6);
        addChild(main_logo);
        TweenLite.from(main_logo, 1,{ y: -main_logo.height, ease:Elastic.easeOut});

    On all of the devices go to settings - facetime - iphone cellular calls - oFF, this part of Apple continuity.

  • Suspend and resume only works with fallback image

    I get a black screen on suspend and resume with pm-utils after I boot with main kernel image.
    However, fallback image works fine.
    I'd like to figure out what's missing in the main kernel image.
    lsmod looks the same with both images.
    How should I proceed?

    you are my hero...before I read this post I could never resume my laptop running Arch no matter what quirks I tried. That's actually why I've been running Fedora - resume worked. In fact, resume works on every other distro I've tried.
    As far as an ACPI update being to blame, I've had problems resuming in Arch for over a year, although I can't go back in time to try the fallback and see if it works
    When I get some spare time, I'll copy the mkinitcpio config for fallback to the main config and start removing modules / hooks to see which one breaks it
    EDIT: /etc/mkinitcpio.d/kernel26.fallback no longer exists - it just uses autodetect. Also, the loaded modules are the same no matter which image was used to boot, so I'm stumped. Maybe somebody who knows more about that mkinitcpio does can shed some light
    Last edited by wizzard (2009-03-07 16:43:10)

  • I am new to Mac and am having trouble with uploading images from my pictures folder to Facebook and other share sites- some of my images are accessible while others are seemingly locked....

    I am new to Mac and am having trouble up loafing images from my pictures folder to photography sites and Facebook. Some of the saved images are accessible, while others are not, ( they are light colored and cannot be uploaded) I am not saving them any differently.

    Hi Robodisko,
    Thanks for your prompt reply...... 
    I often proof my work in preview then edit images in photoshop and rename from there.  The dsc images are renamed to correlate the name of the class etc.  i.e. dcs_001 is saved as the file name required 7A.jpeg etc.
    The file names are required to correlate what is what and so on..........

  • Help needed with virtual bookshelf - drag and drop between components?

    Hi there,
    Im trying to create a virtual bookshelf, where book spines are individual movie clips that can be dragged and re-ordered on the shelf.  At the moment i can drag the spines to one assigned target, but not any target or 'nudge' the position of the other books along.
    Im sorry if this is a bit vague i'm not that experienced in as3, please feel free to ask any questions and i'll do my best to answer.  Im thinking that an array is necessary which holds the positions, but im not sure how to put it all together!
    Any help greatly appreciated! The code i have so far is:
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    var dragArray:Array = [red, blue, green, purple, yellow];
    var matchArray:Array = [target1, target2, target3, target4, target5];
    var currentClip:MovieClip;
    var startX:Number;
    var startY:Number;
    for(var i:int = 0; i < dragArray.length; i++) {
    dragArray[i].buttonMode = true;
    dragArray[i].addEventListener(MouseEvent.MOUSE_DOWN, item_onMouseDown);
    matchArray[i].alpha = 0.2;
    function item_onMouseDown(event:MouseEvent):void {
    currentClip = MovieClip(event.currentTarget);
    startX = currentClip.x;
    startY = currentClip.y;
    addChild(currentClip); //bring to the front
    currentClip.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, stage_onMouseUp);
    function stage_onMouseUp(event:MouseEvent):void {
    stage.removeEventListener(MouseEvent.MOUSE_UP, stage_onMouseUp);
    currentClip.stopDrag();
    var index:int = dragArray.indexOf(currentClip);
    var matchClip:MovieClip = MovieClip(matchArray[index]);
    if(matchClip.hitTestPoint(currentClip.x, currentClip.y, true)) {
      //a match was made! position the clip on the matching clip:
      currentClip.x = matchClip.x;
      currentClip.y = matchClip.y;
      //make it not draggable anymore:
      currentClip.removeEventListener(MouseEvent.MOUSE_DOWN, item_onMouseDown);
      currentClip.buttonMode = false;
    } else {
      //match was not made, so send the clip back where it started:
      currentClip.x = startX;
      currentClip.y = startY;

    Morning kglad, thanks for your help yesterday. I tried the code again and still have the same problems - you cant drop over another book and it nudges that book along aswell as the others to the right. Also if you drop a book back in its originally place - sometimes - it creates a gap next to it. The book still only seem happy in their original starting positions!
    Its very close, im continuing to try fiddle with it to get it working, have the whole of today to try and do this so the coffee is on!
    Ive taken some code out that I realise this morning I didnt't need - e.g the code that stops a book being dragged once you have positioned it (they need to be able to be repositioned more than once, and the code that sends a book back to its original position if you didnt reposition it over a target. If this was foolish please tell me! I have a feeling the latter was!
    so the code im trying to get working at the moment is:
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    var dragArray:Array = [red, blue, green, purple, yellow];
    var matchArray:Array = [target1, target2, target3, target4, target5];
    var currentClip:MovieClip;
    var startX:Number;
    var startY:Number;
    for(var i:int = 0; i < dragArray.length; i++) {
    // REMOVED
    //dragArray[i].buttonMode = true;
    dragArray[i].addEventListener(MouseEvent.MOUSE_DOWN, item_onMouseDown);
    matchArray[i].alpha = 0.2;
    function item_onMouseDown(event:MouseEvent):void {
    currentClip = MovieClip(event.currentTarget);
    startX = currentClip.x;
    startY = currentClip.y;
    addChild(currentClip); //bring to the front
    currentClip.startDrag();
    stage.addEventListener(MouseEvent.MOUSE_UP, stage_onMouseUp);
    function stage_onMouseUp(event:MouseEvent):void {
    stage.removeEventListener(MouseEvent.MOUSE_UP, stage_onMouseUp);
    currentClip.stopDrag();
    var index:int = dragArray.indexOf(currentClip);
    var matchClip:MovieClip = MovieClip(matchArray[index]);
    if(matchClip.hitTestPoint(currentClip.x, currentClip.y, true)) {
      //a match was made against a target:
      currentClip.x = matchClip.x;
      currentClip.y = matchClip.y;
    //REMOVED
    //make it not draggable anymore:
      //currentClip.removeEventListener(MouseEvent.MOUSE_DOWN, item_onMouseDown);
      //currentClip.buttonMode = false;
    for(var i:int=dragArray.indexOf(currentClip)+1;i<dragArray.length;i++){
    dragArray[i].x+=currentClip.width;
      // REMOVED
      //else {
      //match was not made, so send the clip back where it started:
      //currentClip.x = startX;
      //currentClip.y = startY;

  • Strange drag and drop email issue with Outlook 2010

    Has anyone experienced this? It only started happening recently. It may have something to do with an installation of the most recent Office 2010 service pack. Here's the scenario: Using Outlook 2010 professional Try dragging an email from the email list
    on the right into the list of folders on the left in order to file it When the drag crosses the email list to the folder list, the email drops into some random folder The drag operation picks up a random folder and now has a random folder attached to the drag
    In other words, the email disappears somewhere and is replaced by a folder in the drag operation. It's not a mouse button issue as this doesn't happen anywhere else on the system while dragging, only in Outlook. Any thoughts?
    my PC Techs http://www.mypctechs.com

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can follow these Method to troubleshoot.
    Method A
    Start outlook in Safe Mode, Press and hold the
    CTRL key, and then click Outlook program
    If the problem does not occur in the safe mode, this issue might be related to some third-party add-ins in the Outlook program, we can try to disable
    them.
    Method B
    We can try to create a new profile in Microsoft Office Outlook 2010 to test the issue, follow these steps:
    1.
    Exit Outlook.
    2.
    Go to Start > Control Panel, click or double-click Mail.
    3.
    Click Show Profiles. Choose Prompt for a profile to be used.
    4.
    Click Add.
    5.
    Type a name for the profile, and then click OK.
    6.
    Highlight the profile, and choose Properties. Then Email Accounts..., add your email account in the profile.
    7.
    Start Outlook, and choose this new profile.
    If this problem does not occur in the new Outlook profile, the old Outlook profile is corrupted. We can delete that and use a new Outlook profile.
    More information you can refer to this KB article:
    http://support.microsoft.com/kb/829918
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Best Regards, 
    William Zhou
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for
    TechNet Subscriber Support, contact
    [email protected]

Maybe you are looking for

  • Monthly wise sales report

    hai,      i m working on sales report where in i need to get month wise sales of the products and the related cost incured to company by the sales in the matrix form as shown below  can u help me in which way can i get this monthly report           m

  • DMEE format for tax reporting - USM1 - structure RFUMS_TAX_ITEM

    Hi Sap experts, I'm using the DMEE format USM1, in the structure RFUMS_TAX_ITEM, I don't understand following fields: USER_FIELD_1     USER_FIELD_1     CHAR     40     0     First Field Entered by User USER_FIELD_2     USER_FIELD_2     CHAR     40   

  • Appleworks won't save DB file as ASCII

    My AppleWorks Database won't save the file as an ASCII (for export) Save As, only offers AppleWorks and Claris Works options. I know in the past ASCII was an option, but for some reason no longer? I am running AW 6.2.9 on a PowerPC G5 running 10.5.8.

  • Workflow starts only when initiated by specific user

    hello, Workflow starts only when initiated by specific user...need to get started  who ever initiates it.... any help would be appreciated !!! Thanks regards, Vignesh.

  • HR personal administration data

    Hi Experts, My requriement is to create a report to see the apprailsal amount and % for example : Last year salary (before apprail) = 30,00 and salary raised by 10,000 and after apprailsal salary will be = 40,000 I would like to see Empid    Name   L