Friday hockey
hockey, iihf 2012
May 11thoughtsNo Comments

Having a beer, watching the IIHF (ice hockey world championship in sweden) ![]()
Open source projects, snippets, notes, thoughts, flash, flex, air, as3, js
hockey, iihf 2012
May 11thoughtsNo Comments

Having a beer, watching the IIHF (ice hockey world championship in sweden) ![]()
flash cs6, holidays, similan islands
Apr 29misc, newsNo Comments

While i was snorkeling at the Similan island’s shore, Adobe has release the next new version of Flash cs6. The main feature’s the js export + some minor fixes/addons.
Flash, fun, html, lol, occupy
Nov 17misc, thoughtsNo Comments

occupy html vs occupy flash LOL, i’m waiting for a same java site from c# devs
as3, queue, stack
Oct 02code5 Comments

Sometimes you need to do a bunch of similar tasks at once (create similar display objects, render stuff, reindex pools etc), but often this may be a pain due to performance limits (which may result in poor user experience) and that’s where the queue pattern comes to the rescue. I’ve wrote a simple thought useful util for that purpose.
Play with the demo below (a simple IQueueItem implementation) or download the source (com.chargedweb.queue.*)
UPDATE: v.1.2 update + docs updated
mobile, os, poll
Sep 09misc3 Comments
I’m just curious, which mobile os do you personally prefer more in yr everyday life (leave aside fp, miniusb etc)?
ps: no holy wars plz guys ^_^
as3, brightness, color
Sep 09code2 Comments
/**
* Scales r-g-b channels by 'scale' factor, having the r-g-b proportions saved
* @param color:uint color to be scaled (i.e. lighten or darken)
* @param scale:Number the scale factor (values -1 to 1) -1 = absolute dark; 1 = absolute light;
* @return uint scaled color
*/
function scaleColor(color:uint, scale:Number):uint
{
var r:int = (color & 0xFF0000) >> 16;
var g:int = (color & 0x00FF00) >> 8;
var b:int = color & 0x0000FF;
r += (255 * scale)*(r/(r+g+b)); r = (r > 255) ? 255 : r; r = (r < 0) ? 0 : r;
g += (255 * scale)*(g/(r+g+b)); g = (g > 255) ? 255 : g; g = (g < 0) ? 0 : g;
b += (255 * scale)*(b/(r+g+b)); b = (b > 255) ? 255 : b; b = (b < 0) ? 0 : b;
return (r << 16 &amp;amp;amp; 0xff0000) + (g << 8 &amp;amp;amp; 0x00ff00) + (b &amp;amp;amp; 0x0000ff);
}
converter, Flash, google, html5, swiffy
Jun 29misc, news10 Comments

The news about the new “flash killer” (adobe shared the wallaby source code to google or it’s just a clone?) flew over around the web (even Lee Brimelow posted about it). So i’ve decided to check it out and see it myself.
So, i made a simple as2 movie compiled for fp6 ( they recommend version below 8 ) to see if swiffy could manage to convert it.
Original as2 movie http://chargedweb.com/labs/files/2011/06/fp6.as2.swf
Swiffy output http://chargedweb.com/labs/files/2011/06/fp6.as2.html
it’s you to comment…
as3, bug, fp, graphics, jointstyle, mitter
May 30code5 Comments

Do you like sharp border corners (miter ones)?
Well, i do, but adobe does not, probably… (watch the third square with JointStyle.MITER joints set)
ps: yeap, the issue can be fixed by setting the LineScaleMode.NORMAL, instead of the NONE, but what if i do need the NONE mode on?
Read more
around the world, kemo, oleg, russia
May 18misc, newsNo Comments

A russian partner of mine Oleg Radul (CEO of the Kemo LLC) is starting his trip around the world on his Mitsubishi L200 ![]()
So, if u r open to meeting new people from far away, keep track of his blog to catch him up in your city to get together and have some beer ^_^
Most important — here’s his route (clickable):

ps: more about the trip in his blog (thank u google ^_^)
as3, as3scorm, scorm
Apr 18codeNo Comments
Just a short post to let you know, that i’ve updated the as3scorm lib (simple course example added).
Might be useful to get started with the lib fast.