// labs

Archive for the ‘osx’ tag

OSX Apache and Mod_ssl

without comments

This one always gets me. Seems so difficult on OSX (Snow Leopard), so for all those who are trying to get https on the base install of apache(2) in snow leopard here are some tips.
Read the rest of this entry »

Written by Michael Archbold

September 1st, 2010 at 4:41 pm

Posted in tips

Tagged with , , ,

Finder and Terminal

without comments

Here we'll show you how to move the present working directory of a Terminal window to the current directory in the front most Finder window.
Read the rest of this entry »

Written by Michael Archbold

August 25th, 2010 at 3:57 pm

Posted in tips

Tagged with ,

AS3 on the Command Line

without comments

As anyone who knows me would tell you, I live by the command line, so I thought I would share an old trick to compile as3 applications from the command line in bash.

The trick here is to use the Flex SDK compiler which is available free from Adobe. It also requires having installed java, which is so common on most machines that I won't talk about installation.

The setup process is fairly simple:

Once that's done you should be able to type mxmlc into the command line and see an error stating you must specify a target file. To compile an as3 file simply use the following:

  1. mxmlc main-app-file.as -o output.swf

Additionally I compile my libraries to my-libs.swc by doing the following:

  1. compc -source-path . -include-sources . -output my-libs.swc

Since this is a flex compile you can also use flex syntax in your actionscript to embed resources in the code. Most commonly I use the swf definition line below to simply definite the frame rate and dimensions of the compiled output.

  1. [SWF(width='990',height='680',backgroundColor='0x000000', frameRate='30')]




Now to use Flash CS3's V3 Components see this post: moock.org

Additionally there are Eclipse tools for actionscript: the rasx() context

Written by Michael Archbold

July 1st, 2009 at 11:26 am

Posted in tips

Tagged with , , ,