You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "sachagriffin" started this thread

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Sunday, April 20th 2014, 6:25pm

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

Tuesday, April 22nd 2014, 7:07pm

Hi,

that should still work of course...

Which example do you mean?

Best regards,
Klaus

  • "sachagriffin" started this thread

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Tuesday, April 22nd 2014, 8:00pm

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" started this thread

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Tuesday, April 22nd 2014, 10:53pm

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.

Source code

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

Wednesday, April 23rd 2014, 9:36am

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

Similar threads