Sie sind nicht angemeldet.

Stefan.L

Schüler

  • »Stefan.L« ist der Autor dieses Themas

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

1

Freitag, 30. November 2012, 19:59

(SOLVED) scrollingtextfield - show on click

Hello!

I am using the nice scrolling textfield by krpano. http://krpano.com/examples/10815/example…gtextfield.html

I have made it hidden by defalt (with Visible="false") and now open it with a click on a button - this works very well flash but in html5 the text (<data name="htmldata">) are not visible.

I have googled and looked thru load "set" and everything i can think of.

Anyone have a clue i am all yours. Any help appreciated!
Best regards - Stefan

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Stefan.L« (12. Dezember 2012, 13:51)


Stefan.L

Schüler

  • »Stefan.L« ist der Autor dieses Themas

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

2

Freitag, 7. Dezember 2012, 21:30

Hi!

Please.
I have been trying to find a solution to this.
Anyone know if it is possible?

Thanks
Best regards - Stefan

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Freitag, 7. Dezember 2012, 22:09

html5 textfields don't work when they aren't visible.
set it visible and then set the html attribute again.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Stefan.L

Schüler

  • »Stefan.L« ist der Autor dieses Themas

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

4

Freitag, 7. Dezember 2012, 22:22

Thank you. By this said does it mean that it is possible to show scrollingtextfield for instance on click in both flash and html5?
Where can I read about this?
Best regards - Stefan

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Stefan.L« (7. Dezember 2012, 22:42)


Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

5

Samstag, 8. Dezember 2012, 00:19

Of course just set the textfield visible as I've said and set the HTML again.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Stefan.L

Schüler

  • »Stefan.L« ist der Autor dieses Themas

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

6

Sonntag, 9. Dezember 2012, 11:00

Great news! The scroll field shows up like supposed, it is only the HTML content that I can't show again but I am on the right track, I just have to find the way to "set" or load the HTML content again.
Best regards - Stefan

7

Montag, 10. Dezember 2012, 10:36

Just set the HTML-attribute again for the textfield-plugin, just like Sacha said! This can be done by an action, mouseover, mouseclick etc....

onclick,set(plugin[whatever].html,......

Sometimes the plugin wont get the new html-attribute setting it directly if using HTML5. If this happens, write the full html-attribute first into a variable txtadd(blabla,'data:','your_text',get(or_path_to_variable_containing_the_text));

and then set the plugins html-tag
set(plugin[whatever].html,get(blabla));

Best regards
Nupsi

Stefan.L

Schüler

  • »Stefan.L« ist der Autor dieses Themas

Beiträge: 102

Wohnort: Sweden

Beruf: Photography/ webdesign

  • Nachricht senden

8

Montag, 10. Dezember 2012, 17:55

YES!! Finally it shows in html5:) Tnx Sacha and Nupsi!
Here is how i did - is this correct - if so i can help others?


<action name="displayHelp">
switch(layer[textbox].visible); set(layer[textbox].alpha,0); tween(layer[textbox].alpha, 1);
txtadd(layer[text].html,'[p]',get(data[helptext].content),'[/p]');
</action>
<action name="closeHelp">
switch(layer[textbox].visible);
</action>
Best regards - Stefan

9

Dienstag, 15. Januar 2013, 12:47

You´re welcome *smile* And a great idea setting the layers name and it´s attribute directly inside the txtadd. I used to set this seperately - at least until now *g*

BR
Nupsi