-
Dragging and then making something Undraggable?
Having a bit of a problem here. I have MovieClips side by side. With drop targets underneath.
If you DRAG from right to left you jump to a scene.
If you DRAG left to right you jump to a different scene.
This all works fine, sort of.
When you jump to the scene i want the movieclips t disappear and not be draggable but they are still visible even though there are blank keyframes on their layers BEFORE the scene that you end up on.
Here is the code I am working with:
on (press) {
startDrag(this);
this.swapDepths(100);
}
on (release) {
stopDrag();
if (this._droptarget == "/target2") {
setProperty(this, _x, 414.9);
setProperty(this, _y, 172.5);
_root.gotoAndStop(10);
} else {
setProperty(this, _x, 25.5);
setProperty(this, _y, 171.7);
this.swapDepths(0);
}
}
-
text correction
This was supposed to say:
When you jump to the scene i want the movieclips to disappear and not be draggable but they are still visible even though there are blank keyframes on their layers BEFORE the FRAME that you end up on.
I originally posted scene.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|