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 MikeeOK 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 Movie Clips in a particular sequence

Status
Not open for further replies.

brebsy

Technical User
Dec 7, 2005
1
GB
I need to create a 'match the component parts in the correct order' Flash movie, to be created using movie clips which drag and drop to their relevant outlines and which snap back if placed incorrectly.

Can someone provide me with the correct actionscript code to specify a correct sequence to the movie clips? i.e. if you try to insert portion B before portion A it snaps back.
I've been told I can do this by assigning a number to each movie clip and setting up a counter.
However, I'm fairly new to actionscript and this is beyond me!
 
I don't know if this helps or not.


b_dtss.onPress = function() {
this.startDrag();
};
b_dtss.onRelease = function() {
this.stopDrag();
if (this._droptarget == "/d_dtss") {
this._x = 251.5;
this._y = 219.5;
} else {
this._x = 65;
this._y = 62;

}
};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top