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

  • SEARCH
  • Home
  • 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 8512529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:18:11+00:00 2026-06-11T04:18:11+00:00

I just started trying out Haxe to make a web-app, and I would like

  • 0

I just started trying out Haxe to make a web-app, and I would like to use CreateJS, which has a Haxe extern lib thingy. I’m using FlashDevelop as my IDE.

So I created a new Haxe JS project in FlashDevelop, and installed CreateJS with “haxelib install createjs”. Thougg now I try to add an import to my Main.hx, but it doesn’t work. My import looks like: “import createjs.easeljs.Ticker;” (got that from an example, just copied it but didn’t work :s) I also added a new map “lib” to my project, in which I added the createjs stuff.

The error I get is: src/Main.hx:3: characters 0-31 : Class not found : createjs.easeljs.Ticker

enter image description here

Anything else I have to do to make this work?

Thanks!

-Pablo

  • 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-11T04:18:12+00:00Added an answer on June 11, 2026 at 4:18 am

    The way Haxe externs usually work is:

    1. You include the original Javascript manually*. In your case, you add the tags pointing to the CreateJS javascript ( into your HTML file.

    2. The ‘extern’ files are used so that Haxe knows the other files are there, and knows what methods can be called, properties changed etc. It also helps keep the auto-complete fully functional and useful.

    3. If the externs are kept in a library, you need to install that library (haxelib install createjs) and then you need to include that library in your build. I do this by adding -lib createjs to the hxml build file. Flash Develop can do this by opening Project->Properties->Compiler Options and adding “createjs” to the Libraries list.

    4. In your Haxe file, you use the “include” statements, like you have above.

    From your description above, I think you’re missing the bit in step 3 where you include the library. I’m not a Flash Develop user, so I’m not sure if it’s different at all, but it looks like in your follow up answer you’ve copied some of the *.hx files from the ‘createjs’ haxelib, just enough to make it compile. If you add the ‘-lib createjs’ line to your hxml build file though, you shouldn’t need these anymore.

    Hope this helps you get started, let me know if you get stuck and I’ll try update my answer.

    (*) an exception to this is some libraries include the Javascript for you. An example is when you use js.JQuery in the Haxe standard library – this includes the raw javascript for you. Most libraries you’ll have to add the scripts yourself though.

    (Edit: added instructions for adding libraries in Flash Develop thanks to comment)

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

Sidebar

Related Questions

Just started playing with Android and I'm trying to create an app that has
I just recently started trying out T4MVC and I like the idea of eliminating
I am just getting started with JS Unit Testing and am trying out qUnit.
i'm just started dev-ing app for wp7 and I'm trying to convert a string
I just started with Spring Web MVC. I'm trying to avoid file extenstions in
i just started learning swings. And thought of trying out a simple program, but
I have just started trying to build my first wp7 app, and I am
Just started learning Rails (3). I am tearing my hair out trying to find
I just started using XStream Annotations, and I am trying to figure out how
I just started trying out the mvc-mini-profiler in my MVC3 project with EF4.1 and

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.