Jump to content

[bug report (?)] remove MovieClip with onComplete-Callback


Kuboid
 Share

Recommended Posts

Hello guys,

 

Im not sure if it is a pixi-bug or my own code but maybe you can evaluate this better than me ;)

 

I created a MovieClip with an onComplete callback to remove itself.

Works fine, but as soon as there are more MovieClips, pixi throws an error:

 

Uncaught TypeError: Cannot call method 'updateTransform' of undefined pixi.js:3126

PIXI.Stage.updateTransform pixi.js:3126

PIXI.WebGLRenderer.render pixi.js:4460

animate (index):24

 

Looks like that the MovieClip is removed and pixi still wants to call updateTransform.

The easy way is to put tons of if(indexOf(mc) != -1)'s to the compiled pixi code but that cant be the correct way to do it ;)

 

You can get the lines here:


or here:


 

Thank you in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...