Programming

Actionscript 3 specifying events on interfaces

Posted on October 14, 2009. Filed under: Actionscript 3, Programming |

Earlier today I came across a blog regarding Actionscript and being able to specify events on interfaces. The fundamental issue was that in the current flavor of Actionscript there is no way to declare events as part of an interface contract, unlike in other object oriented languages like C#.
I gave this some more thought and [...]

Read Full Post | Make a Comment ( None so far )

The Boost C++ Libraries on a Mac

Posted on September 28, 2008. Filed under: C++, Programming | Tags: , , , |

So I’ve recently adventured into the the world of C++, attempting to write a homebrew documentation system. I soon discovered that I needed to access various features of the filesystem, a feature that is lacking in C++ without making the application heavily dependent on platform. Naturally I turned to the boost libraries, notably the filesystem [...]

Read Full Post | Make a Comment ( 4 so far )

Actionscript 3 Hidden Gem: addFrameScript

Posted on July 28, 2008. Filed under: Actionscript 3, Programming |

So it’s no big secret any more that in Actionscript 3, the MovieClip class has a hidden method that enables developers to add frame scripts at runtime. However, with great power comes great responsability. It would help if this were documented in the Flash docs but it isn’t. If you don’t want your SWF files [...]

Read Full Post | Make a Comment ( 4 so far )

AS3 Library Headaches

Posted on July 15, 2008. Filed under: Actionscript 3, Programming |

I’ve been yanking my hairs out for the past few days regarding a few of my algorithms cracking. It turns out that a there area a few classes in the AS3 library that are a little tricky. Here are my findings so far:
Rectangle class
Negative Dimensions
This class works fine IFF you ensure your rectangles have positive [...]

Read Full Post | Make a Comment ( None so far )

Comparing Objects in Actionscript [FINAL]

Posted on April 18, 2008. Filed under: Actionscript 3 |

Alright, I’ve posted a few posts in the past about comparing objects in Actionscript and this one will be the last one. This will cover two approaches that I have used when having to compare objects in Actionscript (after having experimented from my other two posts).
OOD Approach
This approach leverages OOD principles. Basically as per my [...]

Read Full Post | Make a Comment ( 2 so far )

AS3 Namespaces

Posted on April 18, 2008. Filed under: Actionscript 3, Link of The Day |

http://blog.tengerstudio.com/2008/04/13/namespace-and-uri/
Recently I was experimenting with AS3 namespaces and found it to be a pain in the neck, since it was behaving oddly. I was getting compile errors whenever I tried to qualify a class member function or variable with a public namespace. The culprit? ALWAYS GIVE YOUR NAMESPACES A UNIQUE URI! See the above link [...]

Read Full Post | Make a Comment ( None so far )

Design Patterns

Posted on March 31, 2008. Filed under: Link of The Day, Programming |

http://www.dofactory.com/Patterns/Patterns.aspx
I found this little ditty a while back and i have come back to it so often I’ve lost count. It may not contain a comprehensive list of all design patterns in use today, but it sure does provide a solid foundation in the patterns that are used the most.
I’ve used this sight when designing [...]

Read Full Post | Make a Comment ( None so far )

Fisix Flash Physics Engine

Posted on March 31, 2008. Filed under: Actionscript 3, Engines, Link of The Day, Programming |

http://www.fisixengine.com/default.asp
This looks to be a very viable and production ready physics framework for the Flash AS3 environment. The engine is free to use in any personal project but comes at a price for commercial projects.I haven’t had the time to inquire about the licensing costs for a commercial project, but I have had time to [...]

Read Full Post | Make a Comment ( None so far )

Comparing Objects in Actionscript [REVISITED]

Posted on March 28, 2008. Filed under: Actionscript 3, Programming |

Alright, I have found a flaw in the whole comparing objects in Actionscript.
As per my pervious post on the subject, it turns out that all logic operators function as would be expected when defining custom boolean logic behaviour for an object. However, the equality operator seems to be different. The equality seems to never work [...]

Read Full Post | Make a Comment ( None so far )

Comparing Objects in Actionscript

Posted on February 3, 2008. Filed under: Actionscript 2, Actionscript 3, Programming |

I’ve been developing in Actionscript for quite some time now and I will admit that for the longest time I really didn’t know how to compare Objects, apart from the primitive ones. It bothered me that I couldn’t subclass Object and override the comparing operators like in C++ (if you don’t know, C++ supports operator [...]

Read Full Post | Make a Comment ( 2 so far )

Liked it here?
Why not try sites on the blogroll...