≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Strange problem
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]falcon12[/b] wrote: Without the commented (//) line this recursive tree's node search function works well and find all scenes nodes. with it, CC says ("bad node name") and stop ! TableauBoutons =[]; RecuperePosition = function(nom_objet) { var count = ccbGetSceneNodeChildCount(nom_objet); if (count>0) { for(var i=0; i<count; ++i) { var child = ccbGetChildSceneNode(nom_objet, i); var s = ccbGetSceneNodeProperty(child, "Name"); if (s.substr(0,6)=="bouton") { // TableauBoutons.push(s); } RecuperePosition(child ); } } } var root = ccbGetRootSceneNode(); RecuperePosition(root);[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact