Occupy wha?



No Comments

Share









occupy html vs occupy flash LOL, i’m waiting for a same java site from c# devs :)

Queue class (upd v.1.2)



5 Comments

Share




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



Which mobile os do you prefer?



3 Comments

Share




I’m just curious, which mobile os do you personally prefer more in yr everyday life (leave aside fp, miniusb etc)?

Which mobile os do you personally prefer more?

View Results

Loading ... Loading ...

ps: no holy wars plz guys ^_^

A fast trick to lighten/darken colors



2 Comments

Share





Running example


/**
 * 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;amp; 0xff0000) + (g << 8 &amp;amp;amp;amp; 0x00ff00) + (b &amp;amp;amp;amp; 0x0000ff);
}

View the complete source code

Google swiffy



10 Comments

Share




swiffy

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…

Howdy mister JointStyle.MITER



5 Comments

Share






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 trip or greets from Russia



No Comments

Share







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 ^_^)

as3scorm updated



No Comments

Share




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.

MAXRacer live



2 Comments

Share




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) :)

Take a MAXRacer ride

Copying objects bytearray vs for in loop



2 Comments

Share




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

Older Entries