Questions tagged [createjs]

A suite of Javascript libraries and tools for building rich, interactive experiences with HTML5.

CreateJS is a suite of modular libraries and tools which work together to enable rich interactive content on open web technologies via HTML5. These libraries are designed to work completely independently, or mixed and matched to suit your needs.


The CreateJS Suite is comprised of:

  • EaselJS - Makes working with HTML5 Canvas a breeze
  • TweenJS - Powerful library for tweening and animating
  • SoundJS - Tools for working with HTML5 Audio API
  • PreloadJS - Asset management system
  • Zoë - Tool written in ActionScript for producing Sprites for the CreateJS library.

Resources


Related tags

1271 questions
5
votes
1 answer

Register a sound already loaded as a base64 or binary in soundjs library

I have a big problem, I have not found a solution yet for. In short I have a front end web page where a custom API build on the fly audio tracks. All the tracks are temporarily stored in a variable within the browser as base64 strings. My problem…
Giuseppe
  • 307
  • 3
  • 18
5
votes
1 answer

How should I create a responsive canvas with createJs to adapt different mobile device's screens?

I want to develop a html5 mobile game. As you know, the screens of mobile devices are different size, so I want to create a responsive canvas so that it can adapt different screen.
Jospehus Chou
  • 117
  • 1
  • 10
5
votes
2 answers

Z-Index positioning with CreateJS

I'm trying to set the z-index for my line Graphic(). I'm trying to set the line to be always behind the other two shapes. As far as I know, the first element added is z=0, the second one is z=1 and so on. Is that so? Is z=0 the top possition or is…
Cod1ngFree
  • 1,873
  • 6
  • 21
  • 33
5
votes
3 answers

Set Javascript Namespace to Window: Bad idea? Or Brilliant?

I cam upon this code in an example for the EaselJS library - what it does is it assigns the namespace of the entire createjs library to "window". My question is this: Is setting the namespace of a library…
Plastic Sturgeon
  • 12,527
  • 4
  • 33
  • 47
4
votes
1 answer

How to add an HTML5 animation generated with Adobe Animate CC to a Ionic 2 project page?

I have made an animation with Adobe Animate CC as HTML 5 canvas item. I can publish the animation in several ways: as html: 1 file html, 1 file js, several directory with included file. Pages are all inclusive (head, body, including libraries) and…
Sasha Grievus
  • 2,566
  • 5
  • 31
  • 58
4
votes
1 answer

easeljs mouse events on disabled stage curosr

In my simple application i need to hide original cursor stage.cursor = 'none'; stage.enableMouseOver(), than i replace it with my own image Than i register listener on stagemousemove event: myBitmap.x = stage.mouseX; myBitmap.y =…
Nitromoon
  • 378
  • 1
  • 2
  • 11
4
votes
2 answers

CreateJS Radial gradient with matrix

I'm converting a Flash application to HTML5 Canvas. Most of the development is finished but for handling the colors there is a code like this in the flash application: matrix = new Matrix (); matrix.createGradientBox (600, ColorHeight * 1200, 0, 80,…
xonorageous
  • 2,281
  • 7
  • 26
  • 35
4
votes
1 answer

`Preload.js` failed to load some files on Android devices

PreloadJS stuck at a specific step when loading files on Android devices while everything works fine on a desktop browser and iPhone. The loading process stopped at the final GIF file (as shown in the code). Why this GIF file could not be…
leetom
  • 723
  • 1
  • 6
  • 27
4
votes
4 answers

What does ||{} mean in javascript?

I'm working on a project using Easel JS. Opened up the Easel file and the very first line of code confused me: this.createjs = this.createjs||{}; I know that createjs is invoked when you're setting up your canvas or, for example, creating a bitmap…
unaesthetic
  • 108
  • 1
  • 8
4
votes
1 answer

How can I add html DOM Element on canvas using create js?

below code is not working for adding dom element on canvas var stage = new createjs.Stage('mycanvas'); var html = document.createElement('div'); html.id = 'ab'; html.style.height = '50px'; …
asb14690
  • 1,757
  • 3
  • 15
  • 21
4
votes
1 answer

Using Meteor with Adobe Flash CreateJS Toolkit

I am trying to figure out how to use the Adobe CreateJS toolkit javascript objects inside meteor. The generated html and js looks like this for a simple rectangle and circle: create-demo.html
Bryan
  • 17,201
  • 24
  • 97
  • 123
4
votes
1 answer

How to draw a circle using arcs in createjs?

How to draw an arc in createJS. I have gone through arcTo function but its not what i want. I want to be able to draw several arcs which when put together resembles a circle. for Ex: I want to be able to draw a circle using 8 arcs. not able to do…
user3454558
  • 279
  • 2
  • 6
  • 11
4
votes
1 answer

SharePoint 2013- Add custom web application/page which uses files from other folders

I've created a JavaScript web browser game. The HTML page, Game.html, within folder Game references several other JS/jQuery/CSS files stored in sub folders. I simply want to add the Game folder, which includes the Game.html file and all of its…
user3871
  • 12,432
  • 33
  • 128
  • 268
4
votes
2 answers

Loop part of a tween with tween.js

Here's a simple tween in Tween.js. A simple loop happens after an interval. cjs.Tween.get(mySymbol).wait(50).to({x:10}).to({x:0}); Is there a way to make it repeat say 5 times after the interval, without repeating the interval? By adding…
josef
  • 867
  • 12
  • 28
4
votes
1 answer

PreloadJS in CreateJS is not working

I am trying to learn preloading of images using PreloadJS. This is what I have: Test
Sachin Joseph
  • 18,928
  • 4
  • 42
  • 62
1
2
3
84 85