Data from ActionScript to C
by Haris Rizopoulos · in Technical Issues · 07/24/2005 (5:30 am) · 1 replies
Hello
First of all, let me tell you that I am not a programmer (yet). I have some experience with ActionScript, but that's hardly relevant to Torque (I understand you need to know C++ to use TorqueScript, is that so?). We need to pass some data from a Flash movie to Torque or to a C++ programme which will act as a bridge between ActionScript and Torque. I'd like to know if anyone has done something like that before and if it is possible. Let me be more specific:
Say we have an array called characters, its elements being "Barry","Larry","Harry","Murray". I was thinking to use the fscommand in ActionScript to pass these values to a C++ environment. Can this be done? Can I pass the entire collection in one go (as an array) or do I have to pass each element separately and then ask our programmer to reconstruct the arrays in C++?
First of all, let me tell you that I am not a programmer (yet). I have some experience with ActionScript, but that's hardly relevant to Torque (I understand you need to know C++ to use TorqueScript, is that so?). We need to pass some data from a Flash movie to Torque or to a C++ programme which will act as a bridge between ActionScript and Torque. I'd like to know if anyone has done something like that before and if it is possible. Let me be more specific:
Say we have an array called characters, its elements being "Barry","Larry","Harry","Murray". I was thinking to use the fscommand in ActionScript to pass these values to a C++ environment. Can this be done? Can I pass the entire collection in one go (as an array) or do I have to pass each element separately and then ask our programmer to reconstruct the arrays in C++?
About the author
Torque Owner Thomas \"Man of Ice\" Lund