You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method of removeAll() has bug, it can't clear all child.
for each(var s:DisplayObject in stack)
{
removeView(s, dispose);
}
Dynamic delete element of stack in for-each,it will be skip some element.
The correct approach should be:
for(var i:int = stack.length - 1; i >= 0; i--){
removeView(stack[i], dispose)
}
The text was updated successfully, but these errors were encountered:
The method of removeAll() has bug, it can't clear all child.
for each(var s:DisplayObject in stack)
{
removeView(s, dispose);
}
Dynamic delete element of stack in for-each,it will be skip some element.
The correct approach should be:
for(var i:int = stack.length - 1; i >= 0; i--){
removeView(stack[i], dispose)
}
The text was updated successfully, but these errors were encountered: