Skip to main content
John_Dammon
Participant
July 21, 2018
Answered

[AS2] Is there any documentation on how to communicate with flash using the invoke XML?

  • July 21, 2018
  • 2 replies
  • 699 views

I'm trying to communicate with flash using Visual Basic. In my flash I have this:

ExternalInterface.addCallback("testFuncArray ", this, testFuncArray);

ExternalInterface.addCallback("testFuncString ", this, testFuncString );

function testFuncArray (_params) {

     fscommand('_array', _params.length);

}

function testFuncString (_param) {

     fscommand('_string', _param);

}

And in my Visual Basic I have this

xWin.CallFunction("<invoke name=""testFuncString"" returntype=""xml""><arguments><string>bleep</string></arguments></invoke>")

xWin.CallFunction("<invoke name=""testFuncArray"" returntype=""xml""><arguments><array><string>bleep</string></array></arguments></invoke>")

Invoking testFuncString works, but invoking testFuncArray causes an error, and I am 95% sure it is just because I have the XML for it wrong. I was wondering if anyone has any documentation for how this XML works?

This topic has been closed for replies.
Correct answer John_Dammon

Nvm I found what I was looking for Adobe Flash Platform * Using the ExternalInterface class

2 replies

John_Dammon
John_DammonAuthorCorrect answer
Participant
July 21, 2018
kglad
Community Expert
Community Expert
July 21, 2018

this is the best vbscript injection article imo, JavaScript and VBScript Injection in ActionScript 3

John_Dammon
Participant
July 21, 2018

I don't think this is what I need, thanks anyway though.