Flash 8 external API

Deeko

Lifer
Jun 16, 2000
30,213
12
81
I've gotten my C# app to successfully call a function in flash, and have a value returned. However, I haven't figured out if its possible to do the opposite. I can have flash call a C# function, however, I haven't figured out how to return a value back to flash. Is this possible?
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Using flash in a web browser control or running the stand-alone player?

Flash in a browser has GetURL e.g.
getUrl( "java--s--cript:myfunction(" +myparam+ ");", "_self");

(dashes added to make braindead forum post validator stop whining.)
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
I haven't done any net coding yet, just old school C++ with Win32 & MFC.

Can you add javascript functions to the windows form? if so the GetURL can call them and the functions can then talk to your app.

If no one gives you a better answer you might do some searching at CodeProject.com

 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
I see ... returntype=\"xml\"> ... in the CallFunction code, have you checked Macromedia's docs to see what that means?

Sorry I can't help more than saying to RTFM :( .
 

Deeko

Lifer
Jun 16, 2000
30,213
12
81
I figured it out. Just a function I hadn't found.

control.setreturnvalue("<type>value</type")