Communication between Flash and C# Using ExternalInterface without TLF text -
After
I am communicating with a flash application using an order like the following: ExternalInterface.call ("Hello" "World")
This is controlled by something like the C # end:
string swfPath = Directory.GetCurrentDirectory () + Path.DirectorySeparatorChar + "test. Swf "; This.axFlash.LoadMovie (1, SWFPath); This.axFlash.FlashCall + = New AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEventHandler (axFlash_FlashCall);
Also as a function
is declared zero axFlash_FlashCall (object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEvent E) {}
axFlash_FlashCal is called OK, as long as the screen that is set to use the TLF text is as a text box. (Any text box, no specific ID) Without a text box, there will be no fire (though ExternalInterface.Avaliable is set to true)
I use CS4 and CS5 to publish, using both flash as output 10 and 9 have tried. None of these things made a difference.
I am using AS3 and .NET 4.0. Has anyone played this before, or is there any idea why TLF text is necessary to work?
I have found that the reason for this is because the TLF text loads before the whole SWF is executed . Without TLF text, it tries to stream the SWF, which apparently breaks external communication.
Does anyone know an easy way to pre-load? My only work solution at this point is to pre-load another SWF.
Comments
Post a Comment