Forums > Javascript

multiple js objects sharing information

May 25, 2013 | 7:57 am

Read  the Max tutorials about java and the global object, but cannot find out, how  js objects share Infomations. Woulf like to create an array in one js object and share it with another js object.

Thanks for any help!


May 25, 2013 | 8:18 am

The Global object should allow you to do this, otherwise the new Dict object should work too.

May 25, 2013 | 9:06 am

Found the solution for me:

first js pbject:

glob = new Global("bounce");

glob.a_array = new Array;

creating array b_array in second js object, then:

glob = new Global("bounce");



Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Javascript