all groups > flash actionscript > may 2005 >
You're in the

flash actionscript

group:

script stops working when movie is loaded in level


script stops working when movie is loaded in level Julila
5/31/2005 8:21:50 PM
flash actionscript:
Hi there!

I'm using the following code to make a very simple casetteplayer. You can take
hold of the tapes and drop it on the player and then the sound will start. It
works fine when I test the movie. But when I load it into the main movie the
drop traget doesn't work (the drag works fine) Here's the code on each tape:

on(press) {
startDrag(this,false);
}

on(release) {
stopDrag();
if (this._droptarget == "/maskine_mc") {
gotoAndPlay(2);
}
else{

}
}

WHAT AM I MISSING?????
Re: script stops working when movie is loaded in level Julila
5/31/2005 8:24:12 PM
just in case in the main movie I load it by using this:

Re: script stops working when movie is loaded in level .:}x-=V!P=-x{:.
5/31/2005 8:28:27 PM
I haven't tried this but try this - use eval() to convert it from slash syntax
to a dot syntax reference.

on(press) {
startDrag(this,false);
}

on(release) {
stopDrag();
if (eval(this._droptarget) == maskine_mc) {
gotoAndPlay(2);
} else {
}
}
AddThis Social Bookmark Button