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
0
votes
4 answers

Returned event object overwriting parent object - javascript, easeljs

I am using easeljs for a HTML5 game. I am calling onClick from within a method in a class, but the event object is overwriting my 'this' object so I can no longer access the other class methods or vars. For example I have something like (obviously…
karatecode
  • 574
  • 6
  • 21
0
votes
0 answers

How can I use a dynamically-resized hitArea for an EaselJS DisplayObject?

I'd like to use a hitArea to capture click events in my EaselJS project, but the hitArea Shape I've assigned doesn't seem to be respected. jsFiddle Example var stage = new createjs.Stage($("#game")[0]); // This will be a big button var container =…
Duncan Beevers
  • 1,830
  • 11
  • 17
0
votes
1 answer

Windows 8 app Game Animation speed increased when Laptop is on Power chord,Normal speed is seen when on battery-Reason for this behaviour required

The Game is developed for windows 8 app store using HTML5 and JavaScript, CreateJS is also used for most the functions.The object which moves by incrementing coordinates works normally and with normal speed as expected when the laptop is on Battery,…
SDK
  • 41
  • 3
0
votes
4 answers

How to dynamically resize and center a Flash CreateJS canvas element animation

I have seen some similar questions here but not actually what I need to know! I am using Flash CS6 and outputting a CreateJS framework animation instead of regular .swf files. When you publish from within the API (Flash) it generates an html5 doc…
Machineuser
  • 93
  • 1
  • 1
  • 13
0
votes
1 answer

Retrieving multiple and repeated keyDown

I am trying to do a simple pong game for 2 players. The first one controls his pad with the A and Q (azerty keyboard). The second one controls his pad with the P and M. Here is the code function handleKeyDown(e) { switch (e.keyCode) { …
Kalzem
  • 7,320
  • 6
  • 54
  • 79
0
votes
1 answer

Javascript Runtime Error: app undefined

I'm trying to make a somewhat basic app using Canvas and Javascript for a Windows 8 Application I'm making. Upon compiling the code in Visual Studio 2012 for windows 8 Apps I get the following message 0x800a1391 - JavaScript runtime error: 'app' is…
Shaquille Ray
  • 187
  • 2
  • 3
  • 16
0
votes
2 answers

Box2D & EaselJS, setTransform returns an error

I have the following code to manually set the position of a (dynamic) object in a Box2D world (drawn with the help of EaselJS). Unfortunately setTransform returns this error. Uncaught TypeError: Cannot read property 'position' of undefined This is…
ios-lizard
  • 834
  • 1
  • 12
  • 19
0
votes
2 answers

Box2D, Lock body in a certain position (can't get SetPosition and SetTransform to work)

I am using Box2D to simulate a small world where the user can drag objects and 'stick' them in some predefined locations (basically 'locking' them in a certain position). I have this code to lock an object in a position. Everything works excepts I…
ios-lizard
  • 834
  • 1
  • 12
  • 19
0
votes
1 answer

CreateJS + Haxe -> Uncaught ReferenceError: createjs is not defined

After a successfull compile of: http://nickalie.com/posts/67 , when I try to see it in the browser, I get a Uncaught ReferenceError: createjs is not defined right here (on the resulting compiled create.js file): var Main = $hxClasses["Main"] =…
localhost
  • 450
  • 2
  • 6
  • 24
0
votes
1 answer

play list with SoundJS

I created manifest var manifest = [{src:"song1.ogg", id:"song1"} ,{src:"song2.ogg", id:"song2"} ,{src:"song3.ogg", id:"song3"} ,{src:"buzz.ogg", id:"buzz"}]; how I can create infinite play list from song1, song2,…
Andrey Koltsov
  • 1,956
  • 6
  • 24
  • 43
0
votes
2 answers

Swiffy vs Flash CS6 HTML5 Export for custom fonts and standard bitmaps animations

Is it better to use the built-in CreateJS HTML5 exporter in Flash CS6 or Swiffy, for simple animations involving bitmaps and custom fonts
ina
  • 19,167
  • 39
  • 122
  • 201
-1
votes
1 answer

Createjs: How to pixelate bitmaps?

I have a very specific project I'm working on and after 2 weeks the best option seems to be using a bitmap within an empty movie clip. It's perfect apart from one issue - I can't figure out how to pixelate the image. Here is my code so…
-1
votes
1 answer

Nested function losing this scope

I have a js script that works fine on its own, however when I try to move my code to reactjs the nested/referenced function loses 'this' and it references window instead. Pseudo code bellow. Any idea what causes this? I figure its related to webpack…
Gibbz
  • 69
  • 4
-1
votes
1 answer

How to wait till adobe animation canvas drawn in iframe?

Adobe Animate Canvas generates content and I attach that content in iframe. Then canvas is drawn and various script variables are created in iframes document. I need to access variable 'stage' that is generated when iframe of adobe animation is…
LuckyLuke
  • 1,028
  • 2
  • 14
  • 28
-1
votes
2 answers

applying css properties in image using CSS Plugin in Createjs

trying to change the css properties of an image using CSS Plugin in Createjs but i am not able to do so. Guys plz help var wheel = new createjs.Bitmap(preload_queue.getResult("bg")); stage.addChild(wheel); wheel.set({x:0 ,y:0}) …