CloudKidStudio / PixiFlash

A library for bridging CreateJS animations from Flash for use in Pixi.js
http://cloudkidstudio.github.io/PixiFlash/docs/
MIT License
78 stars 7 forks source link

Animate CC 2015.2 #5

Open francoagusto opened 8 years ago

francoagusto commented 8 years ago

Hi, I found the new version of Animate CC, in this version the publish of the atlas is embed in the output script, Do you any problem with this new feature of Animate CC?

Cheers Franco

andrewstart commented 8 years ago

Unfortunately, that change was a move towards making the HTML5 documents easier to use in the also published HTML file, and I don't see a good way to deal with it.

I would suggest one of two options:

  1. Don't have Animate combine your images into a spritesheet, instead publish them as separate images and use a tool like TexturePacker to combine them into a spritesheet, and when you load them add each sprite to window.images so that your .js file can find them.
  2. If you would prefer that Animate continue packing images into spritesheets, copy the spritesheet information from the published .js file into a .json file for you to load separately.