How can I access to the name of my plug-in ?

  • Hi,

    I'm tring to make a simple plug-in, to read a sound.

    Code
    function startup_plugin(event:Event):void
    {
    	var my_Sound: String = krpano.get("hotspot[name_of_hotspot].son");
    	snd = new Sound(new URLRequest(son));	
    }

    But the thing is :

    How can I access dynamically to my plug-in ?

    I mean, if I put the name of my plug-in, it's OK. But I would like to retreive to the name inside my

    <hotspot name="abc" url="myplugin.swf" son="sound.mp3"> dynamically. Something with .parent maybe ?

    Do you know to do that ?

    I look in combobox.fla, but I don't find the solution.

    Thanks you very much !

  • Hi,

    to get the "name" use the "PLUGINEVENT_REGISTER" event:

    you can also access all other attributes or subnodes of this plugin in this way

    best regards,
    Klaus

Participate now!

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