How to move javafx stage by mouseevent drag and drop

Hi there,
Do you know how to move stage by mouse event drag and drop event.
My Idea is to create a stage without title header but the user can move it by click the body of the stage and hold it and release it into some where new place by mouse event.
Any body....?
Thanks before

I solved the porblem by using this point code:
onMousePressed: function(e) {
X = e.screenX - stage.x;
Y = e.screenY - stage.y;
onMouseDragged: function(e) {
stage.x = e.screenX - X;
stage.y = e.screenY - Y;
The code can be implemented on every node.
Edited by: 840072 on Mar 15, 2011 8:34 PM

Similar Messages

  • How to add a code so my drag and drop movie clip will not stick  once it is dragged to final place o

    Hello all and kglad, I have to use the old drag and drop code on my movie clips, but the problem is when I drag the movieclip to the area on my .swf file once i release it, it sticks to the hand mover.
    I am encloseing the action script I am using could someone or kglad tell me what is missing from the code so that once it is released it will not stick, see code below
    circle.onPress = function(){
    startDrag(this);
    circle.onRelease = function(){
    stopDrag();
    I am desparate for help on this must get project ready for this afternoon
    Seal55

    there's nothing wrong with that code but it would be better to use:
    circle.onPress = function(){
    this.startDrag();
    circle.onRelease = function(){
    this.stopDrag();
    but that won't solve your problem.  there must be something else going on like a depth issue.  you may need to use swapDepths() to bring your circle under the mouse when releasing.

  • How can a transparent stage have round corners and drop shadow?

    Hi,
    This is actually 2 questions:
    1- How can a transparent stage have background corners?
    I've tried doing this:
    .rootPane
    -fx-border-radius: 4 4 4 4;
    -fx-background-radius: 4 4 4 4;
    -fx-border-color: gray;
    -fx-border-style: solid;
    -fx-border-width: 1;
    -fx-background-image: url("resource/clean_textile.png");
    And make the root of the scene have the ".rootPane" style class.
    But it sometimes shows some visual artifacts on the corners. Am I doing it wrong? is this a bug?
    2 - How can a transparent stage show the windows 7 drop shadow effect of windows? Is it possible?

    How can a transparent stage have background corners?Yes, this is a possible.
    There are a few of tricks and you need all of them:
    1. StageStyle must be transparent:
    new Stage(StageStyle.TRANSPARENT);2. Scene fill must also be transparent:
    new Scene(root, Color.TRANSPARENT);3. Color the background:
    -fx-background-color: derive(cadetblue, -20%); 4. You need to apply the dropshadow effect to the background region.
    -fx-effect: dropshadow(three-pass-box, derive(cadetblue, -20%), 10, 0, 4, 4); 5. You need to inset the background in the region which has the dropshadow so that the shadow will be visible within the Stage and not clipped out of the stage bounds.
    -fx-background-insets: 12; 6. You need to apply a radius to the background to round it's corners.
    -fx-background-radius: 6;Here is a sample in this gist revision =>
    https://gist.github.com/1887631/155d5e052b6ec7d0eaa6f825713f98f8e542152e
    How can a transparent stage show the windows 7 drop shadow effect of windows? Is it possible?You can kind of approximate it using the above techniques, but I don't think you will be able to get an exact match without something like: http://javafx-jira.kenai.com/browse/RT-18936 "Enable aero-style glass transparencies" (and probably additional JavaFX platform support as well) being implemented.

  • How to auto close finder window after drag and drop?

    In Tiger, I would file away items on my desktop my dragging them to the hard drive and then digging down to the appropriate folder. The finder window would then close automatically after dropping the file. Is there a setting in Snow Leopard that will enable similar functionality? Whenever I complete a drag and drop now the finder window just stays open, which isn't a huge issue, but I'd still like to change it. Thanks!

    Here is the test code:
         lo_nd_table_data_source = wd_context->get_child_node( name = wd_this->wdctx_table_data_source ).
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = lt_table_data_source ).
          "Read Dummy Table
          lo_nd_table_data_source->get_static_attributes_table( IMPORTING table = it_table_data_source ).
        CONCATENATE ls_airline_info-carrid ls_airline_info-connid ls_airline_info-fldate INTO ls_table_data_source-row_key.
          ls_table_data_source-parent_row_key = ls_airline_info-carrid.
          ls_table_data_source-is_leaf   = abap_false.
          ls_table_data_source-expanded  = abap_true.
            SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE it_table_data_source.
         LOOP AT it_table_data_source INTO wa_table_data_source WHERE carrid = ls_airline_info-carrid
                                                                and   connid = ls_airline_info-connid
                                                                and   fldate = ls_airline_info-fldate.
          ls_table_data_source-connid    = ls_airline_info-connid.
          ls_table_data_source-fldate    = ls_airline_info-fldate.
          ls_table_data_source-PRICE     = wa_table_data_source-PRICE.
          ls_table_data_source-CURRENCY  = wa_table_data_source-CURRENCY.
          "Select all data to the new dummy table structure.
          "Move one row of the table to ls_table_data_cource correspondingle.
          APPEND ls_table_data_source TO lt_table_data_source.
          DELETE ADJACENT DUPLICATES FROM lt_table_data_source.
       ENDLOOP.
          lo_nd_table_data_source->invalidate( ). "Clear the table data
          lo_nd_table_data_source->bind_table( lt_table_data_source ). "Refresh new data
    Thanks,
    Kiran

  • Can't move files into trash by drag and drop

    with the latest update 10.8.5 I can't move files by drag and drop into the trash on my dock anymore. the files sticks to the cursor.
    anyone expierencing the same issue?

    Hi Joe,
    Welcome to the Support Communities!
    Does this issue persist after you restart your computer?  The following article will provide some additional troubleshooting steps:
    You can't empty the Trash or move a file to the Trash
    http://support.apple.com/kb/ht1526
    Cheers,
    - Judy

  • How can i get the address with drag and drop from address book into pages?

    I want to creat a letter withe the new pages. Normaly it was possible to put the adress from the adressbook with drag and drop into the letter. So it was possible to create one letter with many different adresses. But now I didn't find this function any more. How to do ist now?
    Withe best regards and I'm sorry for may bad english
    Klaus

    Sounds like you "upgraded" to Pages 5.
    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5, after Exporting your files to Pages '09, and rate/review it in the App Store, then get back to work.
    Peter

  • How to add Two incorrect feedbacks in Drag and drop in captivate 7.

    Hi
    I want to show two different incorrect feedback in drag and drop interaction in Captivate 7. Currently we can show only one even though i have increased the drag and drop attempts to 2. I want to show a try again feedback and incorrect feedback with correct options and this should not be there when the learner re-visits this slide.
    Note: I am already using a success caption and have executed the action - "On Enter"  to "Hide" this success caption.
    Please help me with this.

    Hi Sreekanth,
    You understanding is correct.  But,it is not even necessary to show the correct sources on correct targets along with the feedback... the correct option numbers in  incorrect feedback will do.
    reg point number 3, if I revisit the slide, the feedback are still displayed. For example, in this case, I added a correct feedback, but when I revisit the slide, the feedback was still appearing. So I added this action "On Enter"  to "Hide" this success caption. So that is why i told specifically that none of the feed backs should be there when i revisit the slide.
    Sorry Srikanth - I am not familiar with the advanced actions or variables. I have just used some from referring the examples from net. that's all

  • Unable to move ringtone or music by drag and drop and other ways.

    Hello,
    I recently got a new computer and its Windows 7. I downloaded iTunes, the newest version (11.1.4.62), on 1/31/2014. On my previous computer I had older version of iTunes and was able to simply drag and drop everything.
    In this new version I found trouble with adding music but I figured that out. Next I wanted to add a ringtone but I was having trouble. I was able to add the ringtone to itunes-Library-Tones (format m4r)  but after this I am unable to add it to devices-tones. I tried drag and drop, I tried sync and it simply wont work. If i try to drag and drop a song straight to my devices it wont allow that either. I am even unable to delete any songs that I have on my iphone through iTunes. I also had voice memos on m phone and I cant even edit that section or voice memos.
    Someone please help! this is very frustrating that I can't remove, add, edit my iphone through iTunes.

    After Effects CS4 is not supported on that version of Mac OS. See the system requirements for After Effects CS4:
    System requirements | After Effects

  • Can I move content to ATV using drag and drop?

    Sorry if this question was asked before. Please point me to it if it is, coz I couldn't find it.
    The situation:
    Here's what I am asking for. I have about 400GB of media and many real specific playlists used in the family.
    Now I want to have about 20GB of that on ATV.
    The problem:
    The only way to move the 20GB as I see it right now is to sync the content by creating playlists. And my playlists DO NOT match the content I want to move.
    For eg; I want to move all of ledzeppelin to ATV. Its outrageous that I have to create a playlist called LZ just to move it to ATV.
    Is there any way I can drag/drop selected content to ATV just like I do on my IPOD? Am I doing something wrong?
    Any other ideas?

    Actually, I have an update. Finally yesterday night I spent 2 hours creating Artist playlists for ATV syncing. And I created a seperate folder to keep it away from our family playlists.
    However, when I go to the syn window, it does not display a folder structure so all my playlists are mixed and sorted in ascending order!!!!!11 @#$@#$#$#$^ Geezzz!!
    Come on apple! This is really dissapointing and I hope apple fixes this ASAP.

  • How to drag and drop button between two toolbar?

    Hi,everybody :)
    i hava a problem :
    if i have two toolbar in a frame , and there are some button in each, how can i use dnd package to drag and drop button between two toolbar,such as drag one button in a toolbar to the other toolbar ,i write some sample code ,but find some difficult to finish
    can anyone give me some example code?
    Thanks!

    hi:)
    i have done it ,but there is another problem ,after i finish drag the button and drop it into the toolbar,if my mouse across the dragged button ,it will change the color ,can i setup any mathod to disappear the side_effect?
    thank u
    click open to show the other frame
    and the code is as follows:
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class buttondrag implements DragGestureListener, DragSourceListener,
    DropTargetListener, Transferable{
    static JFrame source = new JFrame("Source Frame");
    static JFrame target = new JFrame("Target Frame");
    static final DataFlavor[] supportedFlavors = { null };
    static {
    try {
         supportedFlavors[0] = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType);
    catch (Exception ex) {
         ex.printStackTrace();
    } Object object; // Transferable methods.
    public Object getTransferData(DataFlavor flavor) {
    if (flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType)) return object;
    else{
    return null;
    public DataFlavor[] getTransferDataFlavors() {
         return supportedFlavors;
    public boolean isDataFlavorSupported(DataFlavor flavor) {
         return flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType);
    } // DragGestureListener method.
    public void dragGestureRecognized(DragGestureEvent ev) {
    ev.startDrag(null, this, this);
    } // DragSourceListener methods.
    public void dragDropEnd(DragSourceDropEvent ev) { }
    public void dragEnter(DragSourceDragEvent ev) { }
    public void dragExit(DragSourceEvent ev) { }
    public void dragOver(DragSourceDragEvent ev) {
         object = ev.getSource();
    public void dropActionChanged(DragSourceDragEvent ev) { } // DropTargetListener methods.
    public void dragEnter(DropTargetDragEvent ev) { }
    public void dragExit(DropTargetEvent ev) { }
    public void dragOver(DropTargetDragEvent ev) { dropTargetDrag(ev); }
    public void dropActionChanged(DropTargetDragEvent ev) { dropTargetDrag(ev); }
    void dropTargetDrag(DropTargetDragEvent ev) { ev.acceptDrag(ev.getDropAction()); }
    public void drop(DropTargetDropEvent ev) {
         ev.acceptDrop(ev.getDropAction());
         try {
         Object target = ev.getSource();
         Object source = ev.getTransferable().getTransferData(supportedFlavors[0]);
         Component component = ((DragSourceContext) source).getComponent();
         Container oldContainer = component.getParent();
         Container container = (Container) ((DropTarget) target).getComponent();
         container.add(component);
         oldContainer.validate();
         oldContainer.repaint();
         container.validate();
         container.repaint();
         catch (Exception ex) {
              ex.printStackTrace();
              ev.dropComplete(true);
    public static void main(String[] arg) {
    JButton button = new JButton("Drag this button");
    JToolBar sbar = new JToolBar();
    JToolBar dbar = new JToolBar();
    JButton open_button = new JButton("Open");
    source.getContentPane().setLayout(null);
    source.setSize(new Dimension(400, 300));
    sbar.add(button);
    sbar.setBounds(new Rectangle(0, 0, 400, 31));
    sbar.add(open_button);
    open_button.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    target.setVisible(true);
    source.getContentPane() .add(sbar);
    target.getContentPane().setLayout(null);
    target.setSize(new Dimension(400, 300));
    target.getContentPane().add(dbar);
    dbar.setBounds(new Rectangle(0, 0, 400, 31));
    dbar.add(new JButton("button1"));
    buttondrag dndListener = new buttondrag();
    DragSource dragSource = new DragSource();
    DropTarget dropTarget1 = new DropTarget(sbar, DnDConstants.ACTION_MOVE, dndListener);
    DropTarget dropTarget2 = new DropTarget(dbar, DnDConstants.ACTION_MOVE, dndListener);
    DragGestureRecognizer dragRecognizer1 = dragSource.createDefaultDragGestureRecognizer(button, DnDConstants.ACTION_MOVE, dndListener);
    source.setBounds(0, 200, 200, 200);
    target.setVisible(false);
    target.setBounds(220, 200, 200, 200);
    source.show();
    }

  • Drag and Drop fails with JDK 7u6 in Linux

    Hi,
    I'm face with a strange bug on JavaFX 2.2 (JDK 7u6, Ubuntu 12); I implemented drag & drop feature of labels in a stage; first time, I open the stage, the drag & drop works well; when I close the stage and reopen it, it fails : I can drag the label but I cannot drop it on the target (the target events are not fired); I can reproduce the bug easily with the class below, you have just to instantiate the class TestDragAndDrop in an application class.
    On window 7, it works well, I cannot reproduce the bug.
    Thank you for your help,
    David
    public class TestDragAndDrop {
        public TestDragAndDrop() {
            Stage stage = new Stage();
            stage.setTitle("Hello Drag And Drop");
            Group root = new Group();
            Scene scene = new Scene(root, 400, 200);
            scene.setFill(Color.LIGHTGREEN);
            final Text source = new Text(50, 100, "DRAG ME");
            source.setScaleX(2.0);
            source.setScaleY(2.0);
            final Text target = new Text(250, 100, "DROP HERE");
            target.setScaleX(2.0);
            target.setScaleY(2.0);
            source.setOnDragDetected(new EventHandler <MouseEvent>() {
                public void handle(MouseEvent event) {
                    /* drag was detected, start drag-and-drop gesture*/
                    System.out.println("onDragDetected");
                    /* allow any transfer mode */
                    Dragboard db = source.startDragAndDrop(TransferMode.ANY);
                    /* put a string on dragboard */
                    ClipboardContent content = new ClipboardContent();
                    content.putString(source.getText());
                    db.setContent(content);
                    event.consume();
            target.setOnDragOver(new EventHandler <DragEvent>() {
                public void handle(DragEvent event) {
                    /* data is dragged over the target */
                    System.out.println("onDragOver");
                    /* accept it only if it is  not dragged from the same node
                     * and if it has a string data */
                    if (event.getGestureSource() != target &&
                            event.getDragboard().hasString()) {
                        /* allow for both copying and moving, whatever user chooses */
                        event.acceptTransferModes(TransferMode.COPY_OR_MOVE);
                    event.consume();
            target.setOnDragEntered(new EventHandler <DragEvent>() {
                public void handle(DragEvent event) {
                    /* the drag-and-drop gesture entered the target */
                    System.out.println("onDragEntered");
                    /* show to the user that it is an actual gesture target */
                    if (event.getGestureSource() != target &&
                            event.getDragboard().hasString()) {
                        target.setFill(Color.GREEN);
                    event.consume();
            target.setOnDragExited(new EventHandler <DragEvent>() {
                public void handle(DragEvent event) {
                    /* mouse moved away, remove the graphical cues */
                    target.setFill(Color.BLACK);
                    event.consume();
            target.setOnDragDropped(new EventHandler <DragEvent>() {
                public void handle(DragEvent event) {
                    /* data dropped */
                    System.out.println("onDragDropped");
                    /* if there is a string data on dragboard, read it and use it */
                    Dragboard db = event.getDragboard();
                    boolean success = false;
                    if (db.hasString()) {
                        target.setText(db.getString());
                        success = true;
                    /* let the source know whether the string was successfully
                     * transferred and used */
                    event.setDropCompleted(success);
                    event.consume();
            source.setOnDragDone(new EventHandler <DragEvent>() {
                public void handle(DragEvent event) {
                    /* the drag-and-drop gesture ended */
                    System.out.println("onDragDone");
                    /* if the data was successfully moved, clear it */
                    if (event.getTransferMode() == TransferMode.MOVE) {
                        source.setText("");
                    event.consume();
            root.getChildren().add(source);
            root.getChildren().add(target);
            stage.setScene(scene);
            stage.show();
        public static void main(String[] args) {
            Application.launch(args);

    DUUUUUUUDE! IT'S WORKING NOW!!!!
    When you originally asked, "What happens if you click on an image and move it to another folder?", I didn't really understand what you were talking about because I almost never have my workspace set up in a way that the folders are showing. I always hide them. So I didn't really understand what you were saying. Just a few minutes ago, I realized that that is what you were asking so I opened up the folder area and tried dragging thumbs into different folders and saw that it does work.
    So then, because of you mentioning that blue line and me know that I did see the blue line on occasion. I went back over into the thumbnails to find out if I always got the blue line or if it was a hit or miss thing. I couldn't believe my eyes when all of the sudden I saw that I no longer was getting that circle with the line through it, and low and behold, the thumbnail dropped right into position like it is supposed to!!!!
    The thing is, I don't know what I've learned from this. I thought, "well, what is different?" The only thing that I can think of is that I now have the folders showing in my workspace so I wondered if that was the secret but I just now hid the folders again like I usually do and the drag and drop into position is STILL WORKING!!!
    All I can figure is that somehow, dragging and dropping a thumbnail into a folder like that for the first time, triggered something so that I can now drag and drop among the thumbnail positions? Not sure. All I know is that for some reason, IT'S WORKING NOW!
    Now, for the second important part, I wonder if I drag and drop everything into the order that I want and then select all of the files and drag them into a new folder, will they stay in that order? I need to go experiment with that.
    If you hadn't kept at it and in turn had me keep trying stuff, it would have never happened because I had pretty much given up.
    Thanks Curt!
    You da man!!!

  • AS3 drag and drop masked bitmaps - not working

    I have a drag and drop project using bitmaps that were masked using fireworks. All bitmaps are PNG (fireworks files) and one object is GIF. All objects were converted into movie clips.
    PROBLEM
    All movie clips from PNG's can be dragged, but they can't be dropped. However, the GIF movie clip responds to both drag and drop.
    ActionScript worked when all movie clips had GIF's.
    Is this problem because the objects were masked or for any other reason?
    Note: Objects were masked because their border is very fussy and cropping them doesn't help with the quality of their image.
    // ACTION SCRIPT
    var startX:Number;
    var startY:Number;
    var counter:Number = 0;
    name_mc1.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc1.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    name_mc2.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc2.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    name_mc3.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc3.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    name_mc4.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc4.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    name_mc5.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc5.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    name_mc6.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc6.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    name_mc7.addEventListener(MouseEvent.MOUSE_DOWN, placeUP);
    name_mc7.addEventListener(MouseEvent.MOUSE_UP, placeDown);
    function placeUP(event:MouseEvent):void {
    event.target.startDrag(true);
    mess_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function placeDown(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){
      mess_txt.text = "Good Job!";
      event.target.removeEventListener(MouseEvent.MOUSE_DOWN, placeUP);
      event.target.removeEventListener(MouseEvent.MOUSE_UP, placeDown);
      event.target.buttonMode = false;
      event.target.x = myTarget.x;
      event.target.y = myTarget.y;
      counter++;
    } else {
      mess_txt.text = "Try Again!";
      event.target.x = startX;
      event.target.y = startY;
    if(counter == 7){
            mess_txt.text = "Congratulations, you're finished!";
    name_mc1.buttonMode = true;
    name_mc2.buttonMode = true;
    name_mc3.buttonMode = true;
    name_mc4.buttonMode = true;
    name_mc5.buttonMode = true;
    name_mc6.buttonMode = true;
    name_mc7.buttonMode = true;
    Thanks for any help!
    German

    Kglad:
    Thanks. Your code worked as well.
    German

  • Enable Drag and Drop from mail to inbox folder

    Using Outlook 2007... Somehow my drag and drop function has been disabled. I can no longer select an email and move it into a mail folder by dragging and dropping. I am able to right click and select "move to" but dragging and dropping is much
    more efficient with the volume of email I'm receiving. This happened to me years ago but the company's IT guy fixed it while I was out of the office. When asked he said I had typed a keyboard code unknowingly that disabled the function. Any ideas on how to
    regain the awesomeness that is drag and drop??

    Hi,
    Some users who encountered the same issue are able to resolve it by pressing ESC key for several times, you may have a try and let me know the result.
    If above doesn't make any change, we may try to right-click the email you want to move and drag it to the target folder, then select Move from the pop-up menu to see if it will work.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Resetting a drag and drop interaction

    Hi
    How do I reset a successfully completed drag and drop
    interaction, so I can redo the drag and drop interaction?
    If I try and move the objects back to their original location
    it just snaps back to the completed location
    Currently I have to move to a different page, then go back to
    the page containing the drag and drop interaction in order to reset
    the interaction
    Thanks in advance
    Jon

    Try this:
    Put all the daggable objects in one map. I'll call it
    "Container."
    Now, in your "Reset" button, put this code:
    repeat with x := 1 to IconNumChildren(@"Container")
    EraseIcon(ChildNumToID(@"Container", x)
    DisplayIcon(ChildNumToID(@"Container", x)
    end repeat
    HTH;
    Amy
    "webacity" <[email protected]> wrote in
    message
    news:e68vbf$cpe$[email protected]..
    > Hi
    > How do I reset a successfully completed drag and drop
    interaction, so I
    > can
    > redo the drag and drop interaction?
    > If I try and move the objects back to their original
    location it just
    > snaps
    > back to the completed location
    > Currently I have to move to a different page, then go
    back to the page
    > containing the drag and drop interaction in order to
    reset the interaction
    > Thanks in advance
    > Jon
    >

  • AS2 drag and drop a masked content from loadMovie clip

    In the main content, when I have a movie clip like this   a1.a2.a3 while  a3 inside a2 and a2 inside a1, and a2 is a masked layer movie clip.
    I can drag and drop the masked content (while a1 stay still) with like this   a1.a2.onPress = function () { startDrag(this); }  and a1.a2.onRelease = function () { stopDrag(); }
    but then what i need is a1 stay in main content, while moved a2.a3 to an external .swf, and use loadMovie to put .swf(a2.a3) back into a1, and I can still drag/drop a2.a3 when a1 stay still.
    I tried differetn methods they all not working.  I've learned that you need to create another MC inside a1 like this a1.a4.a2.a3 ( while a2.a3 from loadMovie clip). it only work if I want to drag a1. but if I want to drag masked content a2.a3 it still doesn't.
    I really need help it's a project for work.

    if I apply drag to a1.a4 , it will still move the whole thing but not just masked content which is in a2.a3
    I pretty much given up on this one at this point..   gonna just throw everything into just one big swf save the struggling time,
    but thank  you for your input.

Maybe you are looking for