nested attributes of the callerobject are null after krpano.call

  • I create a krpano base object (named 'caller') under my AS3 plugin object, and fill it with data that I want to use from XML. This data is often a nested combination of krpano base objects and arrays. I then pass 'caller' to krpano XML code via the callerobject parameter in krpano.call. I am able to access any attribute at the top level of 'caller', but nested attributes are null.

    To illustrate the problem, imagine 'caller' had the following structure:

    caller
    - num = 10
    - strings
    -- s1 = 'Hello'
    -- s2 = 'Krpano'

    I am able to get(num) and get(strings) from krpano XML, but get(strings.s1) and get(strings.s2) both return null. These nested attributes are definitely not null in caller when passed.

    Any insight would be very helpful.

    Regards,

    Fred.

    [edit 18/04/2013: fixed up example to make it clear that s1,s1 are attributes of strings]

    Einmal editiert, zuletzt von fredp (18. April 2013 um 00:19)

  • Hi,

    sorry, but accessing 'nested attributes' is currently not possibly (mainly for performance reasons).
    At the moment it would be necessary to use the 'full path' here.

    But this limitation might change in future of course.

    Best regards,
    Klaus

Jetzt mitmachen!

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