Labs

It works in my machine!

Archive for the ‘General’ Category

Google Pacman

with 2 comments

if you enjoy playing pacman on the Google´s homepage
go to github and download it!!
there’s a copy of Google’s playable Pacman game!

macek / google_pacman

cheers!

Written by Raúl

May 26th, 2010 at 11:10 am

Posted in General

Ooops!

without comments

sorry about the last days, we were trying to implement the new skin like GrupoW’s blog, but
we found some problems on the road….

so skin update will come later =(

Cheers!!

Written by Raúl

May 19th, 2010 at 5:45 pm

Posted in General

Versions Tip

without comments

if you wonder how the heck you could do branching or tagging in Versions.app (SVN Client for Mac)
just go to your repository (not the working copy), then drag the folder you want to tag to it’s destination, fill in the resulting dialog.

cheers.

Written by Raúl

April 1st, 2010 at 5:26 pm

Posted in General

mm.cfg file!

without comments

I’ve just found this incredible post by Jean-Philippe Auclair
about the mm.cfg file!

this two flasgs are just great!

TraceOutputBuffered = 1|0

and the :

AS3Verbose = 1|0

you can read all the features at: http://jpauclair.net/2010/02/10/mmcfg-treasure/

Written by Raúl

February 12th, 2010 at 5:29 pm

Posted in General

GrupoW + Github!

without comments

we juts start using github (social coding)

just in case you want to follow any of us,  here we are :

cheers!

RobotLegs and Flash IDE

with 2 comments

i was trying to find a solution for compiling Robotlegs from Flash IDE (CS3 or CS4)
and found two approaches:
the first one comes from Jesse Warden combining mxmlc & Flash CS4 or CS3 with GAIA Framework.
the second one (that i think is a lot easier) i found it at Helmut Granda post using XML configuration to initialize the injection from the SwiftSuspendersInjector, you can find more info here and in the SwiftSuspenders README file.

so, i tried the second one and here’s the Hello Flash example compiled from flash CS3

download here.

enjoy.

Written by Raúl

February 2nd, 2010 at 7:29 pm

Posted in AS3, General, RobotLegs

Tagged with , ,

Strategy Pattern

with one comment

Strategy Pattern is my favorite one, and why?
because it’s so simple for implamentation; it’s based on polymorphism, an the basic idea is to encapsulate the code that you think is gonna change.

for example let’s say that you have and Encryptor Class:

Read the rest of this entry »

Written by Raúl

December 14th, 2009 at 7:28 pm

Posted in General

Tagged with , ,

More on Regular Expressions!

without comments

i was trying to understand what’s happening behind scenes in the Log Class in Flex Framework
if you digg a little bit in their Classes you’ll find something like this

1
2
3
4
5
6
7
8
9
10
11
12
13
                public function debug(msg:String, ... rest):void
		{
			if (hasEventListener(LogEvent.LOG))
			{
				// replace all of the parameters in the msg string
				for (var i:int = 0; i < rest.length; i++)
				{
					msg = msg.replace(new RegExp("\\{"+i+"\\}", "g"), rest[i]);
				}
 
				dispatchEvent(new LogEvent(msg, LogEventLevel.DEBUG));
			}
		}

so what’s means msg = msg.replace(new RegExp(”\\{”+i+”\\}”, “g”), rest[i]); ??????
that means whenever you find “{0}” …. “{n}” replace it by the string rest[0] … rest[n]

so you can use

1
2
Log.debug("the song says {0} little {1} little {2} little-endians" , 'zero','one','two');
//outputs:  the song says zero little one little two little-endians

for me is so hard to read a Regular Expressions especially because i always forget
all means of meta characters and meta secquencies hehehe

Written by Raúl

December 14th, 2009 at 6:05 pm

Posted in AS3, General

Tagged with

FlashDevelop Plugins

without comments

Today we just found two great plugins for FlashDevelop

first: Reopen closed tab plugin
just press Ctlr + Shift + T and your last closed tab would be open again (firefox style! XD)

second: FlashdevelopPMD
integrates the new flexPMD from Adobe Labs to FlashDevelop

FlashDevelop is a great tool for coding and of course is our “battle horse” here at GrupoW

enjoy it!

Written by Raúl

September 15th, 2009 at 1:31 pm

Posted in General

Sound Pitch

with 2 comments

i was talking with Caleb (the sound expert here at Grupow) a few days ago about how the Pitch works behind the scenes
i saw a great usage of the Pitch effect in Braid Game and i wanted to give a try in the Flash’s new Sound API
…………. but then Andre Michelle came with this!!!

man………. that guy is crazy.

Written by Raúl

July 22nd, 2009 at 2:16 pm

Posted in General