Making Snow in Flash CS3

  • Thread starter Thread starter CPhantom
  • Start date Start date
  • Views Views 5,397
  • Replies Replies 20
It's hard for me to explain the differences, since I started coding with ActionScript. That was AS2, however, and the difference between that and the current AS3 is really quite huge. AS2 was much more basic and a bit of a mess, of course you could organize your code but the rules in AS3 are much more strict. It's not likely to be very much like C++ since that language operates at a much lower level (I know it's not quite low-level, but ActionScript is decidedly high-level), but it is very similar to Java and even more similar to JavaScript (in fact it is based on the ECMAScript standard, which was more or less derived from JavaScript - though that whole history is more complicated than it is relevant
smile.gif
). To be honest, this particular snowing script wasn't very neat, but it's easier to understand like this for someone who has just started out in Flash with no prior programming/scripting knowledge. I'm pretty sure this is not how AS3 is advertised, most tutorials use different methods of enclosing code in functions etc., more Java-like if you will.

Okay I just realized I could go on about this for a pretty long time
rofl2.gif
(but I'm not going to!). The biggest difference between AS and what you're used to, I guess, is that Action*Script* was really designed to be that - a *scripting* language for automating parts of a Flash movie and for adding some interactivity. Since AS1 it has sort of evolved into something more complicated, and I think Macromedia/Adobe took a great step by totally revamping the language after AS2 and losing backward compatibility in favour of faster performance and a generally better-organized language. Right now, you can use AS3 to write full applications completely independent of the animating tools etc. that are in the Flash authoring environment (for example, using Flex). In such cases, it's more programming than scripting. But, when you use it in conjunction with regular (hand-)animation, you really are just scripting and in my opinion it's kind of useless to write classes and such just to get some extra behaviour into your movie. It's just not worth it putting the time and effort into structuring the code like you do when you're writing an application.

So I can see how it would be more difficult to understand the workings of Flash & ActionScript if you're coming from a world of *real* programming
smile.gif
. Maybe you could look into Flex, which was made for building applications with ActionScript - using that in conjunction with Adobe Air, creating web-interactive desktop applications... Oh the possibilities!
biggrin.gif
(Haven't done much of that myself, actually, but writing this made me realize I really should
toot.gif
)
 

Site & Scene News

Popular threads in this forum