views:

651

answers:

1

I am loading an as2 swf into an as3 swf. When I am debugging the as3 application (I am using flex builder as my ide) I can see the debug output from the as2 app. You can't call functions or properties of an as2 swf from within an as3 swf so I have no way of knowing what is going on within the as2 swf programmatically.

Is there a clever workaround whereby I can consume the debug output from the as2 swf from within my as3 swf? What api is flexbuilder plugging into to display the debug output? Can I use that in my as3 app?

I tried the swfBridge but ran into limitations after a week of trying. This would be a great workaround.

+1  A: 

How about LocalConnection? Here's an example that may or may not suit your needs.

dirkgently
The problem with LocalConnection is that I am going to have more than 1 instance of the swf loaded up. I tried that and it got real buggy - locking up my browser etc. Trying to find another way.
Hate to break it to you -- swfbridge uses LocalConnection :( So the problems may be related. I was hoping that you may just avoid any SWFBridge bugs by talking to you LocalConnection directly. Anyway looks like this is a limitation of LocalConnection.
dirkgently
Looks like this'll be difficult -- but I'll dig some more and see if I got anything better.
dirkgently