(2) How does external action-script files (*.as) work? how do they work together along with .fla file to make the final swf file?
I have some basic understanding of HTML/CSS/JAVASC开发者_StackOverflow中文版RIPT/XML stuff, but I want a little bit more detailed explanation with some very simple and intuitive example is highly appreciated!!
Noted with thanks!!
1) Animation in Flash can either be done in a visual click-and-drag way using the Timeline or by writing ActionScript to move the objects, whereas animation in JavaScript has to be written in code.
2) Flash combines graphics from the .fla with code from .as to create the swf. This process is often referred to as "compiling the swf" but note that it is very different from compiling C code.
These Would help :
html5 vs flash
Javascript vs Flash
Remember Html5 needs Javascript for its key and extra features. so you can not compare them.
Flash animation, that is not done in AS3, is done with keyframes and tweening. It also has a great vector engine for graphics.
精彩评论