PDA

View Full Version : StartDrag and Hover Captions



JimmyJimmy
December 17th, 2003, 03:34 PM
Hi all!
I have (hopefully) attached the file I am working on.
I have a "hot" area where the user can drag around this newspaper looking thing. Also, there are hover captions that say, "Drag" and a caption that says "Close" over what will be the close button.
Everything works fine.
Until....
Click to drag the paper thingy, then release it. Move your mouse off the paper, then back onto the hot area. The captions snap right to the center of the hot area. I have run out of ideas. I don't know what I am missing here that causes this.
Thank you so much for any time and help.

jimhere
December 17th, 2003, 09:17 PM
I've had pretty good luck taking this Hover Caption tutorial apart:

http://www.kirupa.com/developer/mx/captions.htm

JimmyJimmy
December 18th, 2003, 10:15 AM
Hi jimhere,
Thanks for your help, but that is where I got the hover captions from. :)
That's why I thought maybe by posting here, there might be someone who has an incite on what might be going on. I attached the .swf file just so people can see what is going on. Maybe there is no way around this?
Thanks again!

scotty
December 18th, 2003, 11:31 AM
Better post your .fla (I see what you mean, but need your fla to see where things go wrong)

scotty(-:

JimmyJimmy
December 18th, 2003, 09:52 PM
Hi Scotty,
*whew* I am glad that you see what I am talking about. I didn't know if I had explained well enough. Here is the fla file. Its kinda "big" hope that isn't a problem.
Thank you so much for your time!

http://www.pyroblue.com/UPLOAD/introduction.zip

scotty
December 19th, 2003, 06:43 AM
[QUOTE]Description

Method; lets the user drag the specified movie clip. The movie remains draggable until explicitly stopped by calling the stopDrag method, or until another movie clip is made draggable. Only one movie clip is draggable at a time.

scotty
December 19th, 2003, 06:45 AM
It was because once you started dragging the paper, your hoover-drag stopped, so after you finish your paper-drag, you've to start dragging your hoover again
in your btn handle change the as in this:on (release) {
//stopDrag();
//_root.x = 0;
//_root.mcIntroductions.mcCaption.words = " ";
startDrag(_root.mcIntroductions.mcCaption, true);
}
You don't need the first three lines:
by starting a drag, the first one stops and line 2/3 you have in your on press actions;)

scotty(-:

[edit] check your reference(shift F1) for startDrag

JimmyJimmy
December 22nd, 2003, 11:09 AM
Hi Scotty!
Thank you so much for your time and help! :) :)

scotty
December 22nd, 2003, 11:21 AM
no problem:?)