Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / May 2005



Tip: Looking for answers? Try searching our database.

script stops working when movie is loaded in level

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julila - 31 May 2005 21:21 GMT
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?????
Julila - 31 May 2005 21:24 GMT
just in case in the main movie I load it by using this:

loadMovieNum("interviews.swf",50);
.:}x-=V!P=-x{:. - 31 May 2005 21:28 GMT
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 {
}
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.