Occupy wha?
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
Open source projects, snippets, notes, thoughts, flash, flex, air, as3, js
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.
alternativa, max, racer
Mar 01thoughts2 Comments
Ough, almost forgot… Remember that Alternativa’s racing demo at the Adobe MAX?
Well, guess what — they’ve uploaded it, so u can go and drive that ferrari (or whatever that is) on your own now (link below)
as3, bytearray, copy, for in loop, object
Mar 01code, thoughts2 Comments
I was curious, which of those would be quicker in the “copying objects” battle — bytearray / for in loop.
Foreseeing your possible thoughts, “yes” i do realize that those methods actually differ (bytearray copies the entire object, uses describeType etc), but still curiosity takes over ![]()
And, frankly, i was surprized with the results. See it for yourself.
Read more