Search code examples
actionscript-3gridflash-cs6

Flash AS3 Grid color transparent?


I need a grid to move stuff around on but the grid itself remains visible. Is there a hexcode or a fade method to still have it present but invisible?

var grid:Sprite = Sprite(addChild(new Sprite()));
grid.graphics.lineStyle(0,0x000000);

Solution

  • var grid:Sprite = new Sprite;
    
    addChild(grid);
    
    // Third argument is alpha.
    grid.graphics.lineStyle(0, 0x000000, 0);