Yeah, I found this out from one of your attachments previously posted on the forum. Just a word of warning though, use the above code with flash 10e or earlier, the other versions of flash 10 seem to have problems which, can be talked about in this thread.