Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8533813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:03:09+00:00 2026-06-11T10:03:09+00:00

As I am trying the easeljs javascript library, I’ve coded a short page in

  • 0

As I am trying the easeljs javascript library, I’ve coded a short page in order to print a blue square. Unfortunately, I’ve tested it under Chromium in Ubuntu 12.04 host : but it does not show anything. Furthermore, the developper console of Chromium has not detected any error :

index.html

<!DOCTYPE html>
<html>   
<head>
<title>Drag'n drop sur un carre</title>
<script src="easeljs-0.5.0.min.js"></script>
<script src="myScript.js"></script>
</head>

<body onload="init()">
<canvas id="mycanvas" width="640" height="480"></canvas>
</body>
</html>

myScript.js

function init(){
    stage = new createjs.Stage(document.getElementById("mycanvas"));

    carre = new createjs.Shape();
    carre.graphics.beginFill(createjs.Graphics.getRGB(0, 0, 255));
    carre.graphics.rect(0, 0, 30, 30);
    carre.x = 70;
    carre.y = 50;
    stage.addChild(carre);
}

So : what’s wrong ?
Thanks in advance.

(I’m using easeljs 0.5.0)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:03:10+00:00Added an answer on June 11, 2026 at 10:03 am

    You need at the very end to have stage.update();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to prepare good build environment for my js library. According to reviews on
Trying to load a page fragment, or at least jump to a div but
I am trying to create a custom javascript EventManager class. I've adopted the format
Trying to build a Metro app using Javascript and having issues with IndexedDb. I
Trying to install some gems under jruby 1.6, but getting connection refused: $ gem
Trying to think in Javascript rather than jQuery, so I'm wondering if I'm doing
Trying to perform a single boolean NOT operation, it appears that under MS SQL
Trying to link against a static assimp library which I built with MinGW. Here
I'm trying to make an HTML5 RPG game using easelJS to handle sprite animations.
Trying to build out an exception if move.UserId does not equal currentUserId then Redirect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.