se nel tuo swf principale carichi la jpg (piccola) all'interno di un clip, sul clip stesso puoi salvarne il nome
es:
codice:
nomefoto="mare"
nomeclip="box"+ID
mc=eval("box"+ID)
// carichi la miniatura
mc.loadMovie("mini/"+nomefoto+ID+"jpg")
// salvi già il percorso nome
mc.img=nomefoto+ID+".jpg"
// richiami un prototype per la visualizzazione in PHP
mc.onPress=function(){
this.premutophp(this.img,this.img,'')}
}
codice:
MovieClip.prototype.premutophp = function(nome, titolo, feat)
{
this.larg=200 // suppongo le dimensioni
this.alt=200 // suppongo le dimensioni
var w = System.capabilities.screenResolutionX/2;
var h = System.capabilities.screenResolutionY/2;
var x = Math.round(w-(this.larg/2));
var y = Math.round(h-(this.alt/2));
urlo = "foto.php?img="+nome;
getURL("javascript:window.open('"+ urlo + "','image','width=" + this.larg + ",height=" + this.alt + ",screenX=" + x + ",left=" + x + ",screenY=" + y + ",top=" + y + "," + feat + "');void(0);");
};
nel Foto.PHP basta che scrivi
codice:
<?
$image = $_GET['img'];
?>
<html>
<head>
<title><? print $image ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
[img]<? print $image ?>[/img]
</body>
</html>