Wednesday, 12 October 2011

development 5

Button_11 is the button on that frame. Each button has a different number next to it.
and (3) means the frame it is going to this is also different in each frame.


button_11.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_8);

function fl_ClickToGoToAndPlayFromFrame_8(event:MouseEvent):void
{
gotoAndPlay(3);
}


For each of the buttons i had to add code into them to tell them to go to different frames.





Buttons were quite difficult to understand for this project. But i eventually got the hang of them. On my home screen i put my 3 buttons on them which would go to each of my 3 animations. I decided to make the circle on the button left black so that people to make it stand out so people know to push it.

When i had all of my frames done i added just frame which just had the interface on it and no animations  on it. This will be my home screen.



When i had all 6 animations i went into a separate flash file where i would do my final. I created a movie clip for each of the 6 files and added then into different frames in the same file.
To make sure they don't all flash one after another which happens right after you put them all in the same file i added the code stop(); into each of the frames so they stop after each frame.

No comments:

Post a Comment