Create Buttons. Please, could someone help me? Thank You

Hello,

I have a Flash Movie with 11 movies:
R1, R2, …, R10 (Each one is a square); and MARK

On Flash vars I receive a variable as follows:
IDsLIST=“1,4,5”.

I need, based IDsLIST values, to do some changes.
So for each movie R which ID is included in IDsLIST do the following:

  1. Change the square color;
  2. Place a copy of MARK over the square and center it;
  3. Make the Square a button with:
    a) URL: http://www.mydomain.com/region/id
    b) When the mouse is over the square change the color of the square.

Could someone, please, help me with this?

Thank You,
Miguel