If you’re anything like me, hardcore object-oriented Javascript coding always come with unexpected errors and some of the strangest behavior you can’t really explain.
But that’s always the programmer’s fault, of course. It turns out Javascript isn’t made to be used in a object-oriented way, but rather in a prototype-oriented fashion.
This lengthy post compares Java and [...]
Posts Tagged "OOP"
The use of a static method to delegate events in Flash is one of the easiest ways of associating functions to an event.
read on »I’ve been having a lot of trouble having Event (clicks, loads, etc…) in Flash for as long as I’ve been doing Object-Oriented ActionScript. I barely managed to call inline functions and having to use the absolute path to the property. Example:
class Foo {
public var _someProperty:String
public function Foo() {
// Lets skip how I actually make the [...]
Macromedia have brought a lot more depth into Flash by adding pre-compiled components (or movie clips) to the software’s library. Mostly available only in the professional edition, these components make building application faster and easier.
One of the components I’ve played with it the Window object. It’s simple to understand and it’s possible to create a [...]