Not that ActionScript:)!

So hi. I’m new to this forum. I have a question. I’m a full idiot when it comes to ActionScript (not only but that’s none of ur business :)). I want to make a moving pop-up window. I’ve done part of the job - i made it to appera. But what acctions do i need to asign to it that when it get pressed it’ll will move with the mouse and when u take the mouse off it’ll will stop on it’s place?:asian: Hayyah:). Thank u u wonderful ppl for the answer if there is one.
Byez:smirk:

Don’t look at my typos…my spelling is horrible!:slight_smile:

As a little experiment…

Create a button. Put your button inside a movie clip. Apply these actions to your button…

on (press) {
	startDrag(this);
}
on (release) {
	stopDrag();
}

Note that it is important to put the button inside a movie clip, otherwise your start drag will drag the _root of your movie (dragging EVERYTHING on the main timeline)

If you don’t want it in a movie clip, you can give your clip an instance name (in my example I gave it the instance name “dragger”) and add these actions…

on (press) {
	startDrag(_root.dragger);
}
on (release) {
	stopDrag();
}

you can apply the same code to a movie clip in MX, no need for the embedded button anymore.

Just fyi.

'DOH that is too true :-\

I’ll try that out. Hope it’ll work. Thanxies.