Bonjour, je viens de mettre des onenterframe un peu partout dans mes annimations flash à la place de mes frame1 frame2 ... pour que cela soit plus propre, du coup mon code est bien plus simple,j'avais fait mais test sous firefox le résultat est niquel, mais ous ie c'est la catastrophe, l'animation tourne dans le vide des que je fait un getURL et cela au moins pendant 10s je n'ai rien changé à mes animations à part l'onenterframe
code de l'onenterframe
<code>
function onEnterFrame()
{
var lv1 = new LoadVars();
lv1.onLoad = function(success)
{
if (lv1.goappel=="1" && lv1.appel=="0")
{
mcLoader.loadClip("./020591swf/decroche.swf", 0);
delete this.onEnterFrame;
}
}
lv1.load("scripttestappel.php");
//actions des boutons
if (deco ==1)
{
deco =2;
getURL("deconexion.php");
delete this.onEnterFrame
}
if (admin ==1)
{
admin=2;
gotoAndStop("admin");
delete this.onEnterFrame
getURL("admin.php");
}
if (album ==1)
{
album=2;
gotoAndStop("album");
delete this.onEnterFrame
getURL("delphoto.php");
}
if (appel ==1)
{
appel=2;
gotoAndStop("appel");
delete this.onEnterFrame
getURL("appel.php");
}
}
</code>
code de l'intégration html
<code>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>accueil administrateur</title>
<style type="text/css">
<!--
body,td,th {
color: #FFFFFF;
font-size: 1px;
}
body {
background-color: <?php echo($_SESSION['color']);?>;
}
-->
</style>
</head>
<script src="Flash.js" type="text/javascript"></script>
<body onLoad="AxRep();" >
<div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:1">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="<?php echo($_SESSION['w']);?>"
height="<?php echo($_SESSION['d']);?>"
id="accueil"
align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="020591swf/accueil.swf" />
<param name="bgcolor" value="<?php echo($_SESSION['color']);?>" />
<embed src="020591swf/accueil.swf"
quality="high"
bgcolor="<?php echo($_SESSION['color']);?>"
width="<?php echo($_SESSION['w']);?>"
height="<?php echo($_SESSION['d']);?>"
name="accueil"
align="middle"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</body>
</html>
</code>