Dynamic clickable mc with php

The PHP script below basically returns variables myImage0, myImage1, and so on. I know how to get the variables (URL’s) into flash, and I know how to load the jpegs associated with each URL. What I don’t know how to do is make each movie clip clickable, and be able to use geturl so that when they are clicked they can go to whatever. I’m not very good with AS, so any help would be appreciated. Thanks in advance.


 <?php 

$userids = array('12345678', '87654321', '98765432'); // all userids go in here 
for($i=0; $i<sizeof($userids); $i++){ 
  displayImage($userids[$i], $i); 
} 

function displayImage($id, $img_count){ 
  $u= "http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=$id"; 

  $t = join("",file("$u")); 

  $r = '/ctl00_Main_ctl00_UserBasicInformation1_hlDefaultImage" .*?"><img src="(.*?)"/'; 

  $t = ereg_replace("
", "", $t); 

  preg_match_all($r, $t, $m); 

  $img=$m[1][0]; 

  echo ("&myImage".$img_count."=".$img);   
}   

?>