Sie sind nicht angemeldet.

1

Dienstag, 22. November 2011, 23:06

Text field changes acordding to scene

Hi,

I have a Vtour, wich I want to display scenen's names on top.

I set the plugin, and the text displays. ok

But want the text to change acordding to each scene. not ok

How can I do that?
»manigordo« hat folgende Datei angehängt:
  • tour.xml (40,85 kB - 82 mal heruntergeladen - zuletzt: Heute, 05:32)

2

Donnerstag, 24. November 2011, 08:38

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,
Jesse Passoja
Passoja design
www.passojadesign.com