Skip to content

It's library for simple convert code from Action Script 2 to CreateJS

License

Notifications You must be signed in to change notification settings

askeet/CreateJSToAS2

Repository files navigation

CreateJSToAS2

It's library for simple convert code from Action Script 2 to CreateJS

  1. Open Adobe Animate CC.
  2. Create HTML5 Canvas
  3. Draw something there.
  4. Save as "[MyName].fla" 3 Press Ctrl+Enter
  5. Open [MyName].html in your Editor
  6. Add library in file <script src="[Path]\AS2_Library.js"></script> 6 At the end function init() add call InitAS2();
  7. Use exportRoot like _root.
  8. Write JS code how you would use library ActionScript 2.0.
  9. Example how it works you can see in file AS2ToAS3_Canvas.html

It's library include
methods ActionScript 2.0

  1. eval("targetMovie");
  2. MovieClip.createEmptyMovieClip();
  3. MovieClip.createTextField(); // You don't need create class TextField
  4. MovieClip.attachMovie();
  5. MovieClip.duplicateMovieClip();
  6. MovieClip.lineTo();
  7. MovieClip.moveTo();
  8. MovieClip.lineStyle();
  9. MovieClip.beginFill();
  10. MovieClip.endFill();
  11. MovieClip.clear();
  12. MovieClip.addProperty();
  13. trace();
  14. MovieClip.removeObject() // works like MovieClip.removeMovieClip() or TextField.removeTextField()
    property ActionScript 2.0
  15. MovieClip._alpha
  16. MovieClip._x
  17. MovieClip._rotation
  18. MovieClip._xscale
  19. MovieClip._yscale
  20. MovieClip._parrent
  21. MovieClip._visible
  22. MovieClip._width // works read and write
  23. MovieClip._height // works read and write

About

It's library for simple convert code from Action Script 2 to CreateJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published