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.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

1

Tuesday, September 25th 2012, 3:27pm

close textfield - text stays visible

Hi,
I'm using the scrollable textfield SWF that was kindly provided to us by jeffouille although I'm not sure if this is relevant.
The issue I am experiencing is, when I close the textfield using this simple action:

<action name="close_textfield">
tween(plugin[text_field].alpha,0,,
set(plugin[text_field].visible,false);
);
</action>

The textfield itself disappears but the text stays visible.

Kev

EDIT: Sorry, this should be in the beginners questions section.
EDIT 2: ...ahh.... it is... *unsure*

This post has been edited 1 times, last edit by "Kev-in-spain" (Sep 25th 2012, 3:37pm)


Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

2

Wednesday, September 26th 2012, 10:32am

close textfield - text stays visible

I've found a workaround but I'm sure there has to be another (correct) way to do this.

Here's the workaround:

<data name="blankhtml">
<p> </p>
</data>

Then add into the 'close_textfield' action:

set(plugin[text_field].html,data:blankhtml);

It means adding 'set(plugin[text_field].html,data:1);' into my 'show_textfield' action to reset to the correct text if the user clicks on the info button more than once.
It works for this occasion but, as I say, I don't think this can be the correct way. I'd be grateful if anyone can put me straight.

Kev