In this lab, I used ActionScript to move an object. First I used the rectangle tool to make a rectangle and I used the selection tool to make the rectangle turn into a triangle. Then I selected it and right clicked and converted it into a graphic symbol then I re-sized it and right clicked it and converted it into a button symbol. I named the instances after putting all the 4 buttons on the stage according to how the button looks. I renamed the layer with the arrow buttons as controls, then I created 2 new layers which I named objects and actions. Then I imported a cat from an external library and put it into my onjects layer. Then I went to my actions layer and I went to my actions panel and I clicked on code snippets and I went to event handlers and clicked on click mouse event and then I changed it according to the arrow button and also I gave my cat an instance name and I changed the signs and the coordinates. Then I clicked command eneter and when it worked then I went to code snippet, animation and I clicked on move with keyboard arrow. When I finished I uploaded it into the server after putting it into my html document. I liked this lab because I found it cool to know how to be able to move an object using the keyboards and buttons. Also I didn't have any difficulties completing this lab and I like how the final product came out.
No comments:
Post a Comment