Project Monocle a true profiler



2 Comments

Share




Can’t tell HOW am i excited about this new “monocle” profiler introduced by Thibault Imbert.
Needless to say anything. Just watch and enjoy.

Introducing Project “Monocle” from Thibault Imbert on Vimeo.

Flash Player + mouse right-click



2 Comments

Share




Flash Player 11.2 finally got the right-mouse button back!
Congrats! :)

Lee Brimelow posted a nice demo.

To achieve this, you’ll need to listen for the new MouseEvent.RIGHT_CLICK mouse event

Friday hockey



No Comments

Share




Having a beer, watching the IIHF (ice hockey world championship in sweden) :-)

Similans and Flash cs6



No Comments

Share




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.

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

Older Entries