0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'addChild'

Deimantas's Avatar

Deimantas

20 Apr, 2013 03:04 PM

Hi there.
I am following a tutorial seen on http://www.sitepoint.com/creating-a-simple-windows-8-game-with-java... on how to make Windows 8 game and have a problem. At line 99 I'm getting an error : " Unhandled exception at line 99, column 9 in ms-appx://2c38fd89-a7ec-466d-933d-21213a0b3de9/js/default.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'addChild' "

What is that? Why I'm getting this error?

  1. 1 Posted by Deimantas on 20 Apr, 2013 03:07 PM

    Deimantas's Avatar

    Sorry for that picture I uploaded. I just experimented a little with code, her I attached my real error photo.

  2. Support Staff 2 Posted by Sebastian De Ro... on 20 Apr, 2013 03:56 PM

    Sebastian De Rossi's Avatar

    @Deimantas

    From the code you posted, you have to create an instance of the stage class.
    What you are trying to do is use Stage as a static class, which will give you errors.

    var stage = new createjs.Stage("test");
    stage.addChild(myChild);
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac