Okay, I have been all over the net trying to figure this one out. You;d think that it would be easy enough. Here is the issue:
I have an swf generated frim Flash CS3 that outputs a variable.
I need to use that variable within Flex.
I can see the output results in the Flex console but cannot capture that variable to reuse within Flex.
Here is my code:
ActionScript Code:
click_mc.addEventListener(MouseEvent.CLICK, reportClick);
function reportClick(evt:MouseEvent):void
{
for(var i:int = 0; i<5; i++)
{
var output:String = new String;
output = "I have been clicked. i = " + i;
output_txt.text = output;
trace(output);
}
}
I need to use output within Flex.