TextMate: Tabbing through functions with macros
Posted by Helmut Granda | Filed under AS Burst
One of the features that I would like to have as a default for TextMate is the ability to navigate through functions with the keyboard rather than having move back and forth between the keyboard and mouse or scroll line by line with the down/up keys.
Since the feature is not available (or at least not that I know of) I created 2 simple macros that would allow you to jump to the Next or Previous function. Those macros are tied up to the keys as follows:
Next Function:
Shift+Apple+Down
Previous Function
Shift+Apple+Up
You can download the macros here
Please note that as default the key combinations noted above select all the text from the marker position. It is something that I rarely use so I was able to trade that in for the navigation ability.
//How to make sure your banners play only for a certain period of time
Posted by Helmut Granda | Filed under AS Burst
It is almost a standard to allow banners to play for only 15 seconds after they have been loaded into the browser. If you are creating your animations on the timeline you can very well know how long the banner is by looking at the frames you are using for a specific banner. But if you are creating a banner through code there are 2 ways to ensure that your banners last 15 seconds from creation.
The long way to ensure that your banners last 15 seconds is by using the Date object, and the short and easy way is to use the getTimer global function.
[code=as]trace("*****BANNER LENGTH IN SECONDS = " + getTimer ( ) / 1000 ) ;[/code]
The code above will produce something similar to :
[code=as]*****BANNER LENGTH IN SECONDS = 15.00[/code]
//Flash Player 9 Debugger “solution to random crashing”
Posted by Helmut Granda | Filed under AS Burst
My main Flash Player for testing content online is always the latest debugger version (in this case the current player is flash 9). For some odd reason it always crashes on random sites on PPC but Intel it works flawlessly. After many installing, uninstalling, reinstalling, installing again.. I figured I would give a try to the flash player 10 debugger version and so far so good.
So if your browse keeps on crashing with the flash player 9 debugger version, give flash player 10 a try:
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/in/player/10/mac/
Remember to treat this player as any other Beta software, in another words use with caution.
//Adobe Air Textmate Bundle
Posted by Helmut Granda | Filed under AS Burst
I started creating an Adobe Air application with Adobe DreamWeaver and it works great, but I am so used to doing development with TextMate that I ended up using DreamWeaver just for previewing and compiling the application and TextMate for development. Fortunatelly for us Matthew Reed has created a Bundle to test and compile your Adobe Air Applications in just 3 steps:
- Download Source in Matthew Reed's site
- Install Into Textmate
- Use it! Control + Return
Thanks for this bundle!
Source: Adobe Airâ„¢ TextMate Bundle
Note: He recommends to install (or have) the SDK inside "Applications/AdobeAir" and the bundle works as expected. But if you would like to change the location where the Bundle makes reference to you can do so by looking under:
Bundles>Bundle Editor>Show Bundle Editor
Tab to:
Air> Package Preview
Air> Package Self-signed
and you will find the following lines:
export PATH=$PATH:/Applications/AdobeAir/bin
export CLASSPATH=/Applications/AdobeAir/lib/adt.jar
adl "$TM_PROJECT_DIRECTORY/application.xml"
Change /Applications/AdobeAir/ to the location of your SDK.
//Force close and open disk tray Mac
Posted by Helmut Granda | Filed under AS Burst
In a new command line type - drutil tray eject - to eject the disk or open a stuck tray. Type - drutil tray close - to close it.
//Drag and Drop items from browser
Posted by Helmut Granda | Filed under AS Burst
In Mac and with Firefox you can drag and drop images directly into the stage with Flash CS3. That is a time saver instead of having to download the file to your computer and then import to the stage.