XML attribute read in by Flash - Need Quick Answer! =)

  • if i've got one of these in every scene of my xml:
    <plugin name="sceneManager" scene="entranceAfter" keep="false" />

    how would i read it into my flash?
    var currentPano:String = krpano.get("plugin[sceneManager].name");

    ^that's what i'm trying but it's not working.

    aghhhhhhh

  • Hi mds,

    First, I know near nothing about AS3, so *squint* ....
    But, perhaps this post from Zephyr could be helpful....


    Also, perhaps I am wrong but, your code above:

    Code
    var currentPano:String = krpano.get("plugin[sceneManager].name");


    will retrieve the name of the plugin, so sceneManager...
    Probably you would try to retrieve the plugin[sceneManager].scene value, no?

    Code
    var currentPano:String = krpano.get("plugin[sceneManager].scene");

    Hope this help...

    SAlut.

Participate now!

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