I’m want to load a unity generated flash swf in my flash cs5.5 as3 file.
When I try to load I get this error.
“SecurityError: Error #2000: No active security context.”
When I load any other swfs or jpegs it loads fine, thanks in advance.
I’m want to load a unity generated flash swf in my flash cs5.5 as3 file.
When I try to load I get this error.
“SecurityError: Error #2000: No active security context.”
When I load any other swfs or jpegs it loads fine, thanks in advance.
This is a site specifically for Unity questions however if you want to play a flash game created in Unity after you have built it there should be a html file that you double click to play
hey guys i found a way to load the unity generated swf successfully using unityshared.swc… though still figuring out how to communicate between them… I was able to from the example file but not from my unity scene with the same script with little modification…
Hey guys found a way to load unity generated swf… bt not able to communicate between flash and the unity swf… i was able to with the example project from this 1
using the same script with little modification im not able to communicate… Im new to both unity and c#, below is the code im using…
`using UnityEngine;
using System.Collections;
public class SendToFlashScript : MonoBehaviour {
public object responder;
void SetResponder(object o)
{
#if UNITY_FLASH
//This sets the responder objcet to the instance as sent by AS3.
FlashHelper.EmitAsm(“SendToFlashScript$responder$ = {0}.responder”, o);
#endif
}
void OnMouseDown() {
Debug.Log("clicked");
#if UNITY_FLASH
if(responder != null){
FlashHelper.EmitAsm("SendToFlashScript$responder$['unityHelloFunction']({0})",this);
}
#endif
}
}`