Bonjour!!!
Je me suis mise a flash 8 il y a quelques jours, et j'ai crée un menu que vous pouvez voir ici :
[ Lien ]Mais comme vous pouvez le constater, quand on clique sur les boutons du menu, rien ne se passe!!
Pourtant dans Actionscript j'ai bien mit les fonctions getURL pour chaque bouton :
this.menu_mc.forum_btn.onRelease = function() {
getURL("http://ksarchellala.wifeo.com/forum.php", "_self");
};
this.menu_mc.acceuil_btn.onRelease = function() {
getURL("http://ksarchellala.wifeo.com/index.php", "_self");
};
et ainsi de suite...
et dans ma page PHP (mon hebergeur me donne des pages en php j'espere que ca ne pose pas de probleme?) j'ai mit ce code source que j'ai généré avec flash 8 :
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>menu_ksar2</title>
</head>
<body bgcolor="#ffffff">
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function menu_ksar2_DoFSCommand(command, args) {
var menu_ksar2Obj = isInternetExplorer ? document.all.menu_ksar2 : document.menu_ksar2;
//
// Place your code here.
//
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language=\"VBScript\"\>\n');
document.write('On Error Resume Next\n');
document.write('Sub menu_ksar2_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call menu_ksar2_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>
<!--url's used in the movie-->
<A HREF=http://ksarchellala.wifeo.com/index.php></A>
<A HREF=http://ksarchellala.wifeo.com/histoire.php></A>
<A HREF=http://ksarchellala.wifeo.com/hommes.php></A>
<A HREF=http://ksarchellala.wifeo.com/passe.php></A>
<A HREF=http://ksarchellala.wifeo.com/present.php></A>
<A HREF=http://ksarchellala.wifeo.com/forum.php></A>
<A HREF=http://ksarchellala.wifeo.com/news.php></A>
<A HREF=http://ksarchellala.wifeo.com/service-guestbook.html></A>
<A HREF=http://ksarchellala.wifeo.com/service-contact.html></A>
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="menu_ksar2" width="1094" height="80" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="menu_ksar2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://apu.mabul.org/up/apu/2008/07/25/swf-114211x8xol.swf" quality="high" bgcolor="#ffffff" width="1094" height="80" swLiveConnect=true id="menu_ksar2" name="menu_ksar2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>
Je suis désolée si c'est un peu fouilli mais je suis nouvelle ici.
Je n'ai réussit a faire marche mon menu qu'en remplacant "_self" par "_blank" dans l'actionscript de flash.
Mais j'aimerai que les page s'ouvrent dans la meme fenetre et pas dans une nouvelle....
J'espere que vous pourrez m'aider car depuis hier je commence a craquer!! je ne comprends pas ce qui ne va pas!!
Merci d'avance!!
anelune
