Text field changes acordding to scene

  • Hi,

    it's pretty easy. Put on every scene data and inside the text you wish the textfield to change when entering the scene. Then make action to change the html of the textfield and put it onstart of the scene: Like this:

    <scene name="scene_19" title="19" onstart="action(scene_19text);" >


    <action name="scene_19text">
    set(plugin[textfield].html,data:scene19text) ;
    </action>


    <data name="scene19text">

    <p><font face="arial" size="+3">
    Text of the scene!
    <br /> <br />

    </font>
    </p>
    </data>

    Now repeat for all scenes and when you go from scene to scene, it will change the data of the textfield to the one you direct it from onstart.
    Hope this helped :)


    Regards,

Jetzt mitmachen!

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