I have been coding a lot in Flex Builder for the past couple of days. I have left the server side alone for a while and designing the client end now. Flex Builder saves a lot of time even when you are not using the drag and drop GUI builder. Have learned quite a few interesting things about Actions script during this period. Most notable of them are perhaps these two – Closure and Dynamic class. With closure, you can pass a method as an argument to another method and with dynamic class, well you can add properties to that class at runtime! I am hoping I will be able to utilize this dynamic nature into good use. Some of my other resent findings are –
- The tags inside the mxml file can implement an Interface. While this is natural since a tag always refers to a class, at first I found it really interesting.
- There is a nice flash debugger plugin that lets you debug your code.
- To override a method, you have to mention override keyword in the method definition.
- Setter getter methods – you write function set methodName() or function get methodName() to define setter and getter methods That was really new to me! 🙂
I found the Action script reference PDF really useful for learning the bits and pieces of Action script. However I am having real difficulty in adjusting to some of the syntaxes, specially while declaring a variable. I keep on doing it using the Java way and the compiler keeps on reminding me! 🙂
Thats it for today, hopefully more will come soon..
Leave a comment