When i use the remove command it will sometimes crash the game, i don’t what the problem is?
If you are removing a clip, and the instance of that clip is somewhere called after removed. Your code is accessing a null reference of that object.
I also seem to have a remove issue, but the project doesn’t crash… it just freezes for seconds every time I remove one of the orange objects
Another way to remove something is to have it go to and stop on an unexisting frame.
For example, obj1 has 5 frames, and I wanna remove it. I would write:
obj1.gotoAndStop(6);
Frame six is blank, so the object will not be visible in any way, but the code inside of it will run
(but won’t run hitTest, mouse events, and anything that requires the object to be visible)
That is so strange, I have never experience such delay… wow… it is very noticeable from what I’m seeing…
So I believe the delay here is being cause by errors being thrown. This will often slow down the browser.
That makes sense
I experienced the same thing again… but way slower & on a different project