Tuesday, March 19, 2013

Tips to Avoid Issues with CreateJS JavaScript Library

  • Remove any blank key frames in the fla. Do not leave any blank key frames in the Flash file. This can save a lot of your time later. Blank key frames can even create issues somewhere else in the application and keep you scratching your head for hours.
  • In motion tweens, ensure that both start and end key frames have the same symbol type i.e. either both key frames have graphic symbol or both key frames have movie clip symbol.
Still, if you are facing weird problems in the app and everything else looks great logically try this weird solution - distribute motion tweens across layers to have only one tween per layer. I know this can be really weird for big apps but if everything else has failed there is no harm in trying luck :-)

Some other worth noting points are:
  • Flash CreateJS plugin converts dynamic text fields to static text.
  • Frames are index based i.e. the frame number starts with 0, not 1.
  • If same text field has both bold and italic text, fla file will not publish. Do not do this in Flash if you have to export the file using CreateJS later. Do this later in JavaScript/CSS.
  • Sometimes, CreatejJS includes unexpected line breaks in the code. But, this is probably the first thing you will notice when testing in browser. You can also check your application JavaScript  in Dreamweaver or some other good editor that highlights syntax errors.


1 comment:

Developers Blog said...

Well Done!!!