Drag/Drop a label placing it in its new x,y co-ordinates

I'm working on a project where I need to drag a label around
and when dropped, it should be placed wherever my mouse is. So far,
I can drag it onto a canvas, but it dissapears - when i drag the
label onto the canvas, its location should be wherever my mouse is
currently at, ie. i want to drag a label then drop it to a new
location.
I already know the code for all the drag functions &
classes (dragInitiator)- but I'm wondering about the code to
implement dropping the label to a new location based on my mouse's
x,y co-ordinates. Please help. Thank you.

i think u need to do some computation here ... while in the
dragit() event u should have an account of the mouseX and mouseY
positions (the positions on the label not the container) with you.
Then finally when u are dropping it ... u have to take into account
that u subtract a relative value of this mouse X & Y (relative
to the container) from the actual container.mouseX and
container.mouseY.
here is an example that is working on my system :-
private function dragIt(event:MouseEvent, text:String, //
[this is the mouse move event]
format:String):void {
tempX = this.mouseX;
tempY = this.mouseY;
var dragInitiator:Label = new Label();
private function dragDropIt(event:DragEvent):void{ // [this
is the drag complete event]
this.x=this.parent.mouseX - tempX;
this.y=this.parent.mouseY - tempY;
I hope u find the solution with this!
Sumitro

Similar Messages

  • Showing one data point on a line chart - X-axis label placed away from its actual position

    Hi Guys,
         In line chart, i used CircleItemRenderer to show single data point. It shows correctly if it is single data point. But the x-axis label placed away from its actual position. Right now it displayed left most position where the line chart starts. I need to move that label straight of that datapoint where it plotted.  Please see the screen shot attached with this post.
    In screen shot, x-axis label "Jan" displayed in left most position.
         And how can we show the datatip for single datapoint. At present, we can't able to see the datatips also with single datapoint.
         Can any body help me to fix those two issues.

    I figured out a way to customize a single datapoint in a line series.  The solution is at this link:
    http://www.flexdeveloper.eu/forums/flex-charting/customize-a-datapoint-in-a-line-series/

  • Drag & drop in Mail

    How can I drag & drop Apple's Mail files into its Inbox. I've been using Entourage & can drag & drop it's own email files directly into it's inbox.
    I don't want to have to import them, it takes too long. I know you can drag & drop an email onto the destop but you can't drag it back again, which seems silly.
    Please help

    Well that's what i'm asking, I can do it in Entourage. Apple invented Drag & drop & it surprises me that their Email program can't do it. I can't use Apple Mail if it can't do it. We have an ordering system that goes to a sales email address, some of these emails also contain art files so in entourage we simply drop the email files into a Folder on the network & they are then dragged into the inbox in Entourage on the Artists computer. We could also foward the emails but then mistakes are made replying as they then go back to the sales computer. So easy to just drag & drop.

  • Drag & drop item within Tree not working

    Hi,
    I want to be able to drag & drop items within a tree but
    items cannot move accross branches
    It can only be moved within its branch.
    For this I have a condition in dragDrop(event) handler.
    When i drag item it does not move accross branches which is
    intended but when i drop within its branch
    on a different location,
    the item does
    not get dropped
    Though i have dragMoveEnabled set to true.
    my code looks like this:
    private function onDragDrop(event:DragEvent):void {
    var dropTarget:Tree = Tree(event.currentTarget);
    var node:XML = myTree.selectedItem as XML;
    var p:*;
    p = node.parent();
    if(node.parent().@label != "sameBranch") {
    return;
    } else {
    // drop target.
    Do i need to do anything else...
    Please advice.
    Thanks
    Lucky

    topping up, still did not find a way to do...
    but i have handled all tree events like dragEnter and
    dragDrop as described in the flex doc.
    Has anyone faced a similar issue...

  • Manual Drag&Drop on Panel components

    Ok people I have been following this example
    http://blogs.adobe.com/flexdoc/drag_and_drop/
    What the goal of my application will be to have a canvas on
    top of my application and one at the bottom. I will start off with
    a set of dynamically generated panels in the top or bottom canvas,
    doesn't really matter which. I want to be able to count how many
    panels are in each canvas and get the related id and name for each
    panel in each canvas.
    I have set up a canvas at the top where I pretty much just
    have the code from that example I linked to at the top except that
    my panels are generated on the fly and their count is variable. I
    am STRUGGLING to create a "two way drag and drop" between the two
    canvases (moving child panel from the top canvas to the bottom
    canvas and vice versa).
    I have found PLENTY of two way drop and drag examples but
    they all were about lists, datagrid, or tree components -
    components that already come built in with "drag and drop" and "two
    way drag and drop" but in my case the drag and drop is manually
    created.
    I am totally clueless as to the process. Can anyone point me
    in the right direction? I posted in the yahoo usergroups but so far
    my post has NOT been approved and it was posted like three hours
    ago.
    Any help is GREATLY appreciated.
    Here is part of my mxml:
    <mx:Canvas id="memberFilters"
    width="680" height="275"
    borderStyle="solid"
    backgroundColor="#B6FABB"
    x="10" y="10"
    dragEnter="doDragEnter(event);"
    dragDrop="doDragDrop(event);">
    </mx:Canvas>
    <mx:Canvas id="nonMemberFilters"
    width="680" height="275"
    borderStyle="solid"
    backgroundColor="#FBB7B7"
    x="10" y="325"
    dragEnter="doDragEnter(event);"
    dragDrop="doDragDrop(event);">
    </mx:Canvas>
    here is part of of my .as file:
    // Drag initiator event handler for
    // the title bar's mouseMove event.
    private function tbMouseMoveHandler(event:MouseEvent):void
    var dragInitiator:Panel=Panel(event.currentTarget);
    var ds:DragSource = new DragSource();
    ds.addData(event.currentTarget, 'panel');
    // Update the xOff and yOff variables to show the
    // current mouse location in the Panel.
    xOff = event.currentTarget.mouseX;
    yOff = event.currentTarget.mouseY;
    // Initiate d&d.
    DragManager.doDrag(dragInitiator, ds, event);
    // Function called by the canvas dragEnter event; enables
    dropping
    private function doDragEnter(event:DragEvent):void
    DragManager.acceptDragDrop(Canvas(event.target));
    // Function called by the Canvas dragDrop event;
    // Sets the panel's position,
    // "dropping" it in its new location.
    private function doDragDrop(event:DragEvent):void
    // Compensate for the mouse pointer's location in the title
    bar.
    var tempX:int = event.currentTarget.mouseX - xOff;
    event.dragInitiator.x = tempX;
    var tempY:int = event.currentTarget.mouseY - yOff;
    event.dragInitiator.y = tempY;
    // Put the dragged panel on top of all other components.
    memberFilters.setChildIndex(Panel(event.dragInitiator),
    memberFilters.numChildren-1);
    // Function called by the Canvas dragDrop event;
    // Sets the panel's position,
    // "dropping" it in its new location.
    private function doDragDrop(event:DragEvent):void
    // Compensate for the mouse pointer's location in the title
    bar.
    var tempX:int = event.currentTarget.mouseX - xOff;
    event.dragInitiator.x = tempX;
    var tempY:int = event.currentTarget.mouseY - yOff;
    event.dragInitiator.y = tempY;
    // Put the dragged panel on top of all other components.
    nonMemberFilters.setChildIndex(Panel(event.dragInitiator),
    nonMemberFilters.numChildren-1);
    public function onAvailableFiltersResult(result:Array):void
    phpData = new ArrayCollection(result);
    for(x=0; x<phpData.length; x++) {
    // create each new panel and add it to the parent canvas
    var filterData:Panel = new Panel();
    filterData.id = "id__" + phpData[x].data;
    filterData.title = phpData[x].label;
    filterData.addEventListener(MouseEvent.MOUSE_DOWN,
    tbMouseMoveHandler);
    memberFilters.addChild(filterData);
    the code in the .as is my code along with the code from the
    link above

    Here is the updated code ...
    I replaced the onAvailableFiltersResult with createPanels to
    create some 5 panels. You can replace it with
    onAvailableFiltersResult.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    creationComplete="createPanels()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.managers.DragManager;
    import mx.containers.Panel;
    import mx.core.DragSource;
    import mx.events.DragEvent;
    // Variables used to hold the mouse pointer's location in
    the title bar.
    // Since the mouse pointer can be anywhere in the title bar,
    you have to
    // compensate for it when you drop the panel.
    public var xOff:Number;
    public var yOff:Number;
    // Drag initiator event handler for
    // the title bar's mouseMove event.
    private function tbMouseMoveHandler(event:MouseEvent):void
    var dragInitiator:Panel=Panel(event.currentTarget);
    var ds:DragSource = new DragSource();
    ds.addData(event.currentTarget, 'panel');
    // Update the xOff and yOff variables to show the
    // current mouse location in the Panel.
    xOff = event.currentTarget.mouseX;
    yOff = event.currentTarget.mouseY;
    // Initiate d&d.
    DragManager.doDrag(dragInitiator, ds, event);
    // Function called by the canvas dragEnter event; enables
    dropping
    private function doDragEnter(event:DragEvent):void
    DragManager.acceptDragDrop(Canvas(event.target));
    // Function called by the Canvas dragDrop event;
    // Sets the panel's position,
    // "dropping" it in its new location.
    private function doDragDrop1(event:DragEvent):void
    // Compensate for the mouse pointer's location in the title
    bar.
    var tempX:int = event.currentTarget.mouseX - xOff;
    event.dragInitiator.x = tempX;
    var tempY:int = event.currentTarget.mouseY - yOff;
    event.dragInitiator.y = tempY;
    memberFilters.addChild(Panel(event.dragInitiator));
    // Put the dragged panel on top of all other components.
    memberFilters.setChildIndex(Panel(event.dragInitiator),
    memberFilters.numChildren-1);
    // Function called by the Canvas dragDrop event;
    // Sets the panel's position,
    // "dropping" it in its new location.
    private function doDragDrop2(event:DragEvent):void
    // Compensate for the mouse pointer's location in the title
    bar.
    var tempX:int = event.currentTarget.mouseX - xOff;
    event.dragInitiator.x = tempX;
    var tempY:int = event.currentTarget.mouseY - yOff;
    event.dragInitiator.y = tempY;
    nonMemberFilters.addChild(Panel(event.dragInitiator));
    // Put the dragged panel on top of all other components.
    nonMemberFilters.setChildIndex(Panel(event.dragInitiator),
    nonMemberFilters.numChildren-1);
    public function createPanels():void
    for(x=0; x<5; x++) {
    // create each new panel and add it to the parent canvas
    var filterData:Panel = new Panel();
    filterData.id = "id__" + x;
    filterData.title = "Panel-" + x;
    filterData.addEventListener(MouseEvent.MOUSE_DOWN,
    tbMouseMoveHandler);
    memberFilters.addChild(filterData);
    ]]>
    </mx:Script>
    <mx:Canvas id="memberFilters"
    width="680" height="275"
    borderStyle="solid"
    backgroundColor="#B6FABB"
    x="10" y="10"
    dragEnter="doDragEnter(event);"
    dragDrop="doDragDrop1(event);">
    </mx:Canvas>
    <mx:Canvas id="nonMemberFilters"
    width="680" height="275"
    borderStyle="solid"
    backgroundColor="#FBB7B7"
    x="10" y="325"
    dragEnter="doDragEnter(event);"
    dragDrop="doDragDrop2(event);">
    </mx:Canvas>
    </mx:Application>

  • R6034 error Photoshop CS2 drag & drop

    I've had this problem for some time.  I'm on Vista-64-SP2 running Photoshop-CS2 When first installed PS-CS2 worked fine. I got no errors when starting the program and I could drag & drop icons from the desktop or windows onto the Adobe taskbar icon and the photo would load normally.
    Then I let Adobe automatically upgrade my CS2 and other Adobe products (Dreamweaver CS4, Illustrator CS2, GoLive6, Reader, Flash browser plug-in, etc.) and then I started getting a windows error message R6034 saying that "An application has made an attempt to load the C runtime library incorrectly."  Microsoft says the fix is to recompile the application.  Yeah right!
    OK, so I delete Photoshop and other applications and reinstall them all and the problem goes away ... until I let Adobe automatically update the products and the problem comes back.  Yes, I can probably live with an unupdated virgin version of Photoshop CS2 but there should be an answer from Adobe or at least someone else to validate that my complaint is not unique.
    Another problem that may be related is that I've seemed to have lost the ability for Adobe GoLive6 to open Photoshop images for editing
    Also I've lost the ability to drag & drop from the desktop or a window onto an open Photoshop application or onto its icon on the taskbar.
    I've searched the web and find nothing similar.  The solutions I have found were unrelated to my situation or were for a Macintosh.  I've searched the forums here and find nothing that gives an answer.
    I know pretty much what I'm doing around computers and I keep a clean system.  Informed replies are most appreciated.

    I don't think you will have much luck on that one. The problem here clearly is the way 32bit DLLs need to be piped on 64bit systems, which for some reason does not seem to work in your case, probably due to soem registry key being changed and then it messes up the wghole OLE/ DDE/ COM shebang. It may be further complicated by some dispaly routiner incompatibility. Since CS2 was never developed with Vista 64 in mind, you can't even exactly blame someone and this seems a common problem with an assortment of legacy apps, not just Adobe programs. What you could try is to download Sysinternals' Process Monitor, establish a filter rule specific to the updater and see, which registry keys it changes, which DLLs it replaces etc. this may then offer some clues as to which ones you need to salvage before the update and may possibly put back into place thereafter. May work, may not, but in any case you are doing it on your own responsibility....
    Mylenium

  • Drag Drop List to List

    I have a source list and a destination list. I want to submit
    the contents of the destination list via my sendformdata function
    along with the other formitems.
    Here are my source/dest lists.
    <mx:VBox dropShadowEnabled="true">
    <mx:Label text="Available Loops"/>
    <mx:List id="srclist" width="300" height="150"
    allowMultipleSelection="true"
    dragEnabled="true" dropEnabled="true"
    dragMoveEnabled="true" labelField="category"
    dataTipFunction="myLabelFunc" showDataTips="true"
    alternatingItemColors="[#ece8ff, #ffffff]">
    </mx:List>
    </mx:VBox>
    <mx:VBox>
    <mx:Label text="Patched Loops"/>
    <mx:List alternatingItemColors="[#ece8ff, #ffffff]"
    id="destlist" width="200" height="150"
    allowMultipleSelection="true"
    dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
    labelField="category"/>
    </mx:VBox>
    user drags one or more items from the source to dest list.
    This works great.
    Now I need to pass the dropped/selected data in destlist to
    myobj, along with the other form items. How?
    <mx:Script>
    <![CDATA[
    private function sendFormdata():void {
    var myobj:Object = new Object();
    myobj.name = myname.text;
    myobj.email = myemail.text;
    myobj.entry = myentry.text;
    myobj.entrycomment = myentrycomment.htmlText;
    myobj.selectedcats= destlist.????
    cfdataInsert.addData({user:myobj})
    ]]>
    </mx:Script>
    Second part of my question is that I want the value of
    myobj.selectedloops to be a comma separated list of categoryid
    numbers (e.g. 1,3,5). My query, that populates the source list via
    the remoteobject contains categoryid,category, and description
    columns. I currently display the category in the labelField of the
    list, but I need to submit the categoryid to the DB.
    data comes from...
    <mx:RemoteObject
    id="cfdata" showBusyCursor="true"
    destination="ColdFusion"
    source="da8.Constellation.entries">
    <mx:method name="getCats" result="getCats_result(event)"
    />
    </mx:RemoteObject>
    getCats ColdFusion function...
    <cffunction name="getCats" access="remote"
    returntype="query">
    <cfset var CatData = "">
    <cfquery name="CatData" datasource="#DSN#">
    select categoryid,category,description
    from Categories
    order by category
    </cfquery>
    <cfreturn CatData />
    </cffunction>
    and then this function populates the srclist with the
    data....
    public function getCats_result(event:ResultEvent):void
    srclist.dataProvider = event.result as ArrayCollection;
    destlist.dataProvider =[];
    How do I pass the resulting destlist categoryids to
    myobj.selectedcats ?
    I don't know how the ArrayCollection organizes the query and
    how to reference the categoryid in the srclist and destlists.
    I'd appreciate any help.
    Thanks,
    Don

    SAP has lots of demo reports for drag and drop functionalities. Please check [Drag & Drop With the ALV Grid Control|http://help.sap.com/saphelp_erp2004/helpdata/en/22/a3f5fbd2fe11d2b467006094192fe3/content.htm]

  • The bookmarks toolbar is there but has no item buttons on it. How do I get the items back for this toolbar? Also would like to know if the toolbars can be put on the same line to make more room on the page (drag & drop) ??

    The bookmarks toolbar is there but has no item buttons on it. How do I get the items back for this toolbar?
    Also would like to know if the toolbar can be put on the same line to make more room on the page (drag & drop) ?? Like the menu & bookmarks toolbar could/should fit on same line. This would add more page view...
    Floyd Perry
    Thanks

    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    * Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button
    You can only move the content from a toolbar onto other toolbars if all toolbars support that feature. You need to check that in the options of each toolbar.

  • How to fix the Draggable element at its new location after every drag

    Hi All,
    I was trying something new with implementing the "Drag & Drop" control in UI5 .
    The whole functionality involved putting all the items in the list and ,making them draggable.
    After the user drags and drops the item to a new location , it becomes fixed at the position , until its dragged again.
    This is the following piece of code that i was working on :
    $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-core');
      $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-widget');
      $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-mouse');
      $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-draggable');
      $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-sortable');
      $.sap.require('sap.ui.thirdparty.jqueryui.jquery-ui-droppable');
      var backlog = ["As a site visitor, I can read FAQs","As a site editor, I can maintain an FAQ section","As a site member, I can download the latest training material and methodology PDFs","As a visitor, I can download presentations, PDFs, etc. on Scrum that I can use"];
      backlog.sort();
      jQuery.sap.require("jquery.sap.strings"); //Load the plugin to use 'jQuery.sap.startsWithIgnoreCase'
    var oAdd_backlog = new sap.ui.commons.Button({text:"Add Backlog Item", tooltip:"Submit value",width:"160px"});
           var oHorizontal_Layout = new sap.ui.layout.HorizontalLayout("Layout1", {
            content: [oSearch, oAdd_backlog, oBacklog_status_filter ]
      //vertical layout
        // create a list box to show the backlog items
      //backlog list
      var backlog_list = new sap.ui.commons.ListBox("list1", {visibleItems:100, width : "60%"});
      // initialize the list
      updated_baklog_List(backlog_list);
      backlog_list.addStyleClass("list_css1");
    //drag and drop functionality
      var oOldOnAfterRender = backlog_list.onAfterRendering;
      backlog_list.onAfterRendering = function() {
      oOldOnAfterRender.apply(this);
      var $listBoxId = this.getId();
      $("#"+$listBoxId+"-list").sortable();
      //final layout
      var oVerticalLayout = new sap.ui.layout.VerticalLayout("Layout2", {
      content: [oHorizontal_Layout, backlog_list]
    Your inputs and new approaches are valuable to my research .

    You shouldn't have to do anything.
    Holdend is default and it ought to keep the value.
    I guess something else is happening which interferes.
    Are you stopping the animation?
    Starting another one ( which will effectively stop the first )?
    Or something.
    I did a very quick and dirty test changing a colour:
    <UserControl.Resources>
    <Storyboard x:Name="sb">
    <ColorAnimation
    Storyboard.TargetName="Button1BackgroundBrush"
    Storyboard.TargetProperty="Color"
    From="Red" To="Yellow" Duration="0:0:5"
    FillBehavior="HoldEnd"
    />
    </Storyboard>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
    <Button
    Content="This is a button">
    <Button.Background>
    <SolidColorBrush x:Name="Button1BackgroundBrush" Color="Red" />
    </Button.Background>
    </Button>
    </Grid>
    </UserControl>
    Code behind
    public MainPage()
    InitializeComponent();
    this.sb.Begin();
    It stays yellow.
    Hope that helps.
    Recent Technet articles:
    Property List Editing   ;  
    Dynamic XAML

  • LR 2.1 & 2.0 ~ DRAG & DROP not working correctly with  photos when moving, applying keywords

    Today this issue started, originally in 2.0, updated to 2.1 and issue continues.
    Issue: DRAG & DROP feature with mouse (or pad on laptop) will select multiple photos, (with CTRL & SHIFT key as typical with Windows machines)but when I try to move them to a different folder, or drop them onto a keyword, it will not work.
    Specifically, I select two photos to move to a different folder, the selection work, but when I try to "grab" the selected photos, Lightroom defaults to One Photo, and it will not grab it to move it. However, I can "right click" on the intended folder and can select "move selected photos to folder" and that works. This issue also applys to assigning keywords, and I would assume other similiar actions. I should note, that I can "rotate", assign "labels", "stars", and Keywords from Keyword sets, it just happens with the "Drag & Drop" feature.
    Help
    The feature works correctly in other Windows programs, so I'm sure it's related to Lightroom and not the mouse.
    I have a Windows Vista machine, 3GB RAM 160GB HD, ~ 75% free space, AMD Turion X2 Dual Core 70 Processor. Everything has worked fine up until this morning.
    Prior to upgrading to 2.1, I optimized my Catalogue. Everything seems to work fine except this feature.
    Help

    Drag by the actual image area of the thumbnail, not the surrounding 'fake slide' cell.
    That's a feature of Lightroom's grid view. Clicking on image area of thumbnail keeps the multiple selection and makes the image clicked the primary select. Clicking on the outer thumbnail area deselects all but the active image.

  • Urgent!  Adobe killed drag/dropping workflow in CC.  Help restore it!

    I posted this first FR at the end of another thread, here.  Due to the importance of this issue, IMO, I'm giving this FR a new thread, plus adding as second version of the same FR.
    My stance is simple.  Every change Adobe makes to Premiere Pro should be positive to most or all people.  If a change Adobe makes is negative for most or all people, then it must be removed.
    Adobe did a negative change in CC, which brings about zero positive improvements (unless proven otherwise which has not been done yet).
    In CC, drag-dropping clips no longer  = dropping what you're dragging!  If you only have a video track source patched, audio doesn't get dragged to the Timeline.  If you only have an audio track source patched, video doesn't get dragged to the Timeline.
    This is contrary to the way it worked in CS6 (where it made sense): drag drop clip = same clip dropped, regardless of Timeline settings!
    Please help fix this by sending the following FRs as your own or writing a FR of your own based on this new problem Adobe introduced in CC.  Thank you and God bless all those that care enough about Premiere to take action!
    VERSION 1 (revert back to CS6)
    *******Enhancement / FMR*********
    Brief title for your desired feature:
    Drag/Dropping video with audio clip from Source Monitor or Project window to Timeline should include both video and audio... always!
    How would you like the feature to work?
    The way it did in Premiere Pro CS6: 
    A. Video with audio dragged from Project window = video with audio dropped in Timeline
    B. Three drag/dropping options from Source monitor, regardless of Source Patch settings.  Drag/drop:
    1. Source Monitor Image = Video + Audio
    2. 'Drag Video Only' button = Video only
    3. 'Drag Audio Only' button = Audio only
    In CC, these options no longer work properly depending on Source Patching.  This makes no sense, and provides zero benefits to the editor!
    Why is this feature important to you?
    Because intelligent workflows matter!  There's nothing intelligent or efficient about the Source Monitor's buttons working some times but not others, or drag/dropping a clip from the Project window only to find its audio doesn't appear in the Timeline.  When drag and dropping clips, Source Patching should determine default clip PLACEMENT, Not WHAT gets dragged to the Timeline!
    VERSION 2 (give us a choice!)
    *******Enhancement / FMR*********
    Brief title for your desired feature: Preferences window option to disable Source Patching's effect on drag/dropped clips.
    How would you like the feature to work?
    If Adobe can't/won't revert drag/dropping back to functional CS6 standards, whereby clip dragged = same content dropped regardless of Timeline settings, then please give us the option of turning off CC's new drag/dropping behavior through a new check box option in the Preferences Window: "Source patching affects Drag/dropping".
    Checked = CC behavior
    Unchecked = CS6 behavior
    Why is this feature important to you?
    Because respecting workflows matters!  CS6 and prior Premiere editors had their workflows disrespected when Adobe suddenly changed drag/dropping behavior with zero apparent benefits in return.  Please give us a choice in this matter or revert to CS6's intelligent drag-dropping altogether.

    I posted this first FR at the end of another thread, here.  Due to the importance of this issue, IMO, I'm giving this FR a new thread, plus adding as second version of the same FR.
    My stance is simple.  Every change Adobe makes to Premiere Pro should be positive to most or all people.  If a change Adobe makes is negative for most or all people, then it must be removed.
    Adobe did a negative change in CC, which brings about zero positive improvements (unless proven otherwise which has not been done yet).
    In CC, drag-dropping clips no longer  = dropping what you're dragging!  If you only have a video track source patched, audio doesn't get dragged to the Timeline.  If you only have an audio track source patched, video doesn't get dragged to the Timeline.
    This is contrary to the way it worked in CS6 (where it made sense): drag drop clip = same clip dropped, regardless of Timeline settings!
    Please help fix this by sending the following FRs as your own or writing a FR of your own based on this new problem Adobe introduced in CC.  Thank you and God bless all those that care enough about Premiere to take action!
    VERSION 1 (revert back to CS6)
    *******Enhancement / FMR*********
    Brief title for your desired feature:
    Drag/Dropping video with audio clip from Source Monitor or Project window to Timeline should include both video and audio... always!
    How would you like the feature to work?
    The way it did in Premiere Pro CS6: 
    A. Video with audio dragged from Project window = video with audio dropped in Timeline
    B. Three drag/dropping options from Source monitor, regardless of Source Patch settings.  Drag/drop:
    1. Source Monitor Image = Video + Audio
    2. 'Drag Video Only' button = Video only
    3. 'Drag Audio Only' button = Audio only
    In CC, these options no longer work properly depending on Source Patching.  This makes no sense, and provides zero benefits to the editor!
    Why is this feature important to you?
    Because intelligent workflows matter!  There's nothing intelligent or efficient about the Source Monitor's buttons working some times but not others, or drag/dropping a clip from the Project window only to find its audio doesn't appear in the Timeline.  When drag and dropping clips, Source Patching should determine default clip PLACEMENT, Not WHAT gets dragged to the Timeline!
    VERSION 2 (give us a choice!)
    *******Enhancement / FMR*********
    Brief title for your desired feature: Preferences window option to disable Source Patching's effect on drag/dropped clips.
    How would you like the feature to work?
    If Adobe can't/won't revert drag/dropping back to functional CS6 standards, whereby clip dragged = same content dropped regardless of Timeline settings, then please give us the option of turning off CC's new drag/dropping behavior through a new check box option in the Preferences Window: "Source patching affects Drag/dropping".
    Checked = CC behavior
    Unchecked = CS6 behavior
    Why is this feature important to you?
    Because respecting workflows matters!  CS6 and prior Premiere editors had their workflows disrespected when Adobe suddenly changed drag/dropping behavior with zero apparent benefits in return.  Please give us a choice in this matter or revert to CS6's intelligent drag-dropping altogether.

  • Able to drag drop items of combobox but want to disable 1st item

    Hello Sir,
    I am able to drag drop elements of the combobox.
    Here is my code...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:local="*" xmlns:utils="adobe.utils.*" xmlns:controls="qs.controls.*" initialize="init()">
    <mx:Script>
    <![CDATA[
    import mx.events.DragEvent;
    import mx.events.ListEvent;
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.controls.ComboBox;
    import mx.controls.Alert;
    [Bindable]
    public var str:String = "";
    public var comboLength:int;
    public function init():void
    var xml:XML = <test>
    <col>
    <col1>one</col1>
    </col>
    <col>
    <col1>two</col1>
    </col>
    <col>
    <col1>three</col1>
    </col>
    <col>
    <col1>four</col1>
    </col>
    <col>
    <col1>five</col1>
    </col>
    <col>
    <col1>six</col1>
    </col>
    <col>
    <col1>seven</col1>
    </col>
      </test>;
      cb1.dataProvider = xml;
      comboLength = xml.col.length();
      cb1.rowCount = comboLength;
      str = (xml.col[0].col1.toString());
      cb1.prompt = str;
    public function closeHandler(event:Event):void
    if(MouseEvent.DOUBLE_CLICK)
    // Alert.show("Click Event");
    public function changeHandler(event:ListEvent):void
    // Alert.show("Single Click Event");
    public function doubleClickEvent(event:MouseEvent):void
    Alert.show(event.currentTarget.toString());
    Alert.show(event.target.toString(),"Double Click");
    public function dragEnterFunction(event:DragEvent):void
    Alert.show(event.target.parent.toString());
    ]]>
    </mx:Script>
    <mx:ComboBox id="cb1" prompt="prashant" doubleClickEnabled="true" doubleClick="doubleClickEvent(event)"
    close="closeHandler(event)" dragEnter="dragEnterFunction(event)" >
    <mx:itemRenderer>
    <mx:Component>
    <mx:DataGrid itemClick="outerDocument.cb1.text = this.selectedItem.col1.toString();itemSelected(event)"
    dragEnabled="true" dropEnabled="true" dragDrop="draDropHandler(event)" dragMoveEnabled="true" headerHeight="0" showHeaders="false"
    creationComplete="init()" click="clickable()"
    itemDoubleClick="doubleClickEvent(event)">
    <mx:columns>
    <mx:DataGridColumn dataField="col1" headerText="" id="da" disabledColor="white"  />
    </mx:columns>
    <mx:Script>
    <![CDATA[
    import mx.controls.DataGrid;
    import mx.events.DropdownEvent;
    import mx.events.ListEvent;
    import mx.events.DragEvent;
    import mx.controls.Label;
    import mx.controls.Alert;
    public function clickable():void
    //Alert.show("clickable");
    public function itemSelected(event:ListEvent):void
    Alert.show(event.itemRenderer.data.col1,"Single Click");
         public function draDropHandler(event:Event):void
    Alert.show(event.target.parent.toString());
    public function dragEnterFunction(event:DragEvent):void
    Alert.show(event.target.parent);
    override public function set data( value:Object ) : void
    this.dataProvider = value.col;
    //outerDocument.cb1.text = this.selectedItem.col1.toString()
    //myList.addEventListener(ListEvent.ITEM_DOUBLE_CLICK, onItemDoubleClick,
    public function doubleClickEvent(event:ListEvent):void
    Alert.show(event.itemRenderer.data.col1,"Double Click");
    ]]>
    </mx:Script>
    </mx:DataGrid>
    </mx:Component>
    </mx:itemRenderer>
    </mx:ComboBox>
    </mx:Application>
    But now i want to disable drag drop of the 1st item and the last item.
    And also add double click of each item.
    Can someone please help me out.
    Awaiting your reply.
    Thanks in advance.

    Hello Sir,
    Thanks a lot for your reply.
    I have implemented some thing can you please help me out with this?
    In this can you help me out with the double click event????
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    xmlns:local="" xmlns:utils="adobe.utils." xmlns:controls="qs.controls.*"
    initialize="init()">
    <mx:Script>
    <![CDATA[
    import mx.events.DragEvent;
    import mx.events.ListEvent;
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.controls.ComboBox;
    import mx.controls.Alert;
    import mx.controls.listClasses.ListBase;
    import mx.core.UIComponent;
    public var str:String = "";
    public var comboLength:int;
    public function init():void
    var xml:XML =
    </mx:Application

  • Dock Downloads Folder Drag & Drop Crashes Finder

    When attempting to Drag & Drop files from the Downloads folder in the Dock to a different folder, whether that folder be on the Desktop, or open in a Finder window, Finder crashes and relaunches. Sometimes the file gets placed, sometimes it remains in the Dock. I have a similar problem with Mountain Lion on my 13" MBP, although Finder does not crash, it simply won't allow files to be dragged from the Dock to a folder icon on the Desktop.
    This problem has been persistent through several updates, and has been present since upgrading to Lion, and is a problem on more than one computer. This does not happen with every file, but happens often enough to be frustrating. It also happens consistently when moving more than 2 files from the Downloads folder in the Dock to either the Desktop, or a folder. I am also unable to Drag & Drop a file from the Downloads (or Documents folder for that matter...) to any folder icon on the desktop.
    I attempted this morning to file a bug report with Apple, but the Bug Reporting site had an error, and the Home Button on the Error page does nothing (hooray for web design!).

    Step one is to log into a newly created admin user account and see if the problem persists.
    As for the BR issue, https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/wa/signIn loads w/o issues.

  • Drag & Drop of a file not working in Ubuntu & other linux

    Hi All,
    I am working on a project,in which it has the requirement of dragging the files
    from a JList present inside a JFrame to the desktop.
    First I tried to get a solution using dnd API but could not. Then i googled and i got an application which is
    working perfectly in both Windows and MAC Operating systems, after I made few minor changes to suit my requirements.
    Below is the URL of that application:
    http://stackoverflow.com/questions/1204580/swing-application-drag-drop-to-the-desktop-folder
    The problem is the same application when I executed on Ubuntu, its not working at all. I tried all available options but could not trace out the exact reason.
    Can anybody help me to overcome this issue?
    Thanks in advance

    Hi,
    With the information you provided and through some information found on google i coded an application. This application is able to do the drag and drop of an item from the Desktop to Java application on Linux Platform, but i am unble to do the viceversa by this application.
    I am including the application and the URL of the information i got.
    [URL Of Information Found|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4899516]
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.datatransfer.DataFlavor;
    import java.awt.datatransfer.Transferable;
    import java.awt.datatransfer.UnsupportedFlavorException;
    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 java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.swing.DefaultListModel;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    import javax.swing.TransferHandler;
    import javax.swing.WindowConstants;
    public class DnDFrame extends JFrame implements DropTargetListener {
         private DefaultListModel listModel = new DefaultListModel();
         private DropTarget dropTarget;
         private JLabel jLabel1;
         private JScrollPane jScrollPane1;
         private JList list;
         List<File> files;
         /** Creates new form DnDFrame */
         public DnDFrame() {
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              initComponents();
              dropTarget = new DropTarget(list, this);
              list.setModel(listModel);
              list.setDragEnabled(true);
              list.setTransferHandler(new FileTransferHandler());
         @SuppressWarnings("unchecked")
         private void initComponents() {
              GridBagConstraints gridBagConstraints;
              jLabel1 = new JLabel();
              jScrollPane1 = new JScrollPane();
              list = new JList();
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              getContentPane().setLayout(new GridBagLayout());
              jLabel1.setText("Files:");
              gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.gridwidth = GridBagConstraints.REMAINDER;
              gridBagConstraints.anchor = GridBagConstraints.WEST;
              getContentPane().add(jLabel1, gridBagConstraints);
              jScrollPane1.setViewportView(list);
              gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.gridwidth = GridBagConstraints.REMAINDER;
              gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
              getContentPane().add(jScrollPane1, gridBagConstraints);
              pack();
         public void dragEnter(DropTargetDragEvent arg0) {
         public void dragOver(DropTargetDragEvent arg0) {
         public void dropActionChanged(DropTargetDragEvent arg0) {
         public void dragExit(DropTargetEvent arg0) {
         public void drop(DropTargetDropEvent evt) {
              System.out.println(evt);
              int action = evt.getDropAction();
              evt.acceptDrop(action);
              try {
                   Transferable data = evt.getTransferable();
                   DataFlavor uriListFlavor = null;
                   try {
                        uriListFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
                   } catch (ClassNotFoundException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                   System.out.println("data.isDataFlavorSupported(DataFlavor.javaFileListFlavor: " +
                             data.isDataFlavorSupported(DataFlavor.javaFileListFlavor) );
                   if (data.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                        files = (List<File>) data.getTransferData(DataFlavor.javaFileListFlavor);
                        for (File file : files) {
                             listModel.addElement(file);
                   }else if (data.isDataFlavorSupported(uriListFlavor)) {
                        String data1 = (String)data.getTransferData(uriListFlavor);
                        files = (List<File>) textURIListToFileList(data1);
                        for (File file : files) {
                             listModel.addElement(file);
                        System.out.println(textURIListToFileList(data1));
              } catch (UnsupportedFlavorException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
              } finally {
                   evt.dropComplete(true);
         private static java.util.List textURIListToFileList(String data) {
              java.util.List list = new java.util.ArrayList(1);
              for (java.util.StringTokenizer st = new java.util.StringTokenizer(data,"\r\n");
              st.hasMoreTokens();) {
                   String s = st.nextToken();
                   if (s.startsWith("#")) {
                        continue;
                   try {
                        java.net.URI uri = new java.net.URI(s);
                        java.io.File file = new java.io.File(uri);
                        list.add(file);
                   } catch (java.net.URISyntaxException e) {
                   } catch (IllegalArgumentException e) {
              return list;
         private class FileTransferHandler extends TransferHandler {
              @Override
              protected Transferable createTransferable(JComponent c) {
                   JList list = (JList) c;
                   List<File> files = new ArrayList<File>();
                   for (Object obj: list.getSelectedValues()) {
                        files.add((File)obj);
                   return new FileTransferable(files);
              @Override
              public int getSourceActions(JComponent c) {
                   return COPY;
         static {
              try {
                   uriListFlavor = new
                   DataFlavor("text/uri-list;class=java.lang.String");
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
         private class FileTransferable implements Transferable {
              private List<File> files;
              public FileTransferable(List<File> files) {
                   this.files = files;
              public DataFlavor[] getTransferDataFlavors() {
                   return new DataFlavor[]{DataFlavor.javaFileListFlavor,uriListFlavor};
              public boolean isDataFlavorSupported(DataFlavor flavor) {
                   if(flavor.equals(DataFlavor.javaFileListFlavor) || flavor.equals(uriListFlavor))
                        return true;
                   else
                        return false;
              public Object getTransferData(DataFlavor flavor) throws
              UnsupportedFlavorException, java.io.IOException {
                      if (isDataFlavorSupported(flavor) && flavor.equals(DataFlavor.javaFileListFlavor)) {
                        return files;
                   }else if (isDataFlavorSupported(flavor) && flavor.equals(uriListFlavor)) {
                        java.io.File file = new java.io.File("file.txt");
                        String data = file.toURI() + "\r\n";
                        return data;
                   }else {
                        throw new UnsupportedFlavorException(flavor);
         private static DataFlavor uriListFlavor;
         static {
              try {
                   uriListFlavor = new
                   DataFlavor("text/uri-list;class=java.lang.String");
              } catch (ClassNotFoundException e) {
                   e.printStackTrace();
         public static void dumpProperty(String name) {
              System.out.println(name + " \t" + System.getProperty(name) );
         public static void main(String[] args) {
              String[] props = {
                        "java.version",
                        "java.vm.version",
                        "java.vendor",
                        "os.name",
              "os.version"};
              for (String prop : props) {
                   dumpProperty(prop);
              Runnable r = new Runnable() {
                   public void run() {
                        DnDFrame f = new DnDFrame();
                        f.setVisible(true);
              SwingUtilities.invokeLater(r);
    }Please Suggest me in this.

  • Reseting a drag & drop game

    Hello All:
    I'm having trouble reseting a drag & drop game. It is a movie clip with two pages: start_pg and game_pg. On start_pg is a start button (start_btn) that goes to game_pg. On game_pg is button (end_btn) that goes back to start_pg. Both buttons share the same layer, so I made each invisible when not of its page. The game works fine, but when the end_btn is clicked, all movie clips that have been dropped, stay there.
    How can I go back to start_pg and reset all movie clips to their original starting point?
    // start game page
    stop();
    end_btn.visible=false;
    start_btn.visible=true;
    start_btn.addEventListener(MouseEvent.CLICK, goGame);
    function goGame (Event:MouseEvent): void
    gotoAndStop("game_pg");
    // game page
    var startX:Number;
    var startY:Number;
    var counter:Number = 0;
    pic_1.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    pic_1.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    pic_3.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    pic_3.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    pic_2.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    pic_2.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    pic_4.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    pic_4.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
    event.target.startDrag(true);
    event.target.scaleX = 1.2;
    event.target.scaleY= 1.2;
    m_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function dropIt(event:MouseEvent):void {
    event.target.stopDrag();
    var myTargetName:String = "target" + event.target.name;
    var myTarget:DisplayObject = getChildByName(myTargetName);
    if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
      event.target.width = 230;
      event.target.height= 190;
      m_txt.text = "Good Job!";
      event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
      event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
      event.target.buttonMode = false;
      event.target.x = myTarget.x;
      event.target.y = myTarget.y;
      counter++;
    } else {
      m_txt.text = "Try Again!";
      event.target.x = startX;
      event.target.y = startY;
      event.target.width = 50;
    event.target.height= 40;
    if(counter == 4){
            m_txt.text = "Congratulations, you matched all rivers correctly!";
    pic_1.buttonMode = true;
    pic_2.buttonMode = true;
    pic_3.buttonMode = true;
    pic_4.buttonMode = true;
    // end game button
    start_btn.visible=false;
    end_btn.visible=true;
    // end game button
    end_btn.addEventListener(MouseEvent.CLICK, goStart);
    function goStart(Event:MouseEvent):void
    gotoAndStop("start_pg");
    Thanks in advance for any assistance.
    German

    Kglad:
    All my movie clips are on stage. Does it make any difference?
    I tried three options: 1) I didn't change the two functions and added the restore XY action to end_btn. It didn't work.
    end_btn.addEventListener(MouseEvent.CLICK, goStart);
    function goStart(Event:MouseEvent):void
    restoreXY(MovieClip(root));
    gotoAndStop("start_pg");
    The second option. In each function I changed
    the last part restoreXY(mc[obj]); to restoreXY(MovieClip(root));  (this didn't work)
    The third option was adding the storeXY to my function pickUp (which is when all movie clips exist in their original position) and keeping the restore action in end_btn. Didn't work.
    function pickUp(event:MouseEvent):void {
    event.target.startDrag(true);
    event.target.scaleX = 1.2;
    event.target.scaleY= 1.2;
    m_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    storeXY(MovieClip(root));
    In all cases, I got errors in many lines such as
    1120: Access of undefined property obj the scritp is   if(mc[obj] is "MovieClip" && mc[obj].parent==mc){
    Can you please tell where in my code I should put the storeXY and restoreXY(MovieClip(root));?
    Thanks again for helping me.
    German

Maybe you are looking for

  • New Update 1.1.1 Has Serious Problems!

    my father in law had his iphone updated at the apple store and he lost all of his info. the mac idiot (far from genious) said that my father in laws computer died when installing update cause the mac idiot failed to plug it in when he was working on

  • Solution for this

    Hi All, I have one requirement to get weekly snap shot and monthly snap shot reports which are open. we planned  to load ODS daily in that keffield is ocalday and bill no .    so we will get all staus to ods as new records in ods                     

  • "One or More Modules Reporting an Error"

    Hi, Please give suggestion on this error "One or More Modules Reporting an Error" message. Snapshot is attached for refrence. Thanks, Abuzar

  • BAPI_SALESORDER_CHANGE issue

    hello, I am using above BAPI to update reason for rejection in sales order. Let me take an example. One particular order has 2 items, one item fully delivered. another item not delivered. Now for me the result must be : - for the first item, reason f

  • My iTunes card is NOT paying off my over due balance!

    Hey Guys! About a month ago i have a visa gift card registered to my itunes account and it had about $4 on it left so i bought one game with that on my iphone. Then I clicked on another game and it let me download that, and 2 more after that. I found