samedi 3 décembre 2016

ReferenceError: Error #1069: Property box_mc_0

This is just an example of concept. I'm trying to hide movie clips from the stage using loop. I'm getting following error when I publish it. Any help would be appreciated. I have also put picture of the example.

Code:

var q;

 for (q = 0; q <= 3; q++)
{
   stage["box_mc_" + q].visible = false;
}

Error message:

ReferenceError: Error #1069: Property box_mc_0 not found on flash.display.Stage and there is no default value. at test_fla::MainTimeline/frame1()

Code example

Aucun commentaire:

Enregistrer un commentaire