As far as mobile browsers go, Flash is a bit in the dark anyway. Not even the iPhone can play Flash movies, and yes, it can view YouTube clips, but that is not the same! Newer versions of the Opera Mobile browser are pretty good, but I'm not sure if it supports much in the way of scripting.
The following code (not mine, but I forget where I originally found it, possibly php.net) shows how to use the php_browscap.ini file (you can get it from many places, like http://browsers.garykeith.com/stream.asp?PHP_BrowsCapINI) to extract information about the browser:
function php_get_browser($agent = NULL)
{
$agent=$agent?$agent:$_SERVER['HTTP_USER_AGENT'];
$yu=array();
$q_s=array("#\.#","#\*#","#\?#");
$q_r=array("\.",".*",".?");
$brows=parse_ini_file("php_browscap.ini",true);
foreach($brows as $k=>$t)
{
if(fnmatch($k,$agent))
{
$yu['browser_name_pattern']=$k;
$pat=preg_replace($q_s,$q_r,$k);
$yu['browser_name_regex']=strtolower("^$pat$");
foreach($brows as $g=>$r)
{
if($t['Parent']==$g)
{
foreach($brows as $a=>$b)
{
if($r['Parent']==$a)
{
$yu=array_merge($yu,$b,$r,$t);
foreach($yu as $d=>$z)
{
$l=strtolower($d);
$hu[$l]=$z;
}
}
}
}
}
break;
}
}
return $hu;
}
$browserObj = php_get_browser();
$browser = $browserObj['browser'];
$browser_version = $browserObj['version'];
$os = $browserObj['platform'];
$crawler = (strlen($browserObj['crawler']) > 0)?'yes':'no';
$mobile = (strlen($browserObj['ismobiledevice']) > 0)?'yes':'no';