I use double loops and Array.at() to read data for condition , but I can't get values of Array which its data load from .json file.
This problem occurs in my project , so I created a new project to test , and then there is the same problem in the new project , I think it was not my mistake .
Attach a Capx
https://drive.google.com/file/d/0B06nox ... sp=sharing
Description of Capx
In the test.Capx , there are two Arrays,two ProgressBars,an AJAX object and array.json file.
data of Array1 load from array.json which is requested by AJAX , data of Array2 are generated by random() fuction . Then Using double loops to get values of both Arrays ,and let two ProgressBars adding the values to current progress value .
Steps to Reproduce Bug
- Use AJAX to request .json file in project .
- Create Array then load json string fom AJAX.lastdata .
- use loops to get value of Array , then try any method (eg. condition) to reference Array .
There is weird that I can see values from Array1 in Inspector(load from array.json correctly) , but ProgressBar Can not get the values .
ProgressBar Can get the values of Array1,then adding the values to current progress value,showing performance correctly.
- Chrome: YES
- FireFox: YES
- Internet Explorer: YES
Operating System and Service Pack
Windows 7 64bit Service Pack 1
Construct 2 Version ID