User Tag List

Results 1 to 5 of 5

Thread: drag and drop problem

  1. #1
    No Products Registered

    Join Date
    Jul 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    drag and drop problem

    Okay, so I have made an active object to be drag-able and drop-able. In my code I made it that everytime the user hold the mouse button the active object will follow the mouse and dropped when the user releases the button.

    Now I am trying to change it so that if I click it once, the object will follow the mouse cursor and if I click it again, the active object will drop. I use left mouse button to pick up the object and I want to use the same left mouse button to drop it but it doesn't work. If I use the right mouse button in other hand, it will work. Can anyone help?

    This is what I use in my event editor

    +User clicks with left button on Active Object A
    -Set Alterable Value A to X position of Active Object A - X position of the mouse
    -Set Alterable Value B to Y position of Active Object A - Y position of the mouse
    -Set internal Flag on

    +Internal Flag on
    -Set X position to alterable value A of Active Object A + X position of the mouse
    -Set Y position to alterable value B of Active Object A + Y position of the mouse

    +User clicks with left button on Active Object A
    -Set internal flag off

    The code above doesn't work unless I change the last statement to User clicks with right button on Active Object A

    Thanks.

  2. #2
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: drag and drop problem

    Change it to:
    +User clicks with left button on Active Object A
    -Set Alterable Value A to X position of Active Object A - X position of the mouse
    -Set Alterable Value B to Y position of Active Object A - Y position of the mouse
    -Toggle Flag

    +Internal Flag on
    -Set X position to alterable value A of Active Object A + X position of the mouse
    -Set Y position to alterable value B of Active Object A + Y position of the mouse

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    2,289
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: drag and drop problem

    Both Event one and Event three are true at the same time.

    Toggle the flag instead.

    User clicks with left button on AO A --> Toggle flag 0 of AO A.

    Flag on --> Set x, y to mouse.

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    2,289
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: drag and drop problem

    Oops ... simultaneous post!

  5. #5
    No Products Registered

    Join Date
    Jul 2008
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: drag and drop problem

    thank you. It works great now.

Similar Threads

  1. Drag and drop movement- force drop action
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th April 2013, 09:53 PM
  2. Drag & drop without drag & drop object.
    By soloman in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 20th August 2011, 02:45 AM
  3. Drag and Drop
    By Patrice in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 18th May 2011, 02:18 PM
  4. Drag and drop out of MMF app?
    By spyfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 19th July 2006, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •