Back to Ted's Web Grafitti or back to www.tedvisaya.com
Jump to Actionscript
Above is my 1st attempt at using Flash with the 'Bones' feature. I found it very cumbersome and difficult to use but determined to make it work right. I used Illustrator and Photoshop to create the artwork and was learning these programs at the same time as Flash.
Above is my 2nd attempt at the Carabao Flash animation with the 'Bones' feature and I still found it difficult to use. As I began to improve on my Illustrator and Photoshop skills I still remained frustrated with Flash.
Above is my 3rd attempt at trying to get the animation to work correctly I finally abandoned the 'Bones' feature completely. I was so frustrated with it that I wanted to delete it from the Flash program entirely. Instead I decided to create cartoon stills. I took the cut up carabao cow and rearranged the legs to simulate walking. Put the individual stills into keyframes on separate layers of the Timeline and ran the animation together,
tweeking and adjusting
keyframes to get it
right. Finally success!
To the right is the Actionscript program code created to interface with the Flash animation above. The other animations on this page do not have any Actionscript code so are not User Interface (UI) capable and will continue to loop and play.
To make an animation UI capable there needs to be an event listener at the top. 'stage.addEventListener' In the ( ) next to the EventListener you need to enter what the EventListener is going to listen for, in this case it'll be a 'KeyboardEvent'. The rest of the code are just commands telling the EventListener what to do everytime the spacebar is pressed. That's basically it in a nutshell. Actionscript is simply a program code for developers to program interactivity within the Adobe Flash platform. It's similar to Javascript.
stop(); stage.addEventListener(KeyboardEvent.KEY_DOWN,advance); function advance(event:KeyboardEvent) |
I found a couple links that are useful during my learning curve. Wikipedia: Actionscript to get a definition and history of Actionscript. Adobe Actionscript Technology Center to stay up to date on the latest Actionscript developments and to study and extract code samples to develop my personal UI Actionscript animations.
I think I'll start with the Adobe Actionscript Cookbook and enter into the realm of UI Design.