27 December 2007
Straighten quotes in textmate
One thing I missed from BBedit was straightening quotes. Just found these great commands that do the same thing.
One thing I missed from BBedit was straightening quotes. Just found these great commands that do the same thing.
I’m pretty sure that making custom components in AS3 is worthless now. It was already kinda shaky in flash 8 and the documentation lacking. Check out this example of where I’m running up against a wall:
package {
//imports
import flash.display.*;
import flash.events.*;
//class
public class Module extends Sprite {
//component property
[Inspectable] public var label:String;
//constructor
public function Module() {
trace(label);
addEventListener(MouseEvent.ON_CLICK, clicked);
}
//click event
private function clicked(e:MouseEvent) {
trace(label);
}
}
}
In this example, you create a simple sprite (the shape of which isn’t set here) that has a label property that you should be able to edit in the authoring environment. After adding it as a component in the library and editing the “label” field in the component inspector, publish. The first trace, in the constructor, will output null. It’s not set yet. But once you click on it you see the label you’ve given it. So, it is storing the input from the component inspector. However, flash AS3 doesn’t seem to provide a “creationComplete” event like Flex does. So you can’t tell at what point your properties were set.
Here’s some more mysql odds and ends I’ve been picking up:
I was excited when Greg told me that Gmail had added IMAP support. I tried it out the other week and have since switched back to my old ways*. I had two main problems with it:
With both of these issues, I could have “fixed” them in Mail.app if only it had better rules. I wish you could mark messages as read of apply rules to specific folders of an IMAP account or make combinations of AND and OR. Anyway, no Gmail IMAP for me yet.
*My “old way” is to have gmail forward all mail to a AOL free webmail account I setup for this purpose. They run IMAP as well. Then I have mail.app check the AOL mail, but use the Gmail SMTP for sending. Works pretty good. One note if you want to set this up yourself: it seems to me that AOL mail accounts you setup on their own only keep like 500 messages. But if you create an AIM account and then use it’s mail, there appears to be no restrictions. This is a theory I’ve formed based on my own experience, haven’t seen anything official about it.