- Home /
Question by
Tutankhamen · Apr 04, 2013 at 02:02 AM ·
flash
Unable to start Unity compiled swf from other swf
I'm trying to start unity compiled swf file from other swf file, but I always get this error:
Fatal Error : ReferenceError: Error #1069: Property setProgramConstantsFromByteArray not found on flash.display3D.Context3D and there is no default value.
at com.unity::UnityNative$/Ext_Stage3D_Context_Set_ProgramConstants()
at com.unity::UnityNative$/_ZN9GfxDevice14BeforeDrawCallEb()
at om.unity::UnityNative$/_ZN14GfxMolehillVBO7DrawVBOERKN9ShaderLab14ChannelAssignsEmm16GfxPrimitiveTypemm()
at com.unity::UnityNative$/_ZN8DrawUtil11DrawMeshRawERKN9ShaderLab14ChannelAssignsER4Meshi() at com.unity::UnityNative$/_ZThn28_N12MeshRenderer6RenderEiRKN9ShaderLab14ChannelAssignsE()
at com.unity::UnityNative$/_ZN13BatchRenderer5FlushEv() \
at com.unity::UnityNative$/_Z25DoForwardShaderRenderLoopR23ForwardShaderRenderLoopR17RenderLoopContextR13dynamic_arrayI16RenderObjectDataLj4EL18MemLabelIdentifier52EEbbP13RenderTextureb()
at com.unity::UnityNative$/_Z12DoRenderLoopR10RenderLoop13RenderingPathRSt6vectorI11VisibleNodeSaIS3_EEbP6ShaderRKSs()
at com.unity::UnityNative$/_ZN6Camera6RenderEiP6ShaderRKSs()
at com.unity::UnityNative$/_ZN13RenderManager13RenderCamerasEv()
at com.unity::UnityNative$/NativeExt_PlayerLoop()
at com.unity::UnityContentInternal/playerLoop()
at com.unity::UnityContent/onEnterFrame()
Any idea what could it be?
Thank You!
Comment
Best Answer
Answer by diegoleao · Jun 12, 2013 at 12:43 AM
It happened to me today, and the problem was that I was using an external compiler to create a loader for my game (which is fine), but my external compiler was using a DIFFERENT FLASH VERSION to compile to.
Once I chose the same version (11.2), it worked.
Answer by RalphH · Jun 21, 2013 at 01:13 PM
You need to set the correct swf version / player version on the swf you are loading it in. In this case 11.2
Your answer