Dragging Movie-clips: maybe like dialog boxes?

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default Dragging Movie-clips: maybe like dialog boxes?

    Well, I'm working on my disclaimer dialog and some other dialogs in my site
    ([url]http://www.geocities.com/matt_atknsn[/url]).
    I made a disclaimer dialog and want it to be draggable only when:
    onCLipevent(mousedown) and the click is inside this movie clip and when it is
    visible.

    Does this mean I have to make a long script to check all the needed
    mouseevents?

    Thanks!

    matt_atknsn Guest

  2. Similar Questions and Discussions

    1. Problem with dialog boxes
      Hello, I am trying to create a dialog box, that has a txt box on it, and when you click OK i want the values from the textbox to be inserted into...
    2. RollOver/Out with movie clips and dynamic text boxes
      Hi, I have some text in a dynamic text window. When I roll over some nearby movie clips I would like the text to change. I thought I could...
    3. Loading Movie Clips into other movie Clips
      I know I have done this before (or at least something like unto it) but can't find a clear explanation of how to or if it can be done: I have an...
    4. Arrays, duplicating movie clips and dragging them.
      Hi, I'm Chris.. I am new to flash as well, and have the same issue: wanting to drag duplicate images around a canvas. I downloaded you source...
    5. Dragging multiple movie clips simultaneously
      Here's a problem that's probably been asked many times but in all of my searching I haven't found a good workaround for it. Maybe someone can think...
  3. #2

    Default Re: Dragging Movie-clips: maybe like dialog boxes?

    If it is like a dialog box, you can only drag from the bar at the top.

    One suggestion, inside your disclaimer clip either put a bar at the top and
    make it a button if you want to be able to drag from anywhere on the clip, make
    a rectangle the full size of the clip, turn it into a button and edit the
    button so that all frames are empty except the hit frame (it contains the
    rectangle).

    Whichever one you use, the button resides in the MC timeline so you can give
    it the script:

    on(press) {
    startDrag(this);
    }

    on(release) {
    stopDrag();
    }

    rlc5611 Guest

  4. #3

    Default Re: Dragging Movie-clips: maybe like dialog boxes?

    Thanks bro!

    Now, instead of the button, I've made a movieclip inside the dialog box
    instance to correspond with the dragging with this script:

    onClipEvent(mousedown)
    {
    if Hittest(<all the required oparams here>, false) startDrag(_parent)}
    }

    Now the only problem now is to prevent all the other clickable stuff under
    this dialog box to be disabled...

    I guess more hittest checking

    Cheers and thanks very much!

    matt_atknsn Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139