bonjour,
voila j ai une petit probleme mon elese tourne en boucle pour se terminer a 5
comme si il ne recevais pas la variable btsend et donc se termine a 5
je recupere la variable depuis l url et depuis l animation flash
code: dans flash
var btsend = new LoadVars();
if(btsend=="1")
{
_root.item1.gotoAndPlay("s1");
}
else if(btsend=="2")
{
_root.item2.gotoAndPlay("s1");
}
else if (btsend=="3"){
_root.item3.gotoAndPlay("s1");
}
else if (btsend=="4"){
_root.item4.gotoAndPlay("s1");
}
else {(btsend=="5")
_root.item5.gotoAndPlay("s1");
}
function pagecontact() {
getURL("index.php?page=contact&lang="+lang+"&btsend=5","_self")
}
function pageindex() {
getURL("index.php?page=index&lang="+lang+"&btsend=1","_self")
}
envoi depuis php:
#####################################################
<object type="application/x-shockwave-flash" data="flash/up.swf?<? echo "bt_1=acceuil&bt_2=magasin&bt_31=Shop-online&bt_4=Forum&bt_5=contact&lang=".$lang."&btsend=".$btsend."&"; ?>" width="766" height="100">
<param name="quality" value="high">
<param name="wmode" value="transparent" />
<param name="movie"
value="flash/up.swf?<? echo "bt_1=acceuil&bt_2=magasin&bt_31=Shop-online&bt_4=Forum&bt_5=contact&lang=".$lang."&btsend=".$btsend."&"; ?>">
<p>Il vous manque le plugin flash pour visionner l'animation.</p>
</object>
si qq a une solution
la lange je sais bien la recupere sans probleme
mais il n y aurais pas une autre methode plus simple a la place des IF
genre :
_root.item1+variabledepuisphp+.gotoAndPlay("s1");
mais ca ca marche pas et j ai pas trouver de doc la desus