Archive for September, 2009

FDT Tip: Shortcut In Writing A Class’s Name

I have tried my best to make the title as self-explanatory as possible, but pardon me if you still have no idea what I’m referring to. However, more importantly is that this tip saved me a great deal of time, so I would suggest any FDT user to read this. ;)

When you have a constant declared in a class, it is always considered good practice to refer to it with the class name. Meaning,

1
2
3
4
5
6
7
8
9
10
11
12
13
package
{
    public class Test 
    {
        public static const APP_NAME:String = "fdt-tip";
 
        public function Test () 
        {
            // Best practice to include class's name
            trace(Test.APP_NAME);
        }
    }
}

As you can see from the above example, I referred to the constant using the class’s name. In our above example though, there is no issue since we’re only referring to the constant once.

Things start to worsen if the constant is referred to A LOT OF TIMES. Now it gets even worse if we had named our classes based on the display objects’ hierarchy, with class names looking like WrapperPageContentViewGenericSprite. *loL~* What if you actually have several classes with similar class names, e.g. WrapperPageContentViewUniqueSprite, WrapperPageGenericView, WrapperPage? At this point, even code-hinting will take you some time to filter through to the right class.

Solution

Head right on to Preferences > FDT > Editor > Templates and click on the “New…” button.

Here’s what I recommend to enter in the fields:
Name: tt (your own preference)
Context: AS2/AS3
Automatically Insert: Checked
Description: Fills in the current class (your own preference)
Pattern: ${enclosing_type}

FDT Tip Shortcut In Writing A Class's Name

After you are done creating this template, click the “OK” button. Try it out now! Simply type “tt” (or whatever is your shortcut), and press enter: the class’s name will now be automatically inserted for you. No fuss anymore, and no more excuses for not coding with best practices. :P

AddThis Social Bookmark Button

We These Few Men—The Actionscript Conference 2009 Committee

The Actionscript Conference 2009

The Actionscript Conference (TAC) 2009, which spanned from Sept 13-15, had ended. If you ask my opinion, I would boldly proclaim that this year’s edition is in many ways bigger and better than last year’s. That said, the committee got all tired and burned out, and that also explains why this post is written two days after the conference had ended (I’m burnt myself). :P

I just want to take the time to write this post, to show the appreciation that I had for all who had helped out during the conference. Some of these guys may be lesser known heroes, but without them, I can assure you the show might not have gone right in too many ways. Here goes. ;)

ShunjieIf you’re in the local Flash scene and do not recognise this face, there’s a big issue. *loL~* Shunjie is the user group manager of the Singapore Flex Usergroup (FUG), and the founder of both The Actionscript Conference and RIAction in Singapore. He started making the necessary preparations for TAC since way back in March, and the effort that he had put into this may not be seen by all. I’m one lucky one to witness it.

AlvinBeing the co-founder of TAC and co-manager of the FUG, you ought to know Alvin too. He’s one of the guys that I really admire, having the ability to use both his left and right brains almost equally. He designed the TAC logo, paper bags, brochures, while preparing for his “Multi Touch in Flash” presentation.

AlexAlex is the liaison officer between TAC and the speakers and recruitment companies. You may not see him running up and down the aisle often during TAC, but he’s working out behind the scenes to help in every way that he can. The next time that you see him, do say hello and give him a pad on the back. ;)

Arul KumaranArul Kumaran is the command center head if you ask me. Hidden in the video control room, he probably had the most important job of recording the sessions for post conference enjoyment, and it all rests upon the shoulders of this man. If you think it’s easy, think again. Fighting against fatigue, toggling between the different cameras for the right capture at the right time, it is indeed highly stressful.

Arul PrasadArul Prasad was unfortunately, unable to be with us during the conference itself, as he had some business matters to attend in San Francisco. However, he was the original liaison officer and who knows how many emails he had to keep replying in order to connect with all the speakers. He was also actively participating in our pre-conference meetups, so indeed, credits go to him as well. :)

ElliotElliot Williams is a volunteer for TAC, but little did he know that without him, the conference probably wouldn’t be able to run! He single-handedly fixed up the wireless network, troubleshoot whenever people got trouble with connecting to the wifi, being the security officer to ensure that no people come into the auditorium unauthorised, and being the emcee in between the sessions! Elliot, you’re great man! :D

Victor and JonathanAnother two of our lesser known heroes, Victor and Jonathan were essential in a lot of roles as well. Tasked to be in charged during the registration, rotating between looking after our personal properties, recording of videos, you can literally see them everywhere. These two are what put our minds at ease so the rest of us can operate with a safe mind. Without them, it would again be a serious mess.

LionelSo yes, this is me. It feels weird adding what I did on my own blog, but yea, I’m one of the committee too. :D I was involved in the planning process, being the main photographer for the two days, and also the interviewer for the speakers. It is tough juggling all these roles especially when one has to prepare for his own presentation, but looking back, it was all worth it.

Aftermath

Now that the conference had come to an end, I’ll be working to put up my slides soon. In the meanwhile, I’m also in the works of transcribing the interviews. Once they’re done, I’ll post them up on this blog one by one.

Just a final word, it has been great working with you guys. :)

AddThis Social Bookmark Button

Speaking at The Actionscript Conference 2009

This is really quite exciting while I’m blogging this entry, because The Actionscript Conference 2009 is just next week! In fact, it will happen in about 4.5 days time! :D

Apart from being one of the organisers, I have the privilege to speak in one session this year as well. My session is titled “Warpspeed Flash”, and it’s basically sharing tips with the community on how to work smarter, not harder. ;) Catch me at the conference and don’t be shy, say Hi! :D

TAC Tickets from $1!

In other TAC related news, we are now selling tickets from $1 on ebay! Call us crazy, but that’s our way of thanking the community for all the support they’ve given us thus far. Only 15 tickets! Wait no further and bid for yours today!

TAC Workshop

Finally, for those who had purchased the ticket, we are happy to bring you an exclusive TAC workshop! :D Details as follow:

What: Designer and Developer Workflow
When: 13th September 2009 (this Sunday), 10am-12pm
Who: Michael Plank, Powerflasher GmbH
Where: LAB School (nearest MRT at Novena)
185A Thomson Road, Goldhill Centre, Singapore 307629
Cost: FREE! Limited to TAC delegates ONLY

How to register?

Email shunjie@tac.sg, providing the email address that you used for TAC registration. There is a limit to the number of delegates who can attend the workshop, so act fast if you want to go!

We want to thank our two sponsors, Powerflasher GmbH and LAB School, for making this possible. :)

AddThis Social Bookmark Button