Bonjour à tous !
J'ai créé un fichier Flash pour la présentation de quelques produits. Il se lit tranquillement sous Mozilla et l'ensemble des navigateurs hormis.... IE !!!
Et la c'est le drame... il me pond une erreur
'swfobject' est indéfini...?
Savez vous d'où ca peut venir ?
Voici le code du fichier
var rotX:Number = 550;
var Centre:Number = Stage.height/1;
var vitesse:Number = 0.03;
var sceneW:Number =Stage.width;
var sceneH:Number = Stage.height;
var nbI:Number=10;
var angle:Number=0;
var i:Number;
var marg:Number=03;
for(i=0;i<nbI;i++)
{
this.attachMovie('Icone'+i,'Ic'+i,i);
this['Ic'+i].onRelease=function(){
if (this == _level0.Ic1)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic2)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic3)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic4)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic5)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic6)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic7)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic8)getURL("http://www.XXX.com/form.php", "_self");
if (this == _level0.Ic9)getURL("http://www.XXX.com/form.php", "_self");
}
this['Ic'+i]._y = sceneH /2;
}
onEnterFrame=function(){
if (angle > (2*Math.PI))
{
angle = 0;
}else{
for(i=0; i<nbI; i++){
this['Ic'+i]._x=rotX*Math.cos(angle+2*Math.PI*i/nbI)+sceneW/2;
this['Ic'+i]._y=rotY*Math.sin(angle+2*Math.PI*i/nbI)+sceneH/2;
this['Ic'+i]._xscale=60/2*(Math.sin(angle+2*Math.PI*i/nbI)+ 1)+50;
this['Ic'+i]._yscale=this['Ic'+i]._xscale;
this['Ic'+i].swapDepths(rotX*Math.sin(angle+2*Math.PI*i/nbI));
}
if(this._xmouse < (sceneW/2+rotX+500) && this._xmouse > (sceneW/2-rotX-550))
{
if(this._ymouse < sceneH && this._ymouse > 0)
{
angle += .003;;
}
}
if(_xmouse>Stage.width-marg || _xmouse<marg || _ymouse>Stage.height-marg || _ymouse<marg){vitesse= 0.03;}else{vitesse=0.03};
}
}