- BObject
Class: BObject
- Module
- Global
- Defined In
- global.js
- Subclasses
- BArray
- ActionManager
- Action
- Animation
- AnimationCache
- Director
- EventDispatcher
- Node
- Preloader
- RemoteResource
- SpriteFrame
- SpriteFrameCache
- Texture2D
- TextureAtlas
- Timer
- TMXLayerInfo
- TMXMapInfo
- TMXObjectGroup
- TMXTilesetInfo
- Plist
Public Properties
| Property | Defined By | |
|---|---|---|
| Expand id |
id : Integer
<read-only>
Unique ID for this object
|
BObject |
Public Methods
| Method | Defined By | |
|---|---|---|
| Expand BObject |
new
BObject ()
:
BObject
<constructor>
Returns
|
BObject |
| Expand bindTo |
bindTo (key:String,target:BOject,[targetKey:String],[noNotify:Boolean])
:
void
Bind the value of a property on this object to that of another object so
they always have the same value. Setting the value on either object will update
the other too.
Arguments
Returns
|
BObject |
| Expand changed |
changed (key:*)
:
void
Arguments
Returns
|
BObject |
| Expand create |
create ()
:
BObject
<static>
Create a new instance of this object
Returns
|
BObject |
| Expand extend |
extend ()
:
Object
<static>
Create a new subclass by extending this one
Returns
|
BObject |
| Expand get |
get (key:String)
:
*
Get a property from the object. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand get |
get (key:String)
:
*
<static>
Get a property from the class. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand set |
set (key:String,value:*)
:
void
Set a property on the object. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand set |
set (key:String,value:*)
:
void
<static>
Set a property on the class. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand setValues |
setValues (kvp:Object)
:
void
Set multiple propertys in one go
Arguments
Returns
|
BObject |
| Expand unbind |
unbind (key:String)
:
void
Remove binding from a property which set setup using BObject#bindTo.
Arguments
Returns
|
BObject |
| Expand unbindAll |
unbindAll ()
:
void
Remove all bindings on this object
Returns
|
BObject |
Private Members
This class has no private members.