What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
In my strategy game when a tile is clicked, I need to reference values from that tile in the function.
I’ve tried doing it event.target code, but I’m new to that. After googling, I tried redefining a var as the value of the private var of the target.
public function x()
var y:int = 0;
// do stuff with y
Should I use a get function?
Thanks for any help, not sure if I’m on the right track.
try event.currentTarget instead, then cast that as whatever your tile class is.
private function OnTileClick(e:MouseEvent):void
var currentTile:Tile = e.currentTarget as Tile;
if (currentTile.propertyYouWantToCheckFor == "Cupcake")