In PHP you can just do...
Code:
foreach ( $_COOKIE as $key => $value ) {
//.....
}
In PHP. I don't know that ActionScript has access to cookies, although you might consider putting the cookies in the calling of the Flash... instead of access myflash.swf, access myflash.swf?cookie1=data1&cookie2=data2 etc by creating a URL encoded string with PHP (or Perl or ASP.NET or whatever), that way you could probably just access all those variables by looping through the variables in the _root object, although I'm not sure how the specific could would look for that.