Posted at

C++でのgetChildAtの実装例

More than 5 years have passed since last update.

vector<flash::DisplayObject*> children;

flash::DisplayObject* DisplayObjectContainer::getChildAt(const int& index) {
if(index < 0 || index > children.size() - 1) return NULL;
return children[index];
}