Yes this can be done (if I'm understanding you correctly). Why not give it a try and see what you get? Or if you've already done this, what is not working for you? What is wrong with your code?