Thanks again for the reply but I am a little new to as3 and I don't quite understand. Maybe if you can give me an example using the code I showed in the last post.

Thanks.