Javascript OOP

Blog: Javascript

Another way to go about some OOP for JavaScript. The bracket incased function initialises a self executing anonymous function that encases the class. In the example below are several ways of calling the class methods and properties.

Main Application or JS file. [code snippet] A JS Class Example [code snippet]

READ MORE

Robotlegs – Simple Anatomy

chasevida

I’ve been using various design patterns for a while but haven’t really had time to get into leveraging a framework like robotlegs. So in the midst of moving countries again I took some time out to really get an understanding of the framework and how my future applications might benefit from it.

As I had 24 hours of flying ahead of me I downloaded the new ActionScript Developers Guide to robotlegs by Joel Hooks, [...]

READ MORE

check user is facebook page fan

Facebook

A nice simple solution as posted by Ibrahim Faour on his blog masteringapi.com.

I’ve posted his solution here as well. [code snippet]

READ MORE

Check URL for SSL

Facebook

Sometimes I just need to run a quick php test to see what url has been used, specifically to see if it is using SSL. [code snippet]  

READ MORE

Flash exporting to .mov

Video

So I’ve been asked several times to come in and freelance on jobs that require the final output to be in video format and honestly the process of getting flash to video is not that straight forward.

Exporting flash files to .mov is not as straight forward and clean as you’d hope. There are the hurdles when exporting flash files containing ActionScript, then you have MovieClips in MovieClips which do not animate out in the final export, dropped frames, dropped pixels, [...]

READ MORE

JS Class Refresher

Javascript

Just a little refresher on setting up a JS class.

To simply create a new JavaScript class create a constructor function and include any properties inside of this. To add methods to the class use the prototype protocol ie. className.prototype.MethodName. [code snippet] The Class can then be instantiated and used as follows: [code snippet]

READ MORE