Archive for the 'Mac' Category

AS3.0 MouseWheel on Mac OS X

I've finally found the time to port my SWFObject add-on SWFMacMouseWheel (catchy I know) to ActionScript 3.0 and SWFObject 2.0

There's now two examples in the zip, one for use with SWFObject 1.5, and a totally re-written version for use with SWFObject 2.0 (formerly SWFFix)

All you have to do in your main application class (or document class) is

Actionscript:
  1. import com.pixelbreaker.ui.osx.MacMouseWheel;
  2.  
  3. MacMouseWheel.setup( stage );

You can then add listeners to TextFields, Sprites etc etc as you normally would any other MouseEvent.

Example JavaScript to be used with the dynamic embed method

JavaScript:
  1. var vars = {};
  2. var params = { scale:'noScale', salign:'lt', menu:'false' };
  3. var attributes = { id:'testObject', name:'testObject' }; // give an id to the flash object
  4.  
  5. swfobject.embedSWF("test_as3.swf", "flashContent", "100%", "100%", "9.0.0", "js/expressInstall.swf", vars, params, attributes );
  6. swfmacmousewheel.registerObject(attributes.id);

I have updated the SWFObject 2.0 version to be more compact, and it also falls inline with the code style of SWFObject2.0. see swfmacmousewheel_src.js for the uncompressed version, deploy swfmacmousewheel2.js on your site.

Download source and demo here or view the demo online

PolarClock on OS X Leopard

I've found a bug in screentime, the software used to pack up PolarClock as a screensaver. When run on Leopard, after the screensaver exits back to the desktop, the Function keys and any shortcuts to the Dashboard or exposé don't work. I have contacted screentime about this issue, and will post a fix a.s.a.p

PolarClock Dashboard Widget

widget.jpg

A lot of people had been asking for this as a widget. So i've put together this version for the OS X Dashboard. The options are limited to language selection only.

Download:
[zip] PolarClock OSX Widget 356Kb

Read more

PolarClock 3.0 Release

launch.jpg

It's all done!

Re-worked from the ground up in ActionScript 3, this release should be much less CPU intensive, and has had heaps of new features added. Read all about it at it's new permanent home.

PolarClock Home

Polar Clock 3.0 development

pc3.jpg
Just an update of how the development of the next release of the clock is going.

I've ported 90% of the engine to actionscript 3.0 now, and begun implementation of a config panel built using Flex Builder 3 (Moxie). I've now got the following language implemented: English, Afrikaans, Chinese, Danish, Dutch, French, Finnish, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Portugese, Portugese (Brazil), Polish, Romanian, Russian, Spanish, Swedish, Slovakian, Thai, Turkish and Vietnamese.

I have spoken to a guy at ScreenTime (who make screentime for flash) and they are sending me an updated version for windows in a couple of days, to match up the sizes of the config panels with the latest release for mac. Yeah, I bought screentime for mac + windows!!!

I'm hoping to launch version 3 of the clock on of before 21/07/07. Keep checking for updates!

So far there have been over 40,000 downloads of v1 and 2, it's much much more popular than I ever expected!

ProggyFonts and Eclipse on OS X

I've tried every way I could think of to get eclipse to stop anti-aliasing the editor font since I started using it over a year ago. I used to use ProggyTiny in my previous editors, as it's a compact and easy to read font for coding.

I worked out today that ProggyFonts has a version of some of it's fonts (the best ones) available in apple's dfont format, which do not get antialiased by Eclipse. Just click on the file icon with the apple in it next to each font where available.

There's a few little niggles with using these fonts, in your FDT or Eclipse settings, make sure you don't set any syntax types to display in bold or italic, as the font doesn't display.

Finally, a decent editing font

I've been struggling, since my switch to OS X, to find a decent bitmap small font that is very readable and aliased for OS X.

Today I found ProFont, which is perfect in Eclipse if you set OS X to alias fonts <=10pt.

I've also found Anonymous, which is great if you don't want to turn of anti-aliasing at smaller sizes, it looks great at 11pt.

Anyone else know a good font for OS X coders?

ServiceCapture

This looks like a really handy tool for keeping a close (and detailed) eye on all your HTTP traffic. It deserializes SOAP, JSON, AMFPHP and other Flash Remoting traffic to a tree based format.

ServiceCapture for Windows and OS X.

SWFObject add-on: MouseWheel on Mac OS

I've had the mouse wheel working in flash on OS X for a while, and after seeing the SWFAddress add-on for deconcept's SWFObject embedding system, I thought I'd add mousewheel functionality to SWFObject, rather than using my own "frankenstein" embedding system.

It's straight forward to implement. Download SWFMacMouseWheel here.


Read more