Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Compile your Flex application with the Falcon JX compiler.
  2. Open the JavaScript file that was generated from your main Flex application (e.g., if your Flex application's main file is Main.mxml, open Main.js).
  3. Insert the following lines before the goog.provide() statements:
    Code Block
    var mainjs = document.createElement('script');
    mainjs.src = './createjs/easeljs-0.6.0.min.js';
    document.head.appendChild(mainjs);
    
  4. Be sure to put a copy of the CreateJS component files in a sub-directory called, createjs, next to the other source directories.

If you open the TextButton.js file in the CreateJS package, you will find that the createElement() function is rather different from either the basic TextButton or jQuery version of the TextButton:

...