Adventure Game Interface Help

  • I do not have much experience in programming with AS3, so bear with me. Basically I need a way to to create a swf layer over the panorama in which I can load external swf files whenever a hotspot is clicked. I assume you do this by creating a plugin in Flash, but I am not sure if it is treated like a layer, and if so, how the two layers would communicate. I need this so I can incorporate flash puzzles and store inventory variables to make this an adventure game.

    I appreciate any help.

    Einmal editiert, zuletzt von pcehnaids (20. November 2009 um 04:04)

  • Hi,

    yes, you could build a swf with flash and include it as plugin,
    and then control krpano from the plugin, e.g. load panos, create hotspots, change values and so...
    the comunication between krpano and the plugin is done via the krpano_as3_interface,

    here is an older example for Flash CS3 (see the download button in the example to download the .fla)
    https://krpano.com/examples/cs3plugin/

    for more details have also a look here:
    https://krpano.com/docu/plugins/
    https://krpano.com/docu/programming/

    best regards,
    Klaus

  • Thanks for the great response; this is just the panoramic engine I was looking for. Sadly, I have another question:

    Is it possible to retrieve the "name" of an activated hotspot inside of flash?

    For example: If you click on a hotspot named "Table", it would run a function in flash that would open up a file called "Table.swf".


    And also, for anyone else wanting to create a flash based panoramic adventure game, I will be posting my code once I finish, maybe even a tutorial. *smile*

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!