vendredi 9 décembre 2016

root actionscript 3.0 for flash

When i test my movie, there is a report problem like this "error #1006 clear is not function.

The script that I use is this

stage.addEventListener(MouseEvent.MOUSE_MOVE, Setting_awal);  
function Setting_awal(e:MouseEvent):void

{
    Xo = bola.x;
    Yo = bola.y;
    txt_Dx.text = "ΔX = "+(target.x-bola.x)/100+" m";
    txt_Dy.text = "ΔY = "+(bola.y-target.y)/100+" m";
    karet1.x = Xo-10;
    karet1.y = Yo;
    karet2.x = Xo+10;
    karet2.y = Yo;
    MovieClip(root).karet1.clear();
    MovieClip(root).karet1.lineStyle(15, 0x003300, 100);
    MovieClip(root).karet1.moveTo(0, 0);
    MovieClip(root).karet1.lineTo(-2, 0);
    MovieClip(root).karet2.clear();
    MovieClip(root).karet2.lineStyle(15, 0x005500, 100);
    MovieClip(root).karet2.moveTo(0, 0);
    MovieClip(root).karet2.lineTo(-15, 0);

    mc_var.x = 100000;

}

Can you show me the wrong point of mycode, please.

Aucun commentaire:

Enregistrer un commentaire