The deep end

I am attempting to construct my new website home page using Flash and ActionScript 3.

Posted November 18 2009
Web
No comments
Comments closed
Tweet this article

It could be a mis­take, but I am attempting to con­struct my new web­site home page using Flash and Action­Script 3. Unlike the more acces­sible Action­Script 2, AS3 is a real pro­gram­ming lan­guage. I am not a real pro­grammer. This could be a dif­fi­cult project.

The dif­fi­cul­ties begin with the doc­u­men­ta­tion. I think the authors of the Flash Help pages assumed the readers would be pro­gram­mers. Learning AS3 means learning to under­stand the terms used to describe the var­ious objects, para­me­ters, and methods pro­vided for by the language.

Testing is also dif­fi­cult. Some of the actions I want to enable are simple: button states, status checks. Some are more dif­fi­cult. I have become a fan using inter­ac­tions between Flash and HTML and the things that jQuery can facil­i­tate. When I start incor­po­rating AJAX requests, the points of failure in the test of any fea­ture mul­ti­ples. Is there a problem with my Action­Script, the JavaScript, or with the resource I am requesting through AJAX?

A starting point for solving these prob­lems might be the devel­op­ment of a better error tracking scheme. Within the Flash authoring envi­ron­ment, I can use trace actions. Flash will also gen­erate error mes­sage when some­thing is wrong. JavaScript errors can be tracked using Firebug (some­thing I have learned I cannot live without). But when a SWF file is being run within an HTML page, there is no easy error checking. Any error mes­sages must be tracked with event lis­teners. The output needs to be dis­played on the ani­ma­tion stage. Per­haps I should create a reusable widget that can be applied to any Flash file for tracking this information.

I am also strug­gling with jus­ti­fi­ca­tion for using Flash. Most (but not all) of the actions I’d like to enable with Flash could be done using HTML/CSS/jQuery. Why go through the pain of devel­oping all or parts of my web­site using Flash? The answer I come back to is “so I can learn to swim.” Some­times, the best way to learn some­thing is to jump into the deep end. The knowl­edge could be valuable.