Mon animation flash ne se lit pas avec SWFOBJECT

Nixeus Messages postés 192 Date d'inscription jeudi 18 janvier 2007 Statut Membre Dernière intervention 19 octobre 2020 - 19 oct. 2008 à 13:58
cs_bultez Messages postés 13615 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 - 20 oct. 2008 à 10:53
Bonjour à tous,

J'ai voulu intégrer une animation swf dans ma page HTML, en passant par SWFOBJECT afin de ne pas avoir le fameux message d'avertissement sous Internet Explorer !

Ca fais des heures que je cherche et met en oeuvres des exemple, et, rien à faire ! Mon animation ne se lit pas !

Voici mon code:


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans nom</title>
<link href="211.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
<!--
body {
 background-image: url(bg_1200px.jpg);
 background-repeat: repeat;
}
#apDiv1 {
 position:absolute;
 width:200px;
 height:115px;
 z-index:1;
 left: 225px;
 top: 280px;
}
.Style1 {
 color: #333333;
 font-weight: bold;
}
#apDiv2 {
 position:absolute;
 width:850px;
 height:41px;
 z-index:1;
 left: 117px;
 top: 569px;
}
#apDiv3 {
 position:absolute;
 width:282px;
 height:155px;
 z-index:1;
 left: 143px;
 top: 625px;
}
.Style2 {color: #333333; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
#apDiv4 {
 position:absolute;
 width:444px;
 height:35px;
 z-index:1;
 left: 491px;
 top: 633px;
}
#apDiv5 {
 position:absolute;
 width:461px;
 height:157px;
 z-index:1;
 left: 420px;
 top: 116px;
}
.Style3 {font-family: Verdana, Arial, Helvetica, sans-serif}
#apDiv {
 position:absolute;
 width:358px;
 height:179px;
 z-index:1;
 left: 115px;
 top: 624px;
}
#apDiv6 { position:absolute;
 width:461px;
 height:157px;
 z-index:1;
 left: 360px;
 top: 122px;
}
.Style5 {color: #333333}
#apDiv7 { position:absolute;
 width:461px;
 height:157px;
 z-index:1;
 left: 420px;
 top: 116px;
}
-->
</style>
</head>

    
 

   You need to upgrade your Flash Player 
  This is replaced by the Flash content. 
  Place your alternate content here and users without the Flash plugin or with 
  Javascript turned off will see this. Content here allows you to leave out <code>noscript

  tags.
 

   
    <script type ="text/javascript">
  var so = new SWFObject("Animation.swf", "sotester", "300", "300", "9", "#FF6600");
  //so.addVariable("flashVarText", "this is passed in via FlashVars for example only");
  so.write("flashcontent");
 </script>


      


<!-- Commentaire -->
<!--
 

-->
</html>

</code>

Nixeus'

Quand j'ouvre ma page web, j'ai le bandeau de sécurité, et après accepter cet avertissement mon animation ne se lit pas !

Avez vous une idée ? je désepère !!

Merci bcp !

4 réponses

Nixeus Messages postés 192 Date d'inscription jeudi 18 janvier 2007 Statut Membre Dernière intervention 19 octobre 2020
19 oct. 2008 à 14:00
Je tiens à préciser que mon fichier swf mon et fichier swfobject.js sont bien à la racine de mon site !

Nixeus'
0
@karamel Messages postés 1854 Date d'inscription vendredi 9 mai 2008 Statut Modérateur Dernière intervention 8 avril 2024 153
19 oct. 2008 à 17:44
bonjour
je sais pas vraiment si sa peut t'aider mai voici un exemple pour faire fonctionne un swf

 
<object type="application/x-shockwave-flash" data="monfichier.swf" width="300" height="300"">

</object>
0
Nixeus Messages postés 192 Date d'inscription jeudi 18 janvier 2007 Statut Membre Dernière intervention 19 octobre 2020
19 oct. 2008 à 18:31
Salut,

La, c'est en utilisant la méthode classique, qui mettra le message d'avertissement sous Internet Explorer!
Merci quand même de te réponse.

Nixeus'
0
cs_bultez Messages postés 13615 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 30
20 oct. 2008 à 10:53
bonjour,
ce message d'avertissement n'existe plus aujourd'hui il me semble...
( enfin, chez moi... y'a plus, alors qu'il y a eu, un temps, il y a longtemps )
Cordialement          Bul [mon Site] [M'écrire]         
0
Rejoignez-nous