How to Load KRpano.swf in Flex using SWFLoader component

  • I am trying to load KRpano.swf using SWFLoader in Flex-

    <mx:SWFLoader id="sampleSWFLoader"
    complete="sampleCompleteHandler(event)" width="400" height="400" source="krpano.swf"/>


    It is giving blank page,nothing is displayed.

    Please do suggest.


    Thanks.


    Abhilash

  • Hi,

    sorry, that is not possible,
    krpano isn't designed for such usage,

    currently there is only one way to load krpano into other flash apps,
    an example for that is included in the current viewer download package
    in the folder "examples\as3-interface\flash-cs4-embed-example",

    best regards,
    Klaus

  • Hello again,
    Thanks for the response.Yes i did used this example, but here we require the direct load using the flex loader and pass krpano.xml as parameters with it.
    Again,Thanks for the update and response.
    Abhilash

  • Thanks for the responses.Just one more point i wanted to highlight here -
    In this example we just have files such as embedexample.swf & embedexample.fla.But i need to understand how they did created this.Basically cannot edit it just simply view it like normal swf.
    Please suggest if there are any options in this context( embedexample).
    Thanks again.
    Abhilash

  • Hi,

    the example code is in the Flash CS .fla file,

    here the basic loading code itself:

    best regards,
    Klaus

  • Hello again,
    Thanks for the response.I tried using this ,as soon as page loads it throws this error -
    ReferenceError: Error #1056: Cannot create property loadfile on krpano_as3_interface.

    at krpano/_rdy()
    at kflashpano::Kpano/kpanoReady()
    at kflashpano::Kpano/kengineReady()
    at krpano.Kengine::KengineInterface/f10ready()
    Please do suggest how to proceed further.
    Thanks.
    Abhilas

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!