Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot see the content inside of a MovieClip
    primarykey
    data
    text
    <p>I don't know why this is happening. What I want to do is easy: Create a container and then add a grid of squares in order to build a trivia:</p> <pre><code>private var square:MovieClip = new MovieClip(); square.width = 308; square.height = 400; square.x = 48; square.y = 223; square.name = "square"; addChild(square); private function generarGrilla():void { var cant = 36; var col:Number = 5; var yCounter:Number = -4; var xCounter:Number = 4; var sY:Number = 10; var sX:Number = 10; for (var j = 1; j &amp;lt; cant; j++) { var caja:clip = new clip(); caja.name = "opcion" + j; caja.x = 20 + caja.width * j * 1.2; caja.y = 20 + caja.height * j * 1.2;; // caja.x = (sX + caja.width) * xCounter ; // caja.y = (sY + caja.height) * yCounter; caja.addEventListener(MouseEvent.CLICK, seleccionarOpcion); caja.buttonMode = true; caja.mouseChildren = false; var contentText = new TextField(); var formato = new TextFormat(); formato.size = 14; contentText.defaultTextFormat = formato; contentText.width = 36; contentText.height = 34; contentText.x = -10; contentText.y = -10; for(var u:uint = 0; u &lt; cant; u++){ contentText.text = "" + u; } square.addChild(caja); caja.addChild(contentText); } var barra:score = new score(); barra.x = 80; barra.y = -200; barra.puntajeTXT.text = "hola"; addChild(barra); barra.botonSalir.buttonMode = true; barra.botonSalir.addEventListener(MouseEvent.CLICK, salirJuego); } </code></pre> <p>The square movieclip is placed on the stage without any problem, but I cannot see the grid...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload