我试图修改一个口齿伶俐的故事情节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;
}
现在我要删除的代码有些文本域在创建后请帮助解决这个问题。
您只需使用[removeChild()](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObjectContainer.html#removeChild( )),例如...我不明白你的问题到底是什么?! – akmozo
您显示的代码不会创建或显示文本字段。另外,'textField'属性不是标准的AS3'TextField',因为它有很多'TextField'上没有的属性。我不认为任何人都可以用你提供的信息来帮助你。也许Articulate可以帮助你。 – Aaron