2016-03-18 67 views
0

我试图修改一个口齿伶俐的故事情节SDK(https://www.articulate.com/support/storyline/articulate-storyline-sdk删除动态文本AS3

他们使用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; 
       } 

现在我要删除的代码有些文本域在创建后请帮助解决这个问题。

+0

您只需使用[removeChild()](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObjectContainer.html#removeChild( )),例如...我不明白你的问题到底是什么?! – akmozo

+0

您显示的代码不会创建或显示文本字段。另外,'textField'属性不是标准的AS3'TextField',因为它有很多'TextField'上没有的属性。我不认为任何人都可以用你提供的信息来帮助你。也许Articulate可以帮助你。 – Aaron

回答

0

设置为空? this.textField = null;

+0

我不想删除此文本字段。我想在我的程序中稍后删除所有动态Textfield –

+0

此文本字段仅删除当前选中的文本字段。我还想删除其他文本字段 –