preloadjs

Unable to preload and display SVG with CreateJS

别来无恙 提交于 2019-12-30 11:08:10
问题 I am trying to preload a set of SVG objects and display them using CreateJS/PreloadJS. So far I was able to display a SVG object without preloading, but as soon as I use the LoadQueue from PreloadJS, I can't get my sample to work. Does somebody know what I am doing wrong here? Thanks! http://jsfiddle.net/trudeo/05eqqp49/ Javascript var imageManifest = [ { id: "MySvgImage", src: "http://dev.w3.org/SVG/tools/svgweb/samples/svg-files/check.svg" } ]; var stage = new createjs.Stage(document

EaselJS Spritesheet and Bitmap ColorFilterMatrix

浪尽此生 提交于 2019-12-13 04:19:22
问题 I am loading spritesheets individually for each sprite on demand using PreloadJS with JSON files. Now, I would like to apply a ColorMatrixFilter to the Sprites or Spritesheet. After some research I found this snippet from Lanny http://jsfiddle.net/lannymcnie/NRH5X/ where the JSON SpriteSheet definition is within the Javascript code and a reference to the Bitmap cacheCanvas [bmp.cacheCanvas] is used to in the SpriteSheet creation. Now, if I'm using JSON files to define the SpriteSheet, I can't

HTML5: createjs images not displaying (intermittent)

走远了吗. 提交于 2019-12-12 06:05:50
问题 I have a HTML5 composition using createjs and associated libraries (via Flash CC 2014). However, sometimes images that are loaded in through the manifest fail to display when the composition is loaded. I have tried making multiple requests for the image file in the manifest but alas, to no avail. I have tried switching to sprite sheets but then sometimes the sprite sheet image itself fails to display! Does anyone know if anything can be done to stop this happening? I am unable to switch to an

Is it possible to preload and cache video files without adding them to the DOM?

末鹿安然 提交于 2019-12-08 17:10:03
问题 I'm working on a game that involves trigging one of 30 small video files depending on what result you get. As the videos need to play immediately after the user interacts, ideally I'd like to have the videos preloaded and ready to go. I've added PreloadJS, queued up all of the assets I need. Looking at the Network tab in inspector, I can see all 20mb of videos transferring on the loading screen. However, when it comes time to play the clips, it seems to be re-downloading them rather than