This code is for the "Back" button. It's basically saying once the button is released then it will go back to scene 1.
Thursday, 4 October 2012
HCI Update
Today, I added more pages to my HCI concept and made interactive buttons for switching between the different pages. Problems arose during writing the first piece of code for a button but that was easily rectified by getting my friend to teach me the basics and then I figured the rest out myself. Scripting in Action Script is a good language for people who aren't really that adept in programming. In fact the animating in flash is actually a lot harder than the scripting. When I first introduced a second page the animation looked like it was having a seizure by switching back and forth every half a second. Then I learned of a stop function witch stops the current scene from switching to a new scene. That is where the buttons come in handy. Buttons aren't just used for switching scenes though. They can be as simple as a start button for a certain animation or as complex as a "click to reload" or a "Click rapidly to open gate" type of button. My HCI might not yet be completed but it's well on its way to being a fully interactive HCI map
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment