Jump to content

[PIXI 1.5.3] MovieClip.fromFrames() ... undefined?


Recommended Posts



This bit of code is giving me "undefined is not a function" in Pixi 1.5.3 dev branch

  var frames = ["0.png", "1.png", "2.png"];  var sprite = PIXI.MovieClip.fromFrames(frames);

Am I doing something wrong? 

I'm getting the same error with PIXI.MovieClip.fromImages.



Link to comment
Share on other sites

You're not doing anything wrong, it's a mistake in PIXI. It is currently fixed in the dev branch (the fix was committed on May 21st, https://github.com/GoodBoyDigital/pixi.js/issues/750).


Until 1.5.4 is released you can just use:

var frames = ["0.png", "1.png", "2.png"];var sprite = PIXI.MovieClip.prototype.fromFrames(frames);

or, if you're working from the source and building PIXI yourself, just change the PIXI.MovieClip.prototype.fromFrames and PIXI.MovieClip.prototype.fromImages declarations (in MovieClip.js) to PIXI.MovieClip.fromFrames and PIXI.MovieClip.fromImages

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.

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.


  • Recently Browsing   0 members

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