You are not logged in.

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