dimanche 11 décembre 2016

TypeError: Error #1010: A term is undefined and has no properties.

When I test my project, the error report was shown. TypeError: Error #1010: A term is undefined and has no properties. at Game_Gerak_Parabola_Scene1_fla::MainTimeline/Setting_awal()[Game_Gerak_Parabola_Scene1_fla.MainTimeline::frame1:77]

here is the code,

function Setting_awal()

{

    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.graphic.clear();
    MovieClip(root).karet1.graphic.lineStyle(15, 0x003300, 100);
    MovieClip(root).karet1.graphic.moveTo(0, 0);
    MovieClip(root).karet1.graphic.lineTo(-2, 0);
    MovieClip(root).karet2.graphic.clear();
    MovieClip(root).karet2.graphic.lineStyle(15, 0x005500, 100);
    MovieClip(root).karet2.graphic.moveTo(0, 0);
    MovieClip(root).karet2.graphic.lineTo(-15, 0);
    MovieClip(root).garis1.graphic.clear();
    MovieClip(root).garis2.graphic.clear();
    MovieClip(root).lingkaran.graphic.clear();
    mc_var.x = 100000;

}

Aucun commentaire:

Enregistrer un commentaire