Re-using data in several scenes ?

  • Hi,

    Well i've got a lot of scenes,
    each scenes call an include (xml file), but it's seems slowing down starting on iPad,
    (10 sec. vs 2s start, and that's not about loading because i test on local mode in iPad with Goodreader app. )

    Then i wonder how to add the content of my xml on top of the scenes (same xml instead of include/call this xml)
    And call this content in each scene

    -------xml file ---
    Data

    --
    Scene 01

    Data
    --
    Scene 02

    Data
    --

    Etc...

    -----end of xml file---

    for some reasons i cannot use keep=true

    Any advices, ideas ?

    Thanks

  • Ok but how do you call your data in each scene ?
    The way as it was an include.

    I mean , since data elements are ignored during xml parsing,
    You have to get your data parsed at least once, no ?

    Thanks

    May be that's not very clear, i experiment and go back later on

  • No luck, *sad*

    I try to copy my data in every scenes, but nothing works :

    <include url="data[mydata].content"> or <include url="%CURRENTXML%data[mydata].content">
    Throw me IO Error

    I've tried too to copy the data in an action in the scene OnStart like this :
    txtadd(scene[myscene].content, get(data[mydata].content));
    Not works either

    When i trace my data, i can see it in the log,
    But no way to add back in my scenes

    I need a hand.. Or two *smile*

    Thanks

  • Hi,

    there is a misunderstanding, these codes are completely wrong.
    There is no relation to xml including.


    Try it this way:

    The <data> elements will be accessible from everywhere. Either just refer to them in the textfield html/css settings or when access them in actions code via data[name].content.

    Best regards,
    Klaus

Jetzt mitmachen!

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