Clickable hotspot dispatches Event

  • Hi
    i need to develope a "history" plugin, with 2 buttons (back, forw)
    For example made in it public method (setter)

    Code
    public function set info(val:String):void
     {
       myTextArea.appendText("\nHISTORY INFO: "+val);
      }


    But i cant find how i can run this setter-method from xml
    Here is it

    Code
    <scene name="scene101" 
     	onstart="set(plugin['history'].info,'testtext4');history.info='testInfo'"
    		 ...
    		>
    <plugin name="history" url="%SWFPATH%/plugin/HistoryTest.swf" rootpath="" preload="true" />


    How can i set plugin's property (setter info, in my case) from XML ? Maybe i'm wrong, please show me how to do this.
    Maybe i need to dispatch event to krpano after user's click on hotspot and to catch this event from my "history" plugin?

Jetzt mitmachen!

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