1

Topic: Error when embedding in Flash project

Hi

I am trying to embed tiltviewer-pro into a flash project. When doing so I get the following error...


return types dont match
   virt void away3d.core.render::IRenderer/away3d.core.render:IRenderer::render()
   over Array away3d.core.render::QuadrantRenderer/render()
VerifyError: Error #1053: Illegal override of QuadrantRenderer in away3d.core.render.QuadrantRenderer.

    at away3d.core.render::Renderer$/get CORRECT_Z_ORDER()
    at TiltViewer/init()
    at Preloader/initMainApp()
    at Preloader/onEnterFrame()


I have two other 3D type components in the project (DockMenu 3D by Digicrafts) and (3D Carousel by AFComponents) which work fine together.

It seems there is a conflict with these and tiltviewer for some reason.

I get the same error when adding another 3D component to the example FLAs supplied with tiltviewer.

Does anyone know a reason for this?

Thanks in advance.

Re: Error when embedding in Flash project

Possibly the other components are using a different version of the Away3D library which is inccompatible with the version used by TiltViewer.

Try replacing the load SWF code in the example FLA with this:

//load TiltViewer SWF

//keep TiltViewer code separate
var loaderContext: LoaderContext = new LoaderContext();
loaderContext.applicationDomain = new ApplicationDomain(null)
            
var ldr:Loader = new Loader();
addChild(ldr);
var url:String = "TiltViewer.swf"; 
var urlReq:URLRequest = new URLRequest(url);
ldr.load(urlReq,loaderContext);
Felix Turner
SimpleViewer Support Team.

3

Re: Error when embedding in Flash project

Hi Felix

Thank you for your fast response. The code you supplied has enabled me to get this working.

Thanks again!