Using bHive

bHive has been written with OOP JavaScript techniques, so a fundamental knowledge of programming JavaScript this way is needed before you start to use bHive.

bHive uses constructors to create objects, this is a very similar method to the way Corona SDK and Titanium Appcelerator create their objects, if you use these systems then the way bHive works will be very familiar to you.

The constructors are just basic JavaScript objects that are passed to bHive to create the needed object from, this method of constructing objects applies to all of bHive’s core classes and follows the form:

myObject = bHive.create[Class Definition]({
    property1: value1,
    property2: values2,
    ...
});

The properties of each object are exposed in the same fashion that ActionScript offers, there isn’t any specific getters/setters for each property on an object unless otherwise stated within this documentation.

What does this mean? Well, during the User Loop (see The Loops section) you can alter pretty much any value of an object and it will reflect upon it when you call its draw method.