Community
UNITY C#: Invoke("doSomething")
SCALEFORM: function doSomething
... flash stuff ...
ExternalInterface.Call("RegisterMovie", ...)
ExternalInterface.Call("OnSomethingFinished")
<next frame>
UNITY C#: SFManager.ProcessCommands
int numCommands = Marshal.ReadInt32(pCommandOffset);
...
for (int i = 0; i < numCommands; i++)
...
OnExternalInterface(movieID, "OnSomethingFinished", pargs, numArgs, sfValueSize)
... will call OnSomethingFinished in C# ...
<still in SFManager.ProcessCommands>
UNITY C#: OnSomethingFinished
Invoke("doAnotherThing")
SCALEFORM: doAnotherThing
... flash stuff ...
ExternalInterface.Call("TheLostCallback", ...)
<back in SFManager.ProcessCommands>
UNITY C#: SFManager.ProcessCommands
... finished handling commands ...
SF_ClearCommandBuffer(numCommands);
<finished processing queued external calls>
Can't find what you're looking for? Ask the community or share your knowledge.