What is the best way to stop people hacking the PHP-based highscore table of a Flash game

This is a classic problem with Internet games and contests. Your Flash code works with users to decide a score for a game. But users aren’t trusted, and the Flash code runs on the user’s computer. You’re SOL. There is nothing you can do to prevent an attacker from forging high scores: Flash is even … Read more

Call AngularJS from legacy code

Interop from outside of angular to angular is same as debugging angular application or integrating with third party library. For any DOM element you can do this: angular.element(domElement).scope() to get the current scope for the element angular.element(domElement).injector() to get the current app injector angular.element(domElement).controller() to get a hold of the ng-controller instance. From the injector … Read more

as3 – COMPILER ERROR 1120: Access of undefined property * 7

When you see the error: 1120: Access of undefined property ‘VariableName’. This means you have not defined or declared the variable (or function when accessing it as a property of an object/class). Here is an overview: 1120: Access of undefined property projectsNum. projectsNum = projectTitle.length(); // You have declared [var projectNum:Number;] Error source = s … Read more