≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
SoundFileName - Propert does not exist
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: Well, you have a mistake in the line when you are getting the Child node. you have should have used it like this ccb[b]Get[/b]ChildSceneNode() you might have forgot to put "Get" there, that was resulting in no sound file, means there is no SoundFileName property exist. here is updated code if you want. [code] var folderNode = ccbGetSceneNodeFromName("folder"); var myArray = []; var itemCount = ccbGetSceneNodeChildCount(folderNode); for (var i=0; i< itemCount; i++) { child = ccbGetChildSceneNode(folderNode, i); var strSFName = ccbGetSceneNodeProperty(child, "SoundFileName"); print("strSFName="+strSFName); myArray.push(ccbGetSceneNodeProperty(child, "SoundFileName") ); }; [/code] hope that helps *holy*[/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