Posts

Showing posts from March 10, 2018

Coding Navigation between Scenes

Image
My scenes link together via arrow buttons that the user has to click. Coding is needed so that each time the user clicks a button on a specific scene the next scene is played correctly. When this button (NextScene1_btn) is pressed the event listener understands that an event has taken place and if this button is clicked then the function 'Scene1' is played and the scene goes to and plays Scene 1. function Scene1( event : MouseEvent ){ gotoAndPlay ( "Scene 1" ); } NextScene1_btn. addEventListener ( MouseEvent.CLICK , Scene1);

Setting up my Flash Project

Image
My first step when creating my flash project was to set up my scenes and actions panel. I roughly knew how many scenes I would need based on my storyboard plan however I could later add/remove scenes if the there was too little or too many. Furthermore, I added different layers to my timeline which included a layer for Actions, Labels, Text, Button, Animation and Background.  The purpose of the Actions layer is to keep my code away from my other layers while my Labels layer enables me to reference a keyframe/scene in my code to go to and play. I added a Stop(); command to the start of all keyframes/scenes in my Actions layer so that I didn't forget to when adding more of the graphical elements in my project. Without a Stop(); command every scene would play in sequence which is not what I wanted.  My navigation buttons allow the user to choose when to move onto the next scene which I believe is more user-friendly and adds to the user-experience as they do not fee...