I create a textfield for coins count but i dont know how to change the value


(Savvas Antoniou) #1

package { import GUI.ExitButton; import GUI.INSTRUCTIONMENU; import GUI.childclass; import net.flashpunk.Entity; import net.flashpunk.FP; import net.flashpunk.World; import net.flashpunk.graphics.Text;

/**
 * ...
 * @author Savvas
 */
public class INSTRUCTIONS extends World 
{
	public var splashText:Text;
	public function INSTRUCTIONS() 
	{
		

		add(new INSTRUCTIONMENU());
		add(new ExitButton());
		add(new childclass());
		
		splashText = new Text("count   "+INSTRUCTIONMENU.countcoin,0,0,400,320);
		splashText.color = 0x00ff00;
		splashText.size = 16;
		var splashEntity:Entity = new Entity(0,0,splashText);
		splashEntity.x = 200;
		splashEntity.y = 200;
		add(splashEntity);
		
	}
	
	override public function update():void 
	{
		super.update();
	}
	
}

}