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*

    Edited once, last by Kev-in-spain (September 25, 2012 at 3:37 PM).

  • 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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!