I’m in a bit of a pickle and was wondering if anyone out there could help.
function RotateDisplayOrDrag(whichPiece) {
if (Key.isDown(18)) {
_root[whichPiece]._rotation += 22.5;
}
if (Key.isDown(17)) {
_root[whichPiece]._rotation -= 22.5;
}
if (Key.isDown(68)) {
_root[whichPiece].duplicateMovieClip(“chair” + x, 5);
} else {
startDrag(_root[whichPiece]);
}
}
For all those who recognize parts of this script, its robbed from mx’s puzzle tutorial.
I’m taking parts of it to make an office furniture planning tool.
I just need the movieClip to be duplicated when I hold the letter ‘d’ (Ascii = 68). When I use the above script, it duplicates once, but removes the last duplicate when I use again.
Any help will be appreciated, but if not, hey, good luck with your flash developing, cos it’s seriously worthwhile. What a programme!!!
hey man sorry about the delayed thanks, I’m having to spread myself a bit thin here. Now I have Php and MySQL to contend with…
Enough of me, I really appreciate the time it took to read and reply to my problem. Now that I look at your reply, I realise just how simple it can be if you just sit back and think about it.