Add symbol to stage based on symbols string
Hi,
I'm string to add a symbol to the stage based on a string value in an existing Symbol which is on the stage. I get no error when the game runs, but the symbol just doesn't spawn onto the stage. I have no idea why
This is the code:
//Variables used
var score:int = 0
var startX:int = stage.stageWidth = 920
var startY:int = stage.stageWidth = 475
//Check to see if 'score' is 350 in ScoreBoardDisplay.txtScore.text
if(ScoreBoardDisplay.txtScore.text == String(350))
{
var HD1 = new HealthDrop();
HD1.x = stage.stageWidth = startX
HD1.y = stage.stageHeight = startY
stage.addChild(HD1);
HealthDrops.push(HD1)
}
