Sorry it’s so hard for me to explain myself clearly because I’m fairly new at the flash lingo.
:-\ Ok let’s see, I have many objects that are draggable and have to be dropped to one of two boxes.
If they are dropped to the incorrect box they snap back; if the correct box they stay. I need a specific action to take place when ALL of them are dropped correctly. Did that help? Hope so.
place this code on the draggable objects:
[AS]
on (release) {
stopDrag();
if (eval(this._droptarget) == _root.target1) {
this._x = 213;
this._y = 529;
_root.draggedOk++;
} else {
this._x = 579;
this._y = 287;
}
}
[/AS]
create a movieclip (blank if you will) and place this code in it:
[AS]
onClipEvent (load) {
_root.draggedOk=0;
}
onClipEvent (enterFrame) {
if (_root.draggedOk>=4){
doThis;
}
}
[/AS]
Ok it’s sort of working.
The action I want to happen is for a button to blink so if i set an action to go to a certain frame it will loop until it’s clicked. (and it’s working everywhere else) I just have the action at the end of each movie clip.
It’s going to the frame and stopping instead of playing. So the button turns red but stays that way. Here’s the script on the blank movie clip