View Mode: Normal | Article List

Problem with removeChild in as3 (Error #2025)

[ 2009-01-24 14:10:26 | Author: liuhuan ]
Many people might encounter the problem called Error 2025 when removing a display object from stage in as3. I got this error today and the code reads like below:
Quote
var a:Sprite = new Sprite();
addChild(a);
a.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDownHandler);
function onEnterFrameHandler(e:Event) {
  a.x++;
  if (a.x>20) {
...

Read More...

under construction

[ 2009-01-18 09:27:19 | Author: liuhuan ]
uploads/200901/26_092726_img_0331.jpg

under construction

[ 2009-01-18 09:26:38 | Author: liuhuan ]
uploads/200901/26_092707_img_0316.jpg

Cell Drawing

[ 2009-01-02 23:03:17 | Author: liuhuan ]
uploads/200901/02_230457_cells.gif