July 30th, 2010
I was accidentally stored numbers as a strings in my objects.
Something like that:
data = {x: "200", y: "100"};
instead of that:
So, the problem starts when you try to sum or deduct these “numbers”.
For example,
trace(data.x+90);
Output: 20090
trace(data.x-90);
Output: 110
no comments | posted in _programming by pozirk
February 2nd, 2010
Download Games website is ready! Two more left.
Have found one bug in swfobject version 2.2, when using it dynamically, code looks like that:
swfobject.embedSWF("http://www.pozirk-games.com/swf/menu.swf", "menu", "800", "32", "8.0.0");
If “menu” is id of the <td> tag, flash movie doesn’t work both in IE and Chrome. IE shows up “Unknown Runtime Error”, what is very informative, of course.
Using <div> instead of <td> solves the problem.
no comments | posted in _portal, _programming by pozirk