PDA

View Full Version : startDrag on a loaded swf?


Donoda
12-11-2002, 03:32 PM
my first post and question....
After loading on swf in a level, is it possible to use the action startdrag on it?
I have use loadMovie and location: target
Flash 5

So…..
1- is it possible?
2- and how ?

My native language is Portuguese so my English is not good
thanks,
;)
Donoda

Abelius
12-11-2002, 04:13 PM
right-click on the movie you want to make "draggable" and type this in the ActionScript panel:


onClipEvent (mouseDown) {
this.startDrag(false);
}
onClipEvent (mouseUp) {
this.stopDrag();
}


:)

Donoda
12-11-2002, 10:38 PM
Thanks,
it works but only if I remove another mc on level0

mc level0
--------------------------------------------
onClipEvent (enterFrame)
if ( blabla ) {
startDrag (….
---------------------------------------------


It seem to me that one startDrag on level0 and another on level1 don’t work…
:confused:

Donoda