I’m working on a really simple puzzle. Make the Dutch flag including the orange on top. So Orange, Red, White, Blue. I’ve added the two fla’s with two problems.
In the first fla everything is working great, until the last piece. If you solve the puzzle, the movie goes to frame 2. He does that, but you see the last piece. This while the piece isn’t in frame 2. I really think this has something to do with the swapDepths code. Without it, it doesn’t give this problem, but then the pieces don’t go to the front when you click on it.
The second fla is even worse. I made a custom mouse pointer which works fine. I can pick up pieces without any trouble. But when I drag it to its slot, it only snaps back to it’s original position. They don’t snap to their target slots. I suspect the mouse, because if I remove the mouse from the movie, it works fine (apart from the problem in the first fla).
The mouse code is:
muis.[COLOR=#004993]onEnterFrame[/COLOR] = [COLOR=#0033ff]**function**[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#004993]Mouse[/COLOR].[COLOR=#004993]hide[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#004993]_root[/COLOR].[COLOR=#000000]muis[/COLOR].[COLOR=#004993]_x[/COLOR] = [COLOR=#004993]_root[/COLOR].[COLOR=#004993]_xmouse[/COLOR];
[COLOR=#004993]_root[/COLOR].[COLOR=#000000]muis[/COLOR].[COLOR=#004993]_y[/COLOR] = [COLOR=#004993]_root[/COLOR].[COLOR=#004993]_ymouse[/COLOR];
[COLOR=#004993]updateAfterEvent[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
But I don’t understand what’s the problem there. I suspect the _xmouse and _ymouse, but again, I don’t know what the problem exactly is.
Somebody know what’s wrong with both problems? It must be something simple and small, but I just can’t see it. I hope you guys can help me.