To content | To menu | To search

Thursday, June 4 2009

Le Crabe goes GoogleCode

I used to extract some pieces of code and put them to this blog and share them as useful classes/components.

But after gathering all of them would be a better idea, that is why i created a svn checkout with my googlecode account.

Now you can use your subversion software and get the latest things i would put into.

To start with, i commited some bunch of tools such as :

Perlin plasma effect (from a previous post)

create a lavalamp like effect with the PerlinBD class which create an instant perlinnoise bitmapdata


PNG Button class

create un button from a gif/png image, where only solid colors from image reacts as button hit area


GoogleTracker class

this singleton class is to be used with the gaForFlash component, and acts like a static class to simplify tagging along a website project the great gaForFlash component can be found at http://code.google.com/p/gaforflash/


ScriptConnector class

this class can call a ASP/PHP script, sending parameters with POST/GET method, and deals with events listener. Calling a script and get back result only deals with few lines of code.


CustomKeyboard

current version can deals with several key combinations (ex: shift+scape + F key), so you can create secret combinaisons for many puproses.


MediaLoader

this can be used to load images or swf with few lines of code, leadind to a cool "_myMediaLoader.load("image.jpg", myClip);"



Many classes will be added in the future, so if you are interested in checking these classes, just have a look to my googlecode page :

http://code.google.com/p/lecrabe-tools/

or use the svn checkout: http://lecrabe-tools.googlecode.com/svn/trunk/

Wednesday, April 15 2009

Back to JSFL - Search Instance

A quick post to share this little piece of JSFL.

I was compiling my flash mockup and the compiler returned errors on a clip, just giving me its instance name.

As my fla was quite big, i didn't want to waste time looking for each frame of my lib.

So i decided to go back to JSFL programming to help me, so here is the command : Search Instance.jsfl

How it works :

Once started you have to choose the instance name to look for. There 2 options to look for your instance, "fast search" and "deep search".

Fast search will "jump" from keyframes to keyframes when checking a timeline, whereas "deep search" will look every frame.

So deep search will return the same instance several times, but is more efficient.

All found instances are printed in the output panel, showing you the clip (in library) to look into as well as the layer and frame.

Hope this script will help you.

Download the mxp file

Monday, February 2 2009

L'étrange fabrique is on its way

IT'S COMING SOON !

http://www.letrangefabrique.com/

L'étrange fabrique is our new big project with other freelances.

We will be able to offer freelance services, from as3 development to sound design, web designing, video creations......

Each member will introduce himself in the final site, so stay tuned !

Tuesday, December 16 2008

Phone calls to mobile from SWF (Flash CS3/CS4)

Yes they did it !

The Ribbit API enables you to integrate phone calling to your web projects.

Simply use the Ribbit components in Flash CS3/CS4 and in few lines make a call through the Ribbit service.

All you have to do is :

  • create a Ribbit Developer Account (you'll be able try the api)
  • follow the tutorial to create the phone call app (video link below)
  • Ribbit site says that international calls aren't working, but it does with my test in France (just replace 06xxxxxxxx mobile prefix with +336xxxxxxxx)

Here is the video Tutorial to create a simple calling application : http://www.gotoandlearn.com/play?id=97

The Ribbit site give the following Developer restrictions:

For each master developer account, you will get the following usage for free:

- 10 calls per day (US Only)

- 10 minutes per call

- 10 text SMS messages per day (US Only)

- 10 sub-accounts

As i said, i managed in making international calls (France) with the above trick.

If you want to go further in Ribbit integration, you'll have to pay :)

http://developer.ribbit.com/

Wednesday, November 26 2008

AS3 Perlin Plasma Class

During my experiments i spent some time on perlin effect to create a plasma effect.

The most useful in perlin noise are octave offsets that can create the perlin movements, so the PerlinBD class extends the BitmapData class and provide simple way to manage octave offsets movements.

So here is a simple way to create a moving perlin noise to create a plasma effect :

// create new PerlinBD as normal BitmapData (width; height, alpha, color)
perlinBmp = new PerlinBD(550, 400, true);


// set 3 octaves effects (means 3 points offsets)
perlinBmp.setOctaves(3);

and then using Event.ENTER_FRAME, just call :

perlinBmp.updatePoints();

The perlinBmp instance has different properties to modify the plasma effect :

  • number of octaves
  • greyscale
  • offset points directions (coords, direction, angles, speeds)

Each of octave point direction is changing slightly so that the plasma effect is not repetitive.

In this example, i added an AdjustColor Filter (directly on movieclip) to increase the effect :

The sources can be donwloaded here :

Thursday, November 13 2008

AS3 Librairies

Lately i had time to look forward in AS3 scripting, and i focused on 2D physics API like APE or Flash2DBox.

And after few searches i found the google keywords that lead to interesting links, i think they are worth to share :

- Adrian Parr's blog : http://www.adrianparr.com/?p=83

this page is amazing, gathering many libraires as 2D/3D physics engine, tweening, frameworks, various APIS like Facebook, ....

- Free Flash scripts http://www.free-flash-scripts.com/

Another pool of as3 classes and API where you can find system files classes such as : png/jpeg encoder, zip class, pdf exporter, ......

With these 2 links, i guess everyone will find something intersting.

Papervision - Import Cinema4D dae

For my first attemps in Papervision3D development, i focused on Collada import.

One of the great features of Papervision is the Collada import capabilities (through .dae scene files).

As i got a body export from Cinema4D (which does not need extra plugin to export), i wondered how could i import this scene into papervision.

So i tried some online tutorials which used the ASCollada class to import dae files, but i still had a compilation error.

After few more searches i found an article where the native DAE parser from papervision package was used.

And finally i managed in importing my Cinema4D .dae file, so here is the result :

In this example you'll find the following features :

  • DAE file import (from Cinema4D Collada export)
  • FlatShade material
  • Composite Material

The sources can be donwloaded here (including papervision package)

Wednesday, November 12 2008

SamyStudio MyLib AS3 components

If you have already seen the Adobe components limits, SamyStudio created an great set of AS3 components called "myLib" which include the following components :

  • Button
  • CheckBox
  • ComboBox
  • Label
  • List
  • MouseScroll
  • PanoramaScroll
  • RadioButton
  • ScrollBar
  • ScrollPane
  • Slider
  • TextArea
  • TextInput
  • MediaPlayer.

Once installed, these compenents appear in the components panel.

Personnaly my favourite is the wonderful combobox which is a pain to code.

The set comes with a whole API documentation, i guess this was a hard work to do so thanks a lot SamyStudio, great job !

click here for official site

Sunday, October 19 2008

Music finder

Maybe you know Shazam wich allows mobiles & iPhones owner to recognize a music from a 10 seconds recorded sample ?

So have a look to : http://www.shazam.com/

How does it works :

You are hearing a song you like but you don't know who is the artist... Record a sample to your mobile/iPhone, and thanks to its huge database this tool is capable of finding the entire music informations.

But Shazam made me think of another old web flash application i saw a long time ago .

This funny small app asks you to tap the music rythm you are thinking of, and it discovers it very fast.

It is called : Song Tapper

Just click the link and test it :)

Wednesday, August 6 2008

Eclipse undelete option

Thanks god eclipse has its own undelete option !!!

Continue reading...

Tuesday, August 5 2008

AS3 gotoAndStop & gotoAndPlay issue

Here is a little trick that may help you to target items on scene right after a gotoAndStop/gotoAndPlay

Continue reading...

Wednesday, July 16 2008

AS3 8BitBoy in Flash 9 IDE

Flex to Flash IDE conversion of the amazing 8Bitboy project, with an extra example, yipee !

Continue reading...

Tuesday, July 8 2008

AS3 Bezier blobs/metaballs

My latest AS3 investigation using the graphics & mathematics capabilities of Flash player.

Continue reading...

Saturday, June 28 2008

AS3 - Blurred Camera

Here a fast experiment of as3 and video handling, enjoy !

Continue reading...

Saturday, May 24 2008

LeCrabe site updated !

Almost 1 year without any update.....

Continue reading...

Sunday, April 6 2008

Finally the Smoother component is here !

After several people asked me about a more complete sequel of the Smooth class, here is a brand new component

Continue reading...

Tuesday, February 19 2008

PS3 Flash Test

Quick benchmark of the Flash player in the PS3 browser.

Continue reading...

Wednesday, January 30 2008

JSFL - Flash Texts to HTML (for webranking)

Here is a jsfl script in order to extract texts from fla files and improve your site webranking

Continue reading...

Tuesday, January 22 2008

LunarExpress - A whoseGame contribution

Try my last contribution to the whosegame community

Continue reading...

WhoseGame adventure engine

My last month project was the main platform engine for this nice game community

Continue reading...

- page 1 of 3