删除动态TextField as3

时间:2016-03-18 11:57:14

标签: actionscript-3 flash sdk textfield articulate-storyline

我试图修改清晰的故事情节sdk。(https://www.articulate.com/support/storyline/articulate-storyline-sdk

他们使用as3并动态创建所有文本字段,如下面的代码

if (this.textField != null)
            { 
                if (m_bWrapListItems)
                {
                    this.textField.Autosize = true;
                    this.textField.Wrap = true;
                    if (m_bAutoNumber)
                    {
                        this.textField.SetHangingIndent(m_strNumber);
                        this.textField.Text = m_strNumber + "\t" + m_strTitle;
                    }
                }
                else
                {
                    this.textField.Truncate = true;
                    this.textField.ClearHangingIndent();
                    this.textField.Text = (!m_bAutoNumber) ? m_strNumber + " " + m_strTitle : m_strTitle;
                }

现在我想在创建后删除一些文本字段请帮助解决这个问题。

1 个答案:

答案 0 :(得分:0)

设置为Null? this.textField = null;

相关问题