My brother recently approached me with an interesting project: He wanted to make a flash movie that would have enable someone to control the mouth movements of a "bobblehead" with keystrokes.
Although I have not done this before, I was certain it would be something fairly easy to do. ActionScript 3's "Keyboard" class has a plethora of functions and methods that allow one to do just about anything with a keyboard and a flash animation.
So here's the breakdown: The animation needed to have five "states": Default, profile, wobble, "ooh" and talk; and each needed to be assigned to a separate key.
Cake.
The first step was to create the background movie. My brother did this in Motion 3, and we set it inside a Movie Clip on the first frame of the flash movie. Next, we defined another movie clip that contained all of the movements for the head "states".
Beyond that, all that was left to do was to define the keyboard actions. The following is the totality of the code:
It's very simple. To begin from the bottom, an eventListener is added to the "stage" (the flash animation). When the KeyboardEvent "KEY_DOWN" is "heard", the function is fired.
The function is also simple. There is a series of "if" statements that determined which key has been pressed. If a particular key is pressed, the Flash movie clip instance "Mouth" is fired at the specified frame.
So there it is. A pretty cool little application for very little coding.
Here's the movie.
So over the last year, I've become quite good at playing nursery rhymes on my guitar--it's one of the easist ways to be able to actually play guitar while concomitantly appeasing the attentions of my... [more]
Despite rumors to the contrary , my "theological blog" is not dead, at least not quite. In fact, I've got a post regarding the doctrine of atonement ... [more]
I am proud and excited to announce the relaunch and redesign of my web design portfolio - singularityconcepts.com .
This redesign has been lon...
[more]
Ok, so I know it's technically Saturday while I'm writing this, but I wanted to get down these Good Friday reflections before the weekend is over...
In pulpits across the country this week...
[more]
Ok, so for those who know me, I've never exactly been the biggest fan of ANYTHING that Microsoft has forced upon the genearl computing public. IMO, Word is about the best thing that they've done, an... [more]
(Please ignore the absurdity of the title--I couldn't help myself!)
A little over a week ago, Adobe officially released Adobe Integrated Runtim...
[more]
A good friend of mine recently approached me about creating an online resume for him. He wanted it to be incredibly simple and to focus on the content.
So that's what I did.
Th...
[more]
Anytime one approaches a new design project, it is easy to get distracted by trying to have the project finished NOW, instead of doing necessary preparation work to ensure maximum work efficiency. I... [more]
Regular readers of this blog will note that I have devoted a number of posts to providing an apologetic for the compatibility of the theory of evolution, big bang cosmology and Christian theology.
I've been away for a while...that's because I've been consumed with work and LAUNCHING A NEW WEBSITE!!!
Okay, that was a bit dramatic. But I am terribly excited about this one. For one, ...
[more]
Welcome to my blog. I am often asked what "Exist/Dissolve" means. Well, that is certainly a good question, and I am currently in the process of discovering the answer myself. Prima facie, it strikes me as encapsulating the existensial crisis that is our lives as finite, contingent beings. For a brief moment, we exist, and the next we dissolve into the nothingness of non-existence. From a theological perspective, it is, for me, a sort of ad hoc apologetic for resurrection - i.e., if to exist/dissolve is the human dilemma, there is nothing inherent to the person that guarantees existence, either now or "after" death. Therefore, resurrection is at the same time both the height of absurdity (for it is a notion entirely alien to the paradigm of existence to which we are naturally enculturated) and the only hope for the human to persevere beyond the pale of death.
| deviant monk | |
| mofast-manna | |
| reformed mafia | |
| rose's reasonings | |
| Shawn Dones | |
| scribe |
0 comments logged
Please login to leave a comment