Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag and Drop with AS Interaction

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello

Using Flash 5, I have a button embedded in a movie clip in scene 1 and when it is dragged onto another movie clip the following script fires. If the dragged object lands on mcNominal the movie doesn't go to the next scene, scene 2 and I have tried nextFrame and many other options. The first scene consists of just one frame and a frame script that calls stop(); but I don't think that is affecting it. Hope somebody can help.

Thanks

on (press) {
startDrag (this, true);
}
on (release) {
stopDrag ();
if (this._dropTarget == "/mcNominal") {
nextScene ();
}
}
 
on (press) {
startDrag (this, true);
}
on (release) {
stopDrag ();
if (this._dropTarget == "/mcNominal") {

// nextScene() won't work here!
// You have to specify _root, and one of the
// followings...

// _root.gotoAndStop (11);
// _root.nextFrame();
// _root.gotoAndStop("label");
_root.play();
}
}
Regards,

new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top