Game Development Community

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++?

#1
07/24/2005 (6:05 am)
You should try to look at www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7119 this component. It is possibly the closest you will come. It already supports fscommand. GameSWF doesnt (yet) fully support arrays though, so you might have to recode some of the actionscript to get it working