In PHP, print_r dumps the array data nicely in readable format but there’s no such thing in Flash. The closest is the following.
For numerically indexed arrays, use following:
trace(array);
//or
trace(array.join());
For associative arrays in Flash, you have to use for in loop like this:
for (var a:Object in array){
trace(a + " : " + array[a]);
}
Hope that helps.
Cheers!
Author: Ali Qureshi
I am a web & mobile app developer based in Lahore. I have been developing creative, interactive, usable & successful web apps, web portals, php and Flash action scripting, REST apis, WordPress plugins & themes. In recent years, I have worked on Ionic, Angular and TypeScript for hybrid mobile apps, Flutter & Dart, React & React Native, and Swift native iOS mobile app development.
Awesome post. I was looking for a way to step through objects on stage and this did the job.