ComputerPerson_imported
Programmer
Hey guys. I am having a problem while using GetVariable from Javascript to read an ActionScript array. For testing purposes I placed the following code in the first frame of the Flash movie:
cow = new String();
cow = "Moo";
When using GetVariable as follows, the string "Moo" was properly retrieved:
var cowsays = thisMovie("searchbar").GetVariable("cow");
Here's where I'm having the problem. What I am trying to do is read a value from an array in Flash. I changed the code in the first frame of the Flash movie to:
cow = new Array("moo");
However, the following JavaScript code simply returns NULL and can't read the array:
var cowsays = thisMovie("searchbar").GetVariable("cow[0]");
Is it even possible to read an ActionScript array (using GetVariable) from JavaScript or am I doing something wrong? Thanks in advance for your help.
Skylar Givens
cow = new String();
cow = "Moo";
When using GetVariable as follows, the string "Moo" was properly retrieved:
var cowsays = thisMovie("searchbar").GetVariable("cow");
Here's where I'm having the problem. What I am trying to do is read a value from an array in Flash. I changed the code in the first frame of the Flash movie to:
cow = new Array("moo");
However, the following JavaScript code simply returns NULL and can't read the array:
var cowsays = thisMovie("searchbar").GetVariable("cow[0]");
Is it even possible to read an ActionScript array (using GetVariable) from JavaScript or am I doing something wrong? Thanks in advance for your help.
Skylar Givens