Don't believe in Debugger too much

xiaoxiao2021-03-06  41

Don't believe in Debugger too much

Flash's Debugger purchase is powerful, it is very convenient to debug, but it is not too believed in the MovieClip list, there are two cases:

1, there is on the stage, there is no list

This is caused by a bug, moves the MC to a depth with swapdepths, then play the timeline backward, then (one frame or multiple frames) to play SwapDepths after playing SwapDepths with gotoiststop or gotoandplay, Flash will copy a new one. MC comes out. At this time, there are two MCs on the stage, but only one of Debugger is displayed. Download test FLA

PS: Solve the bug of SwapDepths GotoAndstop, you can use 2004 depthmanager.setDepthto ()

2, there is no on the stage, there is a list

Newly built two frames of Flash, place an MC in the first layer, name MC. Write AS: mc._name = "mca" in the second layer of first frame;

OK, press CTRL Shift Enter debug, you can see that there are two MCs in Debugger, all attributes are the same, change one of the _visible properties, two MC will disappear. This shows that the two MCs displayed by Debugger are the same MC.

转载请注明原文地址:https://www.9cbs.com/read-72096.html

New Post(0)