PDA

View Full Version : Dragging movieclips on the stage


snilbert
08-04-2003, 06:34 PM
Hello friends,

I have this problem. I've randomized an array of movieclips (basically letter tiles a la scrabble), then when you push a button, you get the first 7 letters in the randomized array, followed by the next 7 when you push the button again, etc, etc.

What I want to be able to do is drag and drop the pieces once they appear on the stage.

I've lifted some code from another drag'n'drop program, but it doesn't work, and I don't understand why as I'm a novice at this.

I've uploaded the flash (5) file. I'd greatly appreciate any advice you could give me.

Even if you don't look at the file, how do you make use of movieclips placed on the stage from a button in a separate piece of script? I don't know how the drag'n'drop code can refer to the same movieclips placed on the stage from separate code for a button.

Thanks in anticipation...

snilbert
08-04-2003, 09:11 PM
One thing I forgot to mention, I use a mac, so let me know if you have trouble downloading the zipped flash file, as I assume 99% of you are using PCs.