Sie sind nicht angemeldet.

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

1

Mittwoch, 22. Oktober 2014, 03:30

Javascript Interface Whitespace Issues Flash vs HTML5

The javascript interface interprets whitespaces differently in Flash vs HTML5 and causes problems in Flash.

Assume you have the following code:

Quellcode

1
2
3
set(kdata,'Tasty');
js(clicky.log(get(kdata))); 
js(clicky.log( get(kdata) ));


In the first case with both HTML5 and Flash what gets passed to javascript is: click.log('Tasty')
In the second case HTML5 passes click.log('Tasty') but Flash passes click.log('get(kdata)')

IMO the HTML5 and Flash implementations really should be consistent and, unless I missed it, better documented.

benji33

Fortgeschrittener

Beiträge: 244

Wohnort: France

Beruf: Senior Software engineer

  • Nachricht senden

2

Mittwoch, 22. Oktober 2014, 10:23

Confirmed on console.log
Flash player with

Quellcode

1
2
3
set(kdata,'Tasty');
		js(console.log(get(kdata))); 
		js(console.log( get(kdata) ));

Return

Quellcode

1
2
"Tasty"
"get(kdata) "

3

Mittwoch, 22. Oktober 2014, 16:02

Hi,

this will be fixed in 1.18.1.

Best regards,
Klaus