Skip to content

Commit

Permalink
Merge pull request cocos2d#275 from pierrepaullavoie/upstream-005
Browse files Browse the repository at this point in the history
Fix small typos in documentation
  • Loading branch information
Viktor Lidholt committed Mar 18, 2013
2 parents 1edde94 + 608d2f0 commit c7267ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/4a. Connecting with Cocos2d JS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ For your convenience, CCBReader can also wrap your node graph in a scene. To loa
var myScene = cc.BuilderReader.loadAsScene("MyScene");

### Passing an Owner Variable
Sometimes you need to be able to access member variables from and get callbacks to another object than the root node of a ccb-file. To do this you will need to pass a *owner* to the CCBReader. To get the variable or callback assigned to the owner, make sure that you've selected owner when declaring the member variable name or callback in CocosBuilder. The call the *cc.BuilderReader.load* or *cc.BuilderReader.loadAsScene* method but add an extra variable with the owner.
Sometimes you need to be able to access member variables from and get callbacks to another object than the root node of a ccb-file. To do this you will need to pass a *owner* to the CCBReader. To get the variable or callback assigned to the owner, make sure that you've selected owner when declaring the member variable name or callback in CocosBuilder. Then call the *cc.BuilderReader.load* or *cc.BuilderReader.loadAsScene* method but add an extra variable with the owner.

// Setup myCallbackObject somewhere in your code;

Expand Down
2 changes: 1 addition & 1 deletion Documentation/6. Working with Animations.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ To programmatically control the animations you create with CocosBuilder you will
CCNode* myNodeGraph = [CCBReader nodeGraphFromFile:@"myFile.ccbi"];
CCBAnimationManager* animationManager = myNodeGraph.userObject;

The action manager will be returned as an autoreleased object. To play back a specific timeline call the *runAnimationsForSequenceNamed:* method. If a timeline is currently playing it will be immediately stopped when calling this method.
The animation manager will be returned as an autoreleased object. To play back a specific timeline call the *runAnimationsForSequenceNamed:* method. If a timeline is currently playing it will be immediately stopped when calling this method.

[animationManager runAnimationsForSequenceNamed:@"My Timeline"];

Expand Down

0 comments on commit c7267ce

Please sign in to comment.