Identifying a debug or release SWF file at runtime

Identifying a debug or release SWF file at runtime example screenshot

It may be interesting to know at runtime whether an application is running from a debug or release SWF file. It allows the application to automatically execute debug specific code when the file is a debug SWF file and ignore this code when it is published as a release file.

I can't find any property that indicates whether an application is running from a debug or release SWF file in the Flash Player API reference while searching for it the other day. I hope this solution will help.

There's probably another way to achieve this, but I like this one because it can be written in one line only :

isDebug = new Error().getStackTrace().search(/:[0-9]+\]$/m) > -1;

Continue reading Identifying a debug or release SWF file at runtime

TortoiseSVN optimization tip

TortoiseSVN settings window screenshot

If you work with TortoiseSVN on Windows, you've probably noticed that its process TortoiseSVNCache.exe does a lot of unexpected disk I/O. The reason is that TortoiseSVNCache.exe is used to render icons overlays in Windows Explorer. So each folder and all its sub-folders are, by default, recursively scanned to display their corresponding SVN status icon overlay.

A setting exists to set which folders TortoiseSVN is allowed to scan. You will of course set it to only scan the folders that contain local copies of SVN repositories. As we all know this is often only two or three work folders on the filesystem.

Continue reading TortoiseSVN optimization tip

Overriding Flash player 60fps limit in Firefox (up to 950fps, as Silverlight 2 in bubblemark)

There is actually some buzz around the 60 frames per second draw rate limit fixed by browsers to Flash player. All the noise cames from the bubblemark benchmark that is intended to compare performances of different plug-ins while playing an animation at the maximum speed they can. The only result we get with this test is there is a limit fixed by browsers to the draw rate of plug-ins. Everybody is agree to said that results of this test are distorted.

Continue reading Overriding Flash player 60fps limit in Firefox (up to 950fps, as Silverlight 2 in bubblemark)

«Working sets», an helpful Flex Navigator functionality

«Working sets» is an underused Flex Navigator functionality that could save you a lot of time when your Flex workspace contains many projects.

As its name says, it allows you to create sets of Flex projects to work on. The magic is that when a «working set» is selected, Flex navigator only shows projects related to this set. You could access all your classes and files in an instant.

It is not as cool as Java navigator filters (implemented in Flex navigator but not working) nor as Eclipse switching workspace that could share the same settings (not implemented yet), but it does its job when needed.

I will show you how to configure the whole thing.

Continue reading «Working sets», an helpful Flex Navigator functionality