Sie sind nicht angemeldet.

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

1

Sonntag, 20. April 2014, 18:25

textfield event feature broken in 2014-04-03 build

Just tried using the example in the textfield plugin page and it also doesn't work.

Also FYI

set(plugin[textfield].html,data:dataname);

has stopped working and needs to be

copy(plugin[textfield].html,data[dataname].content);
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

2

Dienstag, 22. April 2014, 19:07

Hi,

that should still work of course...

Which example do you mean?

Best regards,
Klaus

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Dienstag, 22. April 2014, 20:00

http://krpano.com/plugins/textfield/#top

<a href="event:showlog(); trace('link clicked');">link</a>

Unless something in my tours causes the new textfield to fail.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

4

Dienstag, 22. April 2014, 22:53

No, I think its just broken..test code is below.

It won't work in at least chrome flash (INFO: Flashplayer WIN 11.9.900.170 PlugIn (debug))

html5 works. maybe its flash debug.

Quellcode

1
2
3
4
5
6
7
krpano.call("addplugin(test)");
krpano.call("set(plugin[test].url,%SWFPATH%/plugins/textfield.swf)");
krpano.call("set(plugin[test].html,<a href="event:showlog(); trace('link clicked');">link</a>)");
krpano.call("set(plugin[test].visible,true)");
krpano.call("set(plugin[test].alpha,1)");
krpano.call("set(plugin[test].align,center)");
krpano.call("set(plugin[test].enabled,true)");
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

5

Mittwoch, 23. April 2014, 09:36

Ahhh... okay, there are two different questions here

I had only seen this one here:
set(plugin[textfield].html,data:dataname);

has stopped working and needs to be

copy(plugin[textfield].html,data[dataname].content);
And this should still work!


The other problem with the events is already known - the problem was to get a 'handcursor' over then text like in HTML5 - in the Flashplayer there was no explicit way to enable this, so this was done internally by disabling the mouse events for the textfield element. This way it works, but unintentionally also disabled the links.

In the next release (1.17.1) this will be fixed again, then the text itself will be only disabled for mouse events when the html content doesn't contain any links.

A workaround for the moment would be enabling the text selection by adding - selectable="true" - then the text itself will be enabled and the links will work too.

Best regards,
Klaus

Ähnliche Themen