# Dragable window, swapdepth, and captions?

**URL:** <https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286>\
**Category:** flash\
**Created:** [October 3, 2002, 1:12pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286 "2002-10-03T13:12:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dexa\_007](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dexa\_007](https://forum.kirupa.com/u/dexa_007)\
**Post date:** [October 3, 2002, 1:12pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/1 "2002-10-03T13:12:38Z")

</div>

Kirupa,

I’ve been having a blast using each of the tutorials regarding “dragable windows”, “SwapDepth”, and “Hover Captions.” I’m working to combine the effects, similar to mirroring the material found at The Remedi Project. I’ve got the captions to work with the dragable window — until I drag the window to another location. (The caption doesn’t follow.) Any advice? I haven’t applied any swap depth yet. Will this be a problem?

Thanks a bunch!

Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 3, 2002, 2:14pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/2 "2002-10-03T14:14:17Z")

</div>

It should work. Can you post your code?

pom 😏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 3, 2002, 3:08pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/3 "2002-10-03T15:08:27Z")

</div>

Pom,

I’m at school right now – and the code’s at home. I’ll let ya know when I have it uploaded and available.

THANKS!!!

Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2002, 12:32am UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/4 "2002-10-04T00:32:31Z")

</div>

Pom,

I left you a PM with the address to my code. Thanks!

Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2002, 12:05pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/5 "2002-10-04T12:05:40Z")

</div>

:-\ I’ll do it this time, but please don’t send me PM with questions. I check the forums regularly anyway.

pom :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 4, 2002, 11:21pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/6 "2002-10-04T23:21:41Z")

</div>

The problem is you have 2 startDrag at the same time. remove the startDrag(\_root.caption, true); line and replace the actions inside the caption:

```auto
onClipEvent (enterFrame) {
	// this replaces the startDrag
	this._x=_root._xmouse;
	this._y=_root._ymouse;

	if (_root.x==1) {
		this._alpha = 50;
	} else {
		this._alpha = 0;
	}
}

```

pom :cyclops:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 5:31am UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/7 "2002-10-05T05:31:24Z")

</div>

Pom,

Thanks for the help. I’m having a little trouble though. When I replace the Hover Action Frame’s code with what you gave me, I get the following Output error message:

Scene=Scene 1, Layer=Hover Actions, Frame=1: Line 1: Clip events are permitted only for movie clip instances  
onClipEvent (enterFrame) {

Am I placing the code in the wrong place?

I appreciate your patience, Jeff :cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 8:36am UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/8 "2002-10-05T08:36:39Z")

</div>

You have to put that code directly on the caption thing. A part of it is already there, by the way.

Cheers.

pom :cyclops:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 1:59pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/9 "2002-10-05T13:59:43Z")

</div>

It works! _doing a little dance now_ Thanks!!!

Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 4:33pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/10 "2002-10-05T16:33:23Z")

</div>

:cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 9:33pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/11 "2002-10-05T21:33:22Z")

</div>

Pom,

I’m trying to add a clickable link-button to the draggable movie. The button toggles correctly between states from within the draggable movie’s timeline … but when I preview the entire movie, the button just sits there, much like an inanimate object.

Any tips on getting the button to work like a button???:-\

Thanks, Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 11:11pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/12 "2002-10-05T23:11:26Z")

</div>

?!?!? Tell me more.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 5, 2002, 11:36pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/13 "2002-10-05T23:36:25Z")

</div>

I just uploaded a new edition of my code.

[http://www.mitchmalloy.com/MM\_drag.fla](http://www.mitchmalloy.com/MM_drag.fla)

My movie drags well … but now I need to establish a button I can click on to take me to the “merch1.htm” page. When I publish the movie, the button doesn’t react. So, how do I get the button to respond – and to respond independent of any clicking outside of the button, but still in the movie clip (to drag). My link-button is in the upper-right corner of the draggable movie.

The REMEDI PROJECTS have those two buttons in the upper-right corner, performing similar to what I’d like.

Thanks! Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 3:52am UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/14 "2002-10-07T03:52:56Z")

</div>

Any luck ironing out my “gobbly gook” yet? :\*(

:cowboy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 10:39am UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/15 "2002-10-07T10:39:12Z")

</div>

Your button is under another button. You’ll have to put it on top if you want it to work. But be careful that it still drags with the rest…😏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 7, 2002, 4:16pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/16 "2002-10-07T16:16:59Z")

</div>

Gotcha.

And now for the inevitable question … _drum roll_ …

HOW?

I’m new. :hat:

Thanks! Jeff

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 8, 2002, 3:32pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/17 "2002-10-08T15:32:36Z")

</div>

Pom,

I’m in FLASH quicksand – sure could use a hand. :elderly:

J

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 8, 2002, 6:14pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/18 "2002-10-08T18:14:03Z")

</div>

OK, corrected. It’s a bit complicated to explain, and I can’t attach it. PM me your mail, man.

pom :goatee:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 9, 2002, 6:21pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/19 "2002-10-09T18:21:46Z")

</div>

Thanks!

Next … and hopefully final question … how do I add the URL to the button contained within that movie clip. It’s refusing any addressing for me. I sent you a PM with the URL.

j

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 9, 2002, 6:34pm UTC](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286/20 "2002-10-09T18:34:40Z")

</div>

Oh no… Not a problem again… 😛

[Next page](https://forum.kirupa.com/t/dragable-window-swapdepth-and-captions/6286.md?page=2)
