Erreur ActionScript" undefined property z

Fermé
annemarie1 Messages postés 78 Date d'inscription lundi 28 mai 2007 Statut Membre Dernière intervention 21 août 2009 - 15 mai 2009 à 17:53
 akhenathon - 30 juin 2009 à 14:55
Bonjour,
j'ai acheté une animation flash dont les seuls changements été liés aux fichiers xml mais des que je lance la publication j'ai l'erreur suivante

1119: Access of possibly undefined property z through a reference with static type flash.display:DisplayObject.

_current.z = _from.z * q + _to.z * position;


voici la partie du fichier action script

if(propName == "x") {
_current.x = _from.x * q + _to.x * position;
} else if(propName == "y") {
_current.y = _from.y * q + _to.y * position;
} else if(propName == "z") {
_current.z = _from.z * q + _to.z * position;
}else if(propName == "width") {
_current.width = _from.width * q + _to.width * position;
} else if(propName == "height") {
_current.height = _from.height * q + _to.height * position;
} else if(propName == "scaleX") {
_current.scaleX = _from.scaleX * q + _to.scaleX * position;
} else if(propName == "scaleY") {
_current.scaleY = _from.scaleY * q + _to.scaleY * position;
} else if(propName == "scaleZ") {
_current.scaleZ = _from.scaleZ * q + _to.scaleZ * position;
} else if(propName == "alpha") {
_current.alpha = _from.alpha * q + _to.alpha * position;
} else if(propName == "rotation" ) {
_current.rotation = _from.rotation * q + _to.rotation * position;
} else if(propName == "rotationX" ) {
_current.rotationX = _from.rotationX * q + _to.rotationX * position;
} else if(propName == "rotationY" ) {
_current.rotationY = _from.rotationY * q + _to.rotationY * position;
} else if(propName == "rotationZ" ) {
_current.rotationZ = _from.rotationZ * q + _to.rotationZ * position;
} else {
_current[propName] = _from[propName] * q + _to[propName] * position;
}

if(timeline.snapToClosest) _current[propName] = Math.round(_current[propName]);
}
}

un grand merci pour votre aide je n'y connais rien en ActionScript

Anne Marie
A voir également:

1 réponse

La propriété Z est définie dans flash player 10 pour AS 3 - dans le menu Fichier / Paramètres de publication configures le player et la bonne version de flash.
0