Sie sind nicht angemeldet.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

1

Dienstag, 22. April 2014, 09:58

Comma in textfield from action

Hi, I have an action to display text and have a problem with comma.

<action name="showmytext">
set(layer[text].html,%1);
tween(layer[text].alpha,1,1);
</action>

onstart="showmytext(my text, with comma)"

As the html is set thru a variable I understand that comma is not possible to use, so I tried with %2C of , instead but it doesn't work...

Any idea ?

panomaster

Fortgeschrittener

Beiträge: 297

Wohnort: Kobyłka, Poland

Beruf: Virtual Tours - Spherical Panoramas - Krpano developer

  • Nachricht senden

2

Dienstag, 22. April 2014, 14:10

Use quotation signs:

Quellcode

1
onstart="showmytext('my text, with comma')"

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

3

Dienstag, 22. April 2014, 14:28

Thanx panomaster, but I tried this too and nothing is displayed then...

4

Dienstag, 22. April 2014, 19:02

Change additionally also this:

Quellcode

1
set(layer[text].html,%1);


to this:

Quellcode

1
set(layer[text].html,'%1');

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

5

Mittwoch, 23. April 2014, 22:51

Thanx Klaus, perfect !