วันพฤหัสบดีที่ 26 กรกฎาคม พ.ศ. 2555

ผลการทดสอบการ convert Flash Animation ไปเป็น html5

วันนนี้ ผมได้มีการทดสอบลอง convert flash animation file ให้ไปเป็น html5 animation ซึ่งทดสอบ 2  โปรแกรมคือ

  1. Google Swiffy 
  2. adobe wallaby
ปรากฏว่าทั้งสองอันน่าจะซัพพอร์ตแค่ Flash ที่เป็น AS2 เท่านั้น เพราะถ้าเป็น as3 ก็จะเห็น error แต่เท่าที่ดูผลลัพธ์ของ Wallaby ดูออกมาเรียบร้อยกว่า

Guideline สำหรับการสร้าง Flash Animation เพื่อใส่ในหนังสือ



Creating dynamic content for your Issue
Here are some general guidelines to ensure you get the most out of your dynamic content.

SWF Animations
Here are some general guidelines for your developer to follow in order to get the best results:
  • while actionscript is allowed, DO NOT include any scripting that modifies the position or dimension of elements causing those elements to exit the main stage's area
  • we use both the stage dimensions and animation dimensions to calculate your content's proportions. For best results, create a box (can be transparent) on the first frame on the main stage with the exact same dimensions as your stage.
  • keep all movie clips and animations inside a mask that is contained within the stage to ensure your animations stay within your stage
  • DO NOT embed FLV videos into your SWF's - upload an FLV file instead
  • publish your SWF animations in AS3 (actionscript 3.0) ONLY - AS2 is not supported as an embeddable SWF in the new Flipbook 3.0. (it will continue to work in your existsing Flipbook 2.0 issues) learn more
Further technical rules for developers to follow in creating AS 3.0 SWF files:
  • first frame must be exactly the size and rect of the stage;
  • entire stage on frame 1 must be filled;
  • no masking allowed on the first frame;
  • no nested movieclips with animations or masking or code on first frame;
  • no code on first frame;
  • if you need to have masking and interactivity it can exist in frame 2 which can have "stop()";
  • frame 1 assets may be transparent so avoid puting any critical assets here.
  • frame 1 execution may be omitted at times therefore there should be no vital content on that frame and content replication on frame 2 may be required.